Fix : apply each matching quantity rules instead of the first only

pull/8040/head
Qiuyi LI 2024-12-20 17:41:08 +01:00
parent d942c52dd8
commit ec4e7addf4
1 changed files with 0 additions and 1 deletions

View File

@ -193,7 +193,6 @@ public class AddGiftJob implements Job {
for (GiftRule giftRule : matchingQuantityRules) { for (GiftRule giftRule : matchingQuantityRules) {
if (erpCode.matches(giftRule.getRegex())) { if (erpCode.matches(giftRule.getRegex())) {
putValueInMapOrReduce(giftRule.getSku(), orderItem.getQuantity(), newGiftMap); putValueInMapOrReduce(giftRule.getSku(), orderItem.getQuantity(), newGiftMap);
break;
} }
} }
} }