| | |
| | | groupPurchase.setGroupStatus( |
| | | res ? GroupStatusEnum.FORMED_INTO_A_GROUP : GroupStatusEnum.GROUP_FAILURE); |
| | | groupPurchase.setStartStatus(StartStatusEnum.ENDED); |
| | | |
| | | this.updateById(groupPurchase); |
| | | } |
| | | |
| | |
| | | }); |
| | | try { |
| | | log.info( |
| | | "============ =================退款结束============================="); |
| | | "=============================退款结束============================="); |
| | | log.info("退款成功订单:{}", |
| | | objectMapper.writeValueAsString(successfulOrders)); |
| | | log.info("退款失败订单:{}", objectMapper.writeValueAsString(failedOrders)); |
| | |
| | | orderClient.updateOrderStatusByMubres(formedGroupMubres, SecurityConstants.INNER); |
| | | return true; |
| | | } |
| | | List<GoodsGroupPurchaseInfo> notGroupedList = groupPurchaseInfoList.stream() |
| | | .filter(g -> !g.getCurrentNumber() |
| | | .equals(g.getGroupSize())).peek(p -> { |
| | | p.setGroupStatus(GroupStatusEnum.GROUP_FAILURE.getCode()); |
| | | }).collect( |
| | | Collectors.toList()); |
| | | goodsGroupPurchaseInfoService.updateBatchById(notGroupedList); |
| | | } |
| | | return false; |
| | | } |