商品查询 加条件 库存>0

This commit is contained in:
zhaotianfeng 2024-09-18 10:25:29 +08:00
parent 71244af165
commit 1a44f67c76

View File

@ -94,7 +94,7 @@
left join integral_gift_category igc ON ig.category_id = igc.id
left join mt_goods mg ON ig.goods_id = mg.id
<where>
ig.store_id = #{integralGift.storeId}
ig.store_id = #{integralGift.storeId} and mg.stock >0
<if test="integralGift.id != null">
and ig.id = #{integralGift.id}