|
|
@@ -63,7 +63,7 @@ public class LifeUserOrderJob {
|
|
|
.set(LifeUserOrder::getCancelReason,"订单超时未支付")
|
|
|
.in(LifeUserOrder::getId,orderIds));
|
|
|
// 根据类型分组
|
|
|
- Map<Integer, List<String>> collect = lifeUserOrders.stream()
|
|
|
+ Map<Integer, List<String>> collect = lifeUserOrders.stream().filter(order -> order.getCouponType() != null)
|
|
|
.collect(Collectors.groupingBy(
|
|
|
LifeUserOrder::getCouponType, // 按订单类型分组
|
|
|
Collectors.mapping( // 对每个分组中的元素提取ID
|