|
|
@ -2,16 +2,13 @@
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.kiisoo.ic.employee.mapper.PrivilageCpUserDOMapper">
|
|
|
|
<mapper namespace="com.kiisoo.ic.employee.mapper.PrivilageCpUserDOMapper">
|
|
|
|
<insert id="insertCpUserCustomerRelation">
|
|
|
|
<insert id="insertCpUserCustomerRelation">
|
|
|
|
insert into op_cp_user_customer_relation (customer_user_id,cp_user_id,cp_id)values (#{customerUserId},#{cpUserId},#{cpId})
|
|
|
|
insert into op_cp_user_customer_relation (customer_user_id,cp_user_id)values (#{customerUserId},#{cpUserId})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectCpUserCustomerRelation" resultType="com.kiisoo.ic.employee.entity.CpUserCustomerRelationDO">
|
|
|
|
<select id="selectCpUserCustomerRelation" resultType="com.kiisoo.ic.employee.entity.CpUserCustomerRelationDO">
|
|
|
|
select customer_user_id as customerUserId,cp_user_id as cpUserId,cp_id as cpId from op_cp_user_customer_relation
|
|
|
|
select customer_user_id as customerUserId,cp_user_id as cpUserId,cp_id as cpId from op_cp_user_customer_relation
|
|
|
|
where customer_user_id = #{customerUserId}
|
|
|
|
where customer_user_id = #{customerUserId}
|
|
|
|
and cp_user_id = #{cpUserId}
|
|
|
|
and cp_user_id = #{cpUserId}
|
|
|
|
<if test="cpId !=null and cpId !=''">
|
|
|
|
|
|
|
|
and cp_id = #{cpId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
limit 1
|
|
|
|
limit 1
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="selectCpUserCustomerRelationByCpId" resultType="java.lang.String">
|
|
|
|
<select id="selectCpUserCustomerRelationByCpId" resultType="java.lang.String">
|
|
|
|