| | |
| | | continue; |
| | | } |
| | | |
| | | // 更新工作档状态为14失败 |
| | | // 更新工作档状态为14 |
| | | taskWrk.setWrkSts(14); |
| | | if (taskWrkMapper.updateById(taskWrk) != 0) { |
| | | // 复位堆垛机 |
| | | crnThread.setResetFlag(true); |
| | | |
| | | //更新库位状态 |
| | | LocMast locMast = locMastService.selectByLocNo(taskWrk.getTargetPoint()); |
| | | locMast.setLocSts("O");//O.空库位 |
| | | locMast.setBarcode("");//托盘码 |
| | | locMast.setModiTime(new Date()); |
| | | locMast.setModiUser(9999L); |
| | | locMastService.updateById(locMast); |
| | | } else { |
| | | log.error("更新工作档的工作状态为14失败!!! [工作号:{}]", taskWrk.getWrkNo()); |
| | | } |
| | |
| | | if (integerTaskWrk > 0) { |
| | | // 堆垛机复位 |
| | | crnThread.setResetFlag(true); |
| | | |
| | | //更新库位状态 |
| | | LocMast locMast = locMastService.selectByLocNo(taskWrk.getTargetPoint()); |
| | | locMast.setLocSts("F");//F.在库 |
| | | locMast.setBarcode(taskWrk.getBarcode());//托盘码 |
| | | locMast.setModiTime(now); |
| | | locMast.setModiUser(9999L); |
| | | locMastService.updateById(locMast); |
| | | } |
| | | } |
| | | } |