|
|
|
@ -12,7 +12,7 @@
|
|
|
|
left join poi_store_staff t5 ON t5.store_id = t0.id and t1.user_id = t5.id
|
|
|
|
left join poi_store_staff t5 ON t5.store_id = t0.id and t1.user_id = t5.id
|
|
|
|
LEFT JOIN op_customer t2 ON t2.id = t1.customer_id
|
|
|
|
LEFT JOIN op_customer t2 ON t2.id = t1.customer_id
|
|
|
|
LEFT JOIN op_vip t3 ON t3.id = t2.member_id
|
|
|
|
LEFT JOIN op_vip t3 ON t3.id = t2.member_id
|
|
|
|
LEFT JOIN privilage_user t4 ON t4.id = t5.user_id
|
|
|
|
LEFT JOIN privilage_user t4 ON t4.id = t5.user_id where 1 =1
|
|
|
|
<choose>
|
|
|
|
<choose>
|
|
|
|
<when test="shopId != null and shopId.size > 0 ">
|
|
|
|
<when test="shopId != null and shopId.size > 0 ">
|
|
|
|
and t1.store_id in
|
|
|
|
and t1.store_id in
|
|
|
|
|