| | |
| | | }); |
| | | params.setData(reportData); |
| | | |
| | | R reported = reportMsgService.reportOrders(params); |
| | | R reported = reportMsgService.uploadReportOrders(params); |
| | | if (reported.get("code").equals(200)) { |
| | | order.setNtyStatus(1); |
| | | if (!asnOrderService.updateById(order)) { |
| | | throw new CoolException("上报状态修改失败!!"); |
| | | } |
| | | } |
| | | try { |
| | | //休眠3秒 |
| | | Thread.sleep(3000); |
| | | } catch (InterruptedException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | |
| | | }); |
| | | } |
| | | |
| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void moveOrderToLog(List<WkOrder> wkOrders, String type) { |
| | | //上报已完成订单至ERP、MES等三方系统 |
| | | // reportOrders(wkOrders); |
| | | reportOrders(wkOrders); |
| | | // |
| | | Set<Long> longSet = wkOrders.stream().map(WkOrder::getId).collect(Collectors.toSet()); |
| | | List<WkOrderItem> orderItems = asnOrderItemService.list(new LambdaQueryWrapper<WkOrderItem>() |