forked from luyan/epmet-cloud-lingshan
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.
18 lines
660 B
18 lines
660 B
<?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.PaCustomerAgencyDao">
|
|
|
|
<!-- 根据userId查询客户Id -->
|
|
<select id="getCustomerIdByUserId" parameterType="java.lang.String" resultType="java.lang.String">
|
|
SELECT
|
|
customer_id AS customerId
|
|
FROM
|
|
pa_customer_agency pca
|
|
LEFT JOIN pa_customer_user_agency pcua ON pcua.agency_id = pca.id AND pcua.del_flag = '0'
|
|
WHERE
|
|
pca.del_flag = '0'
|
|
AND pcua.user_id = #{userId}
|
|
</select>
|
|
|
|
</mapper>
|