mirror of https://github.com/jeecgboot/jeecg-boot
Hotfix : Skip applying non-matching rules if there isn't any
parent
404aaa3900
commit
38e2825f9b
|
@ -178,7 +178,7 @@ public class AddGiftJob implements Job {
|
|||
.collect(groupingBy(orderItem -> giftSkuSet.contains(orderItem.getErpCode())));
|
||||
for (OrderItem orderItem : orderItemMap.get(Boolean.FALSE)) {
|
||||
String erpCode = orderItem.getErpCode();
|
||||
if (!nonMatchingRulesApplied) {
|
||||
if (!nonMatchingRulesApplied && !nonMatchingQuantityRules.isEmpty()) {
|
||||
for (GiftRule giftRule : nonMatchingQuantityRules) {
|
||||
if (erpCode.matches(giftRule.getRegex())) {
|
||||
nonMatchingRulesApplied = true;
|
||||
|
|
Loading…
Reference in New Issue