大屏接口

dev_0531
yechenhao 5 years ago
parent 13e7340b9d
commit e82f942335

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

Loading…
Cancel
Save