pull/8040/head
Qiuyi LI 2024-12-12 12:30:17 +01:00
parent f405e1ed7a
commit 1eff5b91a3
1 changed files with 3 additions and 0 deletions

View File

@ -176,6 +176,9 @@ public class AddGiftJob implements Job {
.stream()
.filter(orderItem -> !orderItem.getStatus().equalsIgnoreCase(OBSOLETE_STATUS_CODE))
.collect(groupingBy(orderItem -> giftSkuSet.contains(orderItem.getErpCode())));
if (orderItemMap.isEmpty()) {
break;
}
for (OrderItem orderItem : orderItemMap.get(Boolean.FALSE)) {
String erpCode = orderItem.getErpCode();
if (!nonMatchingRulesApplied && nonMatchingQuantityRules != null) {