|
|
|
@@ -64,7 +64,7 @@ public class OrderExpiringSchedule { |
|
|
|
dateMap.put("type", EnumOrderType.COUPON.getCode()); |
|
|
|
dateMap.put("endDate", curDate); |
|
|
|
List<WxOrder> orderPresss = wxOrderMapper.findListOfUnpaidPressOrderByDate(dateMap); |
|
|
|
orderPresss.parallelStream().forEach( o -> { |
|
|
|
orderPresss.stream().forEach( o -> { |
|
|
|
try { |
|
|
|
orderPressExpired(o); |
|
|
|
} catch (Exception e) { |
|
|
|
@@ -74,7 +74,7 @@ public class OrderExpiringSchedule { |
|
|
|
|
|
|
|
//拼团 |
|
|
|
List<WxOrderGroup> orderGroups = wxOrderGroupService.findList(null); |
|
|
|
orderGroups.parallelStream().forEach(g -> { |
|
|
|
orderGroups.stream().forEach(g -> { |
|
|
|
try { |
|
|
|
wxOrderGroupService.updateGroupStatus(g); |
|
|
|
} catch (Exception e) { |
|
|
|
|