| | |
| | | if(wrkMast.getIoType() == 110){ |
| | | agvBasDevpService.updateLocStsAndBarcodeByDevNo(wrkMast.getLocNo(),"F",wrkMast.getBarcode(),wrkMast.getWhsType().shortValue()); |
| | | } |
| | | if (wrkMast.getIoType() == 10) { |
| | | agvBasDevpService.updateLocStsAndBarcodeByDevNo(wrkMast.getSourceLocNo(),"O",wrkMast.getBarcode(),wrkMast.getWhsType().shortValue()); |
| | | agvLocMastService.updateLocStsByLocNo(wrkMast.getLocNo(),"F",wrkMast.getBarcode(),(short)getContainerTypeByloc(wrkMast.getLocNo())); |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | @Autowired |
| | | private AgvWrkMastService agvWrkMastService; |
| | | |
| | | |
| | | public void updateWrkStsByWrkNo(int wrkNo, long wrkSts) { |
| | | AgvWrkMast agvWrkMast = this.selectById(wrkNo); |
| | | //判断要修改的工作档状态是否合理,如果不合理则抛出异常 |
| | |
| | | agvWrkMast.setLocNo(locMast.getLocNo()); |
| | | agvWrkMast.setWrkSts(201L); |
| | | agvWrkMastService.updateById(agvWrkMast); |
| | | |
| | | return 0; |
| | | |
| | | } |
| | |
| | | agvWrkMastService.updateById(agvWrkMast); |
| | | // 空板入库 设置库位状态为D.空桶/空栈板 |
| | | String locSts = agvWrkMast.getIoType() == 10 ? "D" : "F"; |
| | | if (agvWrkMast.getIoType() == 10 || agvWrkMast.getIoType() == 109 || agvWrkMast.getIoType() == 111 ) { |
| | | if (agvWrkMast.getIoType() == 10 || agvWrkMast.getIoType() == 109 || agvWrkMast.getIoType() == 111 || agvWrkMast.getIoType() == 113) { |
| | | // 库位 -- 接驳位 / 库位 |
| | | if ((agvWrkMast.getIoType() == 109 || agvWrkMast.getIoType() == 111) && agvWrkMast.getLocNo().substring(0,2).equals("DB")) { |
| | | agvBasDevpService.updateLocStsAndBarcodeByDevNo(agvWrkMast.getLocNo(),"F",agvWrkMast.getBarcode(),agvWrkMast.getWhsType().shortValue()); |
| | |
| | | } |
| | | private ReturnT<String> doHandMove2(AgvWrkMast agvWrkMast) { |
| | | Date now = new Date(); |
| | | AgvBasDevp devpNo = agvCommonService.getDevpNo(3, 1); |
| | | AgvBasDevp devpNo = agvCommonService.getDevpNo(3, 1, "Y", "Y"); |
| | | if (Cools.isEmpty(devpNo)) { |
| | | throw new CoolException("暂无空闲接驳位"); |
| | | } |