商品查询 加条件 库存>0
This commit is contained in:
parent
71244af165
commit
1a44f67c76
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user