| | |
| | | //*********************同库位组校验********************* |
| | | boolean flag = false; |
| | | String th = ""; |
| | | List<String> innerLoc = Utils.getGroupInnerLoc(wrkMast.getLocNo()); |
| | | List<String> innerLoc = Utils.getGroupInnerLoc(wrkMast.getSourceLocNo()); |
| | | for (String loc : innerLoc) { |
| | | LocMast locMast = locMastService.selectById(loc); |
| | | if (locMast == null) { |
| | |
| | | // 更新工作档数据状态 |
| | | wrkMast.setIoType(wrkMast.getIoType() - 50); // 入出库类型: 103->53,104->54,107->57 |
| | | wrkMast.setWrkSts(2L); // 工作状态: 2.设备上走 |
| | | wrkMast.setSourceStaNo(pickSta.getStaNo()); // 源站 |
| | | wrkMast.setSourceStaNo(pickSta.getBackSta()); // 源站 |
| | | // wrkMast.setStaNo(dto.getStaNo()); // 目标站 |
| | | // wrkMast.setCrnNo(dto.getCrnNo()); |
| | | wrkMast.setStaNo(liftStaProtocol.getStaNo());//目标站 |
| | |
| | | throw new CoolException("修改库位状态失败"); |
| | | } |
| | | |
| | | staProtocol.setWorkNo(wrkMast.getWrkNo().shortValue());//写入工作号 |
| | | staProtocol.setStaNo(pickSta.getBackSta().shortValue());//写入目标站 |
| | | MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); |
| | | } |