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_product pro ON inRecord.pro_id = pro.id and pro.shop_id = #{shopId}
|
||||
WHERE
|
||||
inRecord.shop_user_id in
|
||||
<foreach item="item" index="index" collection="vipUserIds" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
inRecord.shop_user_id = #{shopUserId}
|
||||
<if test="shopId != null and shopId != ''">
|
||||
and inRecord.shop_id = #{shopId}
|
||||
</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue