| 12345678910111213141516171819202122232425262728 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.ydtech.modules.protocol.dao.PtlCrawlerApiMapper">
- <resultMap id="BaseResultMap" type="com.ydtech.modules.protocol.entity.po.PtlCrawlerApi">
- <id property="id" column="id" jdbcType="BIGINT"/>
- <result property="templateId" column="template_id" jdbcType="BIGINT"/>
- <result property="apiType" column="api_type" jdbcType="TINYINT"/>
- <result property="apiName" column="api_name" jdbcType="VARCHAR"/>
- <result property="url" column="url" jdbcType="VARCHAR"/>
- </resultMap>
- <sql id="Base_Column_List">
- id,template_id,api_type,
- api_name,url
- </sql>
- <select id="getApiUrl" resultType="java.lang.String">
- select url
- from ptl_crawler_api
- where template_id = (select template_id from ptl_agreement_attribution where id = #{agreementId})
- and api_type = #{crawlerApiType}
- limit 1
- </select>
- </mapper>
|