You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?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.epmet.dao.CodeCustomerDao">
|
|
|
|
|
|
|
|
<!-- 根据客户id和客户端类型获取 代码模板ID和授权方AppId -->
|
|
|
|
<select id="selectTemplateAndAppId" resultType="com.epmet.dto.result.TemplateAndAppIdResultDTO">
|
|
|
|
SELECT
|
|
|
|
template_id AS templateId,
|
|
|
|
app_id AS authAppId
|
|
|
|
FROM
|
|
|
|
code_customer
|
|
|
|
WHERE
|
|
|
|
del_flag = '0'
|
|
|
|
AND customer_id = #{customerId}
|
|
|
|
AND client_type = #{clientType}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<!-- 查询 code_customer 表ID -->
|
|
|
|
<select id="selectCodeCustomerId" resultType="java.lang.String">
|
|
|
|
SELECT
|
|
|
|
id AS id
|
|
|
|
FROM
|
|
|
|
code_customer
|
|
|
|
WHERE
|
|
|
|
del_flag = '0'
|
|
|
|
AND customer_id = #{customerId}
|
|
|
|
AND client_type = #{clientType}
|
|
|
|
AND app_id = #{authAppId}
|
|
|
|
AND template_id = #{templateId}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|