sql 问题

This commit is contained in:
wangw 2025-03-05 15:34:45 +08:00
parent f5b1d94bbe
commit ef1d75e6e2
1 changed files with 1 additions and 4 deletions

View File

@ -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>