| | |
| | | if (Objects.isNull(material)) { |
| | | throw new CoolException(material.getMatnr() + "物料不存在"); |
| | | } |
| | | //TODO 正常完结需要打开 |
| | | // TaskDetlLog detlLog = taskDetlLogService.selectOne(new EntityWrapper<TaskDetlLog>() |
| | | // .eq("matnr", detl.getMatnr()) |
| | | // .eq("supp_code", detl.getStandby1()) |
| | | // .eq("order_no", detl.getOrderNo())); |
| | | // if (Objects.isNull(detlLog)) { |
| | | // throw new CoolException("数据错误 ,请检查AGV任务档是否已完成!!"); |
| | | // } |
| | | WrkDetlLog detlLog = wrkDetlLogService.selectOne(new EntityWrapper<WrkDetlLog>() |
| | | TaskDetlLog detlLog = taskDetlLogService.selectOne(new EntityWrapper<TaskDetlLog>() |
| | | .eq("matnr", detl.getMatnr()) |
| | | .eq("supp_code", detl.getStandby1()) |
| | | .eq("order_no", detl.getOrderNo())); |
| | | if (Objects.isNull(detlLog)) { |
| | | throw new CoolException("数据错误 ,请检查AGV任务档是否已完成!!"); |
| | | } |
| | | /* WrkDetlLog detlLog = wrkDetlLogService.selectOne(new EntityWrapper<WrkDetlLog>() |
| | | .eq("matnr", detl.getMatnr()) |
| | | .eq("supp_code", detl.getStandby1()) |
| | | .eq("order_no", detl.getOrderNo())); |
| | | if (Objects.isNull(detlLog)) { |
| | | throw new CoolException("物料编码:" + detl.getMatnr() + "数据错误 ,请检查堆垛机任务档是否已完成!!"); |
| | | } |
| | | }*/ |
| | | //目标库区 |
| | | orderParam.setTarget_location("2"); |
| | | // orderParam.setTarget_location(detlLog.getAreaType()); |
| | | // orderParam.setTarget_location("2"); |
| | | orderParam.setTarget_location(detlLog.getAreaType()); |
| | | OrderItemsParam itemParam = new OrderItemsParam(); |
| | | // BS Code |
| | | itemParam |