| | |
| | | private WrkMastLogService wrkMastLogService; |
| | | @Autowired |
| | | private LocOwnerService locOwnerService; |
| | | @Autowired |
| | | private OrderDetlPakinService orderDetlPakinService; |
| | | |
| | | @RequestMapping(value = "/order/nav/list/auth") |
| | | @ManagerAuth |
| | |
| | | throw new CoolException("存在作业中数据,不能完结。请检查入库通知档和工作档"); |
| | | } |
| | | } |
| | | |
| | | if(order.getSettle() == 66){ |
| | | List<OrderDetlPakin> lists = orderDetlPakinService.selectList(new EntityWrapper<OrderDetlPakin>().eq("order_no",order.getOrderNo())); |
| | | for (OrderDetlPakin orderDetlPakin : lists) { |
| | | String boxType3 = orderDetlPakin.getBoxType3(); |
| | | if (boxType3 == null || !boxType3.contains("HDU")) { |
| | | throw new CoolException( |
| | | String.format("订单 %s 的明细中不存在包含HDU的物料明细: %s (物料: %s)", |
| | | order.getOrderNo(), |
| | | boxType3, |
| | | orderDetlPakin.getMatnr() != null ? orderDetlPakin.getMatnr() : "未知物料" |
| | | ) |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | order.setUpdateBy(getUserId()); |
| | | order.setUpdateTime(new Date()); |
| | | if (!orderService.updateById(order)) { |