大屏接口

dev_0531
yechenhao 5 years ago
parent 13e7340b9d
commit e82f942335

@ -46,16 +46,16 @@
<!--会员总数-->
<select id="selectVipCountByStoreIds" resultType="Long">
select count(t1.id)
from op_vip t1,op_customer t2
<where>
<if test="shopIds != null and shopIds.size > 0">
and t2.register_store_id in
<foreach collection="shopIds" separator="," item="item" index="index" close=")" open="(">
#{item}
</foreach>
</if>
</where>
from op_vip t1,op_customer t2,op_seller_customer_relation t3
where t2.id = t3.customer_id
<if test="shopIds != null and shopIds.size > 0">
and t3.store_id in
<foreach collection="shopIds" separator="," item="item" index="index" close=")" open="(">
#{item}
</foreach>
</if>
and t1.id = t2.member_id
and t3.type != 3
</select>
<select id="selectVipCountNew" resultType="Long">

Loading…
Cancel
Save