| | |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="batchSeq"> |
| | | <if test="id != null and id != 0"> |
| | | and a.ID = #{id} |
| | | </if> |
| | | <if test="url != null and url != ''"> |
| | | and a.URL = #{url} |
| | | </if> |
| | | </sql> |
| | | |
| | | <select id="selectByUrl" resultMap="BaseResultMap"> |
| | | select top 1 * from "SOURCE"."wcs_api_config" |
| | | where "URL" = #{url} |
| | | order by "CREATE_TIME" desc |
| | | </select> |
| | | |
| | | <select id="selectApiConfigList" resultMap="BaseResultMap"> |
| | | SELECT * FROM "SOURCE"."wcs_api_config" |
| | | WHERE 1=1 |
| | | <include refid="batchSeq"></include> |
| | | ORDER BY CREATE_TIME DESC |
| | | LIMIT #{pageSize} OFFSET ((#{pageNumber} - 1) * #{pageSize}); |
| | | </select> |
| | | |
| | | <select id="selectApiConfigListTotal" resultType="Long"> |
| | | SELECT count(1) FROM "SOURCE"."wcs_api_config" |
| | | WHERE 1=1 |
| | | <include refid="batchSeq"></include> |
| | | </select> |
| | | |
| | | </mapper> |