| | |
| | | |
| | | @Resource |
| | | private RegionClient regionClient; |
| | | @Resource |
| | | private AppUserGiveawayTemporaryClient appUserGiveawayTemporaryClient; |
| | | @Resource |
| | | private ShopGiveawayTemporaryClient shopGiveawayTemporaryClient; |
| | | |
| | | |
| | | @Override |
| | |
| | | JSONObject jsonObject = JSONObject.parseObject(content); |
| | | Long days = jsonObject.getLong("days"); |
| | | order.setOrderStatus(OrderStatus.COMPLETED.getCode()); |
| | | order.setIsCommission(0); |
| | | order.setAfterSaleTime(LocalDateTime.now().plusDays(days)); |
| | | order.setEndTime(LocalDateTime.now()); |
| | | order.setCancellerAppUserId(loginUserApplet.getUserid()); |
| | | if (StringUtils.isNotEmpty(technicianId) && !"null".equals(technicianId)) { |
| | | order.setTechnicianId(Integer.valueOf(technicianId)); |
| | | } |
| | | // TODO |
| | | orderMapper.updateById(order); |
| | | commissionService.calculationCommissionShop(order.getId()); |
| | | } |
| | | |
| | | |
| | |
| | | throw new RuntimeException("订单取消失败"); |
| | | } |
| | | shopPointClient.deleteShopPointCopy(orderId, Arrays.asList(1,2,3)); |
| | | appUserGiveawayTemporaryClient.delAppUserGiveawayTemporary(orderId); |
| | | shopGiveawayTemporaryClient.delShopGiveawayTemporary(orderId); |
| | | return r; |
| | | } |
| | | |