| | |
| | | String ruleCode = generateTaskCode(); |
| | | |
| | | // 获取库位号 |
| | | InTaskMsgDto locNo = getLocNo(param); |
| | | InTaskMsgDto locNo = null; |
| | | try { |
| | | locNo = getLocNo(param); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | |
| | | // 创建并保存任务 |
| | | Task task = createTask(ruleCode, locNo.getLocNo(), waitPakin.getBarcode(), |
| | |
| | | // return locNo; |
| | | // } |
| | | @Override |
| | | public InTaskMsgDto getLocNo(TaskInParam param) { |
| | | public InTaskMsgDto getLocNo(TaskInParam param) throws Exception{ |
| | | String matnr = null; |
| | | String batch = null; |
| | | List<WaitPakin> waitPakins = waitPakinService.list(new LambdaQueryWrapper<WaitPakin>().eq(WaitPakin::getBarcode, param.getBarcode())); |