门店号管理

master
LegnaYet 6 years ago
parent a71e43798b
commit e807e79388

@ -6,7 +6,7 @@
DISTINCT
t2.NAME AS customerName,
t2.id AS customerId,
t2.phone AS mobile,
IFNULL(t3.phone,'') AS mobile,
t5.NAME AS inviteSellerName,
t4.id AS inviteSellerId,
t1.create_time AS addTime,
@ -49,7 +49,7 @@
DISTINCT
t2.NAME AS customerName,
t2.id AS customerId,
t3.phone AS mobile,
IFNULL(t3.phone,'') AS mobile,
t1.user_id AS inviteSellerId,
t1.create_time AS addTime,
t2.avatar_url as avatar,
@ -89,7 +89,7 @@
SELECT t1.NAME from privilage_user t1, poi_store_staff t2 where t1.id = t2.user_id AND t2.id = #{id} AND t2.type = 4
</select>
<select id="selectAllCustomer" resultType="java.util.Map">
select user_id,count(0) as count from op_seller_customer_relation
select user_id,count(0) as count from op_seller_customer_relation
where 1 = 1
and user_id in
<foreach collection="ids" open="(" index="index" close=")" item="item" separator=",">
@ -107,7 +107,7 @@
group by store_id
</select>
<select id="selectAllCustomerShop1" resultType="java.util.Map">
select store_id,count(0) as count from op_seller_customer_relation
select store_id,count(0) as count from op_seller_customer_relation
where 1 = 1
and type = 1
and store_id in
@ -117,7 +117,7 @@
group by store_id
</select>
<select id="selectAllCustomer1" resultType="java.util.Map">
select user_id,count(0) as count from op_seller_customer_relation
select user_id,count(0) as count from op_seller_customer_relation
where 1 = 1
and type = 1
and user_id in

Loading…
Cancel
Save