删除客户导购关系

dev_0531
yechenhao 5 years ago
parent 1f70274f5c
commit 0d6eb8ad03

@ -17,22 +17,19 @@
where cp_user_id = #{cpUserId}
</select>
<select id="selectAllCount" resultType="java.lang.Long">
select count(id) from op_cp_user_customer_relation
</select>
<select id="selectDistinctAllCount" resultType="java.lang.Long">
select count(distinct customer_id) from op_cp_user_customer_relation
select count(distinct customer_user_id) from op_cp_user_customer_relation
</select>
<select id="selectStoreCount" resultType="java.lang.Long">
select count(id) from op_cp_user_customer_relation where cp_user_id = #{cpUserId}
</select>
<select id="selectDistinctStoreCount" resultType="java.lang.Long">
select count(distinct customer_user_id) from op_cp_user_customer_relation where cp_user_id = #{cpUserId}
</select>
<select id="selectStoresCount" resultType="java.lang.Long">
select count(id) from op_cp_user_customer_relation where cp_user_id in

Loading…
Cancel
Save