bug
This commit is contained in:
parent
de97c7d2fd
commit
1774597789
@ -354,8 +354,8 @@
|
|||||||
ad.adapt_oil oilId,
|
ad.adapt_oil oilId,
|
||||||
ad.limit_acount as limitAcount,
|
ad.limit_acount as limitAcount,
|
||||||
ad.participation_condition,
|
ad.participation_condition,
|
||||||
(case ad.store_id when ${storeId} then adc.amount * (1-(adc.discount * 0.1))
|
max((case ad.store_id when ${storeId} then adc.amount * (1-(adc.discount * 0.1))
|
||||||
end) as discount
|
end)) as discount
|
||||||
FROM
|
FROM
|
||||||
active_discount ad
|
active_discount ad
|
||||||
LEFT JOIN active_discount_child adc ON ad.id = adc.active_discount_id
|
LEFT JOIN active_discount_child adc ON ad.id = adc.active_discount_id
|
||||||
@ -378,7 +378,7 @@
|
|||||||
af.adapt_oil oilId,
|
af.adapt_oil oilId,
|
||||||
af.limit_acount as limitAcount,
|
af.limit_acount as limitAcount,
|
||||||
af.participation_condition,
|
af.participation_condition,
|
||||||
adc.deduction_amount discount
|
max(adc.deduction_amount) discount
|
||||||
FROM
|
FROM
|
||||||
active_fullminus af
|
active_fullminus af
|
||||||
LEFT JOIN active_discount_child adc ON af.id = adc.active_fullminus_id
|
LEFT JOIN active_discount_child adc ON af.id = adc.active_fullminus_id
|
||||||
|
Loading…
Reference in New Issue
Block a user