| | |
| | | // 空桶入库完成,先完成对应库位组任务 |
| | | if(wrkMast.getWorkNoOther() != 0 ){ |
| | | WrkMast wrkMast1 = wrkMastService.selectByWrkNo(wrkMast.getWorkNoOther()); |
| | | // 交换库位号 |
| | | String locNo = wrkMast.getLocNo(); |
| | | wrkMast.setLocNo(wrkMast1.getLocNo()); |
| | | // 交换入库时间,提取库存时按顺序先浅后深 |
| | | Date ioTime = wrkMast.getIoTime(); |
| | | if(locNo.startsWith("10")) { |
| | | wrkMast.setIoTime(wrkMast1.getIoTime()); |
| | | wrkMast1.setIoTime(ioTime); |
| | | if (wrkMast1 != null) { |
| | | // 交换库位号 |
| | | String locNo = wrkMast.getLocNo(); |
| | | wrkMast.setLocNo(wrkMast1.getLocNo()); |
| | | // 交换入库时间,提取库存时按顺序先浅后深 |
| | | Date ioTime = wrkMast.getIoTime(); |
| | | if(locNo.startsWith("10")) { |
| | | wrkMast.setIoTime(wrkMast1.getIoTime()); |
| | | wrkMast1.setIoTime(ioTime); |
| | | } |
| | | wrkMast1.setLocNo(locNo); |
| | | wrkMast1.setCrnEndTime(now); |
| | | wrkMast1.setModiTime(now); |
| | | wrkMast1.setWrkSts(4L); |
| | | wrkMast1.setWorkNoOther(0); |
| | | wrkMastMapper.updateById(wrkMast1); |
| | | } |
| | | wrkMast1.setLocNo(locNo); |
| | | wrkMast1.setCrnEndTime(now); |
| | | wrkMast1.setModiTime(now); |
| | | wrkMast1.setWrkSts(4L); |
| | | wrkMast1.setWorkNoOther(0); |
| | | wrkMastMapper.updateById(wrkMast1); |
| | | } |
| | | wrkMast.setCrnEndTime(now); |
| | | wrkMast.setModiTime(now); |
| | |
| | | } |
| | | } |
| | | // 修改源库位状态 |
| | | if (shallowLoc.getLocSts().equals("D") || shallowLoc.getLocSts().equals("M") || shallowLoc.getLocSts().equals("Z")) { |
| | | if (shallowLoc.getLocSts().equals("F") || shallowLoc.getLocSts().equals("M") || shallowLoc.getLocSts().equals("Z")) { |
| | | shallowLoc.setLocSts("R"); // R.出库预约 |
| | | shallowLoc.setModiTime(new Date()); |
| | | if (!locMastService.updateById(shallowLoc)) { |