推广数据报错。

master
kevin jiang 6 years ago
parent bd2ac09e60
commit 8756e35fcb

@ -6,17 +6,12 @@
select distinct pcu.cp_user_id as cpUserId,pcu.qr_code as qrCodeAction,pcus.store_id as id,pcu.id as userId select distinct pcu.cp_user_id as cpUserId,pcu.qr_code as qrCodeAction,pcus.store_id as id,pcu.id as userId
from privilage_cp_user_store pcus ,privilage_cp_user pcu from privilage_cp_user_store pcus ,privilage_cp_user pcu
where pcus.cp_user_id = pcu.id and pcu.status in (1,4) where pcus.cp_user_id = pcu.id and pcu.status in (1,4)
<choose> <if test="shopIds != null and shopIds.size > 0">
<when test="shopIds != null and shopIds.size > 0"> and pcus.store_id in
and pcus.store_id in <foreach collection="shopIds" index="index" item="item" open="(" separator="," close=")">
<foreach collection="shopIds" index="index" item="item" open="(" separator="," close=")"> #{item}
#{item} </foreach>
</foreach> </if>
</when>
<otherwise>
1 = 0
</otherwise>
</choose>
order by pcu.id desc order by pcu.id desc
</select> </select>

Loading…
Cancel
Save