| | |
| | | waitPakinService.comb(pakin);
|
| | | });
|
| | |
|
| | |
|
| | | // UTC入库单据(非平库入库单据)
|
| | | if (order.getOrderType() != OrderType.PK_IN_ORDER.id) {
|
| | | if (!ordersParam.getInType().equals(OrderType.PK_IN_ORDER.id)) {
|
| | | /*** 项目下发流程 * 1. PDA组拖通知档* 2. 生成任务档* 3. 通过定时任务下发至ESS** */
|
| | | //生成任务档
|
| | | GeneratePakInParam generatePakInParam = new GeneratePakInParam();
|
| | |
| | | WaitPakinLog pakinLog = new WaitPakinLog();
|
| | | BeanUtils.copyProperties(waitPakin, pakinLog);
|
| | | pakinLog.setIoStatus(1);
|
| | | pakinLog.setId(null);
|
| | | if (!waitPakinLogService.saveOrUpdate(pakinLog)) {
|
| | | throw new CoolException("组拖历史档更新失败");
|
| | | }
|
| | |
| | | order.setOrderSettle(OrderSettleType.COMPLETE.val());
|
| | | OrderLog orderLog = new OrderLog();
|
| | | BeanUtils.copyProperties(order, orderLog);
|
| | | orderLog.setId(null);
|
| | | if (!orderLogService.save(orderLog)) {
|
| | | throw new CoolException("历史单据更新失败!!");
|
| | | }
|
| | |
| | | BeanUtils.copyProperties(delt, detlLog);
|
| | | detlLog.setQty(delt.getWorkQty());
|
| | | detlLog.setWorkQty(0.0);
|
| | | detlLog.setId(null);
|
| | | detlLogs.add(detlLog);
|
| | | });
|
| | |
|