| | |
| | | @Autowired |
| | | private AgvWrkMastService agvWrkMastService; |
| | | |
| | | |
| | | public void updateWrkStsByWrkNo(int wrkNo, long wrkSts) { |
| | | AgvWrkMast agvWrkMast = this.selectById(wrkNo); |
| | | //判断要修改的工作档状态是否合理,如果不合理则抛出异常 |
| | |
| | | AgvLocMast locMast = agvCommonService.getLocNo(basDevp.getLocType1(),basDevp.getFloor()); |
| | | agvWrkMast.setLocNo(locMast.getLocNo()); |
| | | agvWrkMast.setWrkSts(201L); |
| | | agvWrkMast.setLogErrMemo("startAllcationIn"); |
| | | agvWrkMastService.updateById(agvWrkMast); |
| | | // 更目标库位 |
| | | locMast.setLocSts("S"); |
| | | agvLocMastService.updateById(locMast); |
| | | return 0; |
| | | |
| | | } |