| | |
| | | throw new CoolException("任务下发失败"); |
| | | } |
| | | |
| | | agvWrkMast.setWrkSts(202L); |
| | | agvWrkMast.setModiTime(new Date()); |
| | | boolean b = agvWrkMastService.updateById(agvWrkMast); |
| | | //agvWrkMast.setWrkSts(202L); |
| | | //agvWrkMast.setModiTime(new Date()); |
| | | //boolean b = agvWrkMastService.updateById(agvWrkMast); |
| | | boolean b = agvWrkMastService.updateWrkStsByWrkNo(Math.abs(agvWrkMast.getWrkNo()), 202L); |
| | | if (!b) { |
| | | log.info("更新任务状态失败,{}", agvWrkMast.getWrkNo()); |
| | | throw new CoolException("更新任务状态失败"); |
| | | }else { |
| | | } else { |
| | | log.info("更新任务状态成功,{}", agvWrkMast.getWrkNo()); |
| | | } |
| | | if (agvWrkMast.getIoType() == 1) { |