|
|
|
@ -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
|
|
|
|
|