| | |
| | | String locNo = agvWrkMast.getLocNo(); |
| | | agvWrkMast.setLocNo(agvWrkMast.getSourceLocNo()); |
| | | agvWrkMast.setSourceLocNo(locNo); |
| | | agvWrkMast.setModiTime(new Date()); |
| | | agvWrkMast.setIoTime(now); |
| | | agvWrkMast.setLogErrMemo("createWaitPainWrkMastStart"); |
| | | agvWrkMastService.updateById(agvWrkMast); |
| | |
| | | AgvBasDevp agvBasDevp = agvBasDevpService.selectById(station); |
| | | if(!agvBasDevp.getLocSts().equals("O")){ |
| | | throw new CoolException("当前工作位状态为" + agvBasDevp.getLocSts()+",无法进行空板出库"); |
| | | } |
| | | AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("loc_no", agvBasDevp.getDevNo())); |
| | | if(!Cools.isEmpty(agvWrkMast)){ |
| | | throw new CoolException("有货架在往站点搬运" + agvBasDevp.getDevNo()+",无法进行空板出库"); |
| | | } |
| | | |
| | | //寻找相应类型的空货架 |
| | |
| | | } |
| | | if (wrkMast.getIoType() == 108) { |
| | | wrkMast.setIoType(111); |
| | | wrkMast.setModiTime(new Date()); |
| | | agvWrkMastService.update(wrkMast,new EntityWrapper<AgvWrkMast>().eq("wrk_no", workNo)); |
| | | } else if(wrkMast.getIoType() == 111) { |
| | | wrkMast.setIoType(108); |
| | | wrkMast.setModiTime(new Date()); |
| | | agvWrkMastService.update(wrkMast,new EntityWrapper<AgvWrkMast>().eq("wrk_no", workNo)); |
| | | } |
| | | |