diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftMapper.xml index de14db961..dbf68e1c3 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftMapper.xml @@ -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 - ig.store_id = #{integralGift.storeId} + ig.store_id = #{integralGift.storeId} and mg.stock >0 and ig.id = #{integralGift.id}