sql 问题
This commit is contained in:
parent
f5b1d94bbe
commit
ef1d75e6e2
|
|
@ -67,10 +67,7 @@
|
||||||
LEFT JOIN tb_shop_info shop ON inRecord.shop_id = shop.id
|
LEFT JOIN tb_shop_info shop ON inRecord.shop_id = shop.id
|
||||||
LEFT JOIN tb_product pro ON inRecord.pro_id = pro.id and pro.shop_id = #{shopId}
|
LEFT JOIN tb_product pro ON inRecord.pro_id = pro.id and pro.shop_id = #{shopId}
|
||||||
WHERE
|
WHERE
|
||||||
inRecord.shop_user_id in
|
inRecord.shop_user_id = #{shopUserId}
|
||||||
<foreach item="item" index="index" collection="vipUserIds" open="(" separator="," close=")">
|
|
||||||
#{item}
|
|
||||||
</foreach>
|
|
||||||
<if test="shopId != null and shopId != ''">
|
<if test="shopId != null and shopId != ''">
|
||||||
and inRecord.shop_id = #{shopId}
|
and inRecord.shop_id = #{shopId}
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue