| | |
| | | //String barcode = agvLocDetls.get(0).getSuppCode(); |
| | | String containerCode = taskDto.getLocDtos().get(0).getContainerCode(); |
| | | |
| | | |
| | | AgvLocMast agvLocMast = agvLocMastService.selectById(sourceLocNo); |
| | | //判断是否全板出库 |
| | | int ioType = isPakOut(sourceLocNo,taskDto) ? 101 : 103; |
| | | //生成工作档 |
| | | AgvWrkMast wrkMast = createWrkMast(ioType,wrkSts,sourceLocNo,targetLocNo,containerCode,now,userId,Short.valueOf(containerCode.substring(0,2)),null); |
| | | AgvWrkMast wrkMast = createWrkMast(ioType,wrkSts,sourceLocNo,targetLocNo,containerCode,now,userId,Short.valueOf(containerCode.substring(0,2)),agvLocMast.getPltType()); |
| | | //生成工作档明细 |
| | | long flowId = snowflakeIdWorker.nextId(); |
| | | taskDto.getLocDtos().forEach(locDto -> { |
| | |
| | | //String barcode = agvLocDetls.get(0).getSuppCode(); |
| | | String containerCode = taskDto.getLocDtos().get(0).getContainerCode(); |
| | | |
| | | |
| | | AgvLocMast agvLocMast = agvLocMastService.selectById(sourceLocNo); |
| | | //判断是否全板出库 |
| | | int ioType = 107; |
| | | //生成工作档 |
| | | AgvWrkMast wrkMast = createWrkMast(ioType,wrkSts,sourceLocNo,targetLocNo,containerCode,now,userId,Short.valueOf(containerCode.substring(0,2)),null); |
| | | AgvWrkMast wrkMast = createWrkMast(ioType,wrkSts,sourceLocNo,targetLocNo,containerCode,now,userId,Short.valueOf(containerCode.substring(0,2)),agvLocMast.getPltType()); |
| | | //生成工作档明细 |
| | | long flowId = snowflakeIdWorker.nextId(); |
| | | taskDto.getLocDtos().forEach(locDto -> { |
| | |
| | | agvWaitPakinList.forEach(wp -> { |
| | | createWrkDetlReWrite(wp.getMatnr(),wrkMast.getWrkNo(),wp.getOrderNo(),wp.getBatch(),wp.getAnfme(),wp.getSuppCode(),now,userId,wp.getThreeCode(),wp.getDeadTime(),wp.getProcessSts()); |
| | | // 流水 -- 新增订单明细 |
| | | OrderDetl orderDetl = orderDetlService.selectItem(wp.getOrderNo(), wp.getMatnr(), wp.getThreeCode()); |
| | | OrderDetl orderDetl = orderDetlService.selectItem(wp.getOrderNo(), wp.getMatnr(),wp.getBatch(), wp.getThreeCode()); |
| | | // FlowLog flowLog = new FlowLog(); |
| | | // flowLog.setFid(String.valueOf(flowId)); |
| | | // flowLog.setSpare2(wrkMast.getWrkNo().toString()); |