diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml index 96cbe3bf3..78d808298 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml @@ -354,6 +354,7 @@ LEFT JOIN active_discount_child adc ON ad.id = adc.active_discount_id where ad.store_id = #{storeId} and adc.amount <= #{amount} + and ad.status = 0