| | |
| | | .set(Loc::getUseStatus, LocStsType.LOC_STS_TYPE_F.type))) { |
| | | throw new CoolException("源库位状态修改失败!!"); |
| | | } |
| | | } else if (task.getTaskType().equals(TaskType.TASK_TYPE_EMPITY_OUT.type)) { |
| | | // 空板出库:建单时 D→R,取消恢复为空板 D |
| | | if (!locService.update(new LambdaUpdateWrapper<Loc>() |
| | | .eq(Loc::getCode, task.getOrgLoc()) |
| | | .eq(Loc::getUseStatus, LocStsType.LOC_STS_TYPE_R.type) |
| | | .set(Loc::getUseStatus, LocStsType.LOC_STS_TYPE_D.type))) { |
| | | throw new CoolException("空板出库源库位恢复空板失败!!"); |
| | | } |
| | | } |
| | | |
| | | if (!Objects.isNull(task.getWarehType()) && task.getWarehType().equals(WarehType.WAREHOUSE_TYPE_AGV.val)) { |
| | |
| | | log.error("站点不存在!!任务编码:{},目标站点:{}", task.getTaskCode(), task.getTargSite()); |
| | | continue; |
| | | } |
| | | // 出库下发前校验站点状态与出库能力 |
| | | if (task.getTaskType() >= TaskType.TASK_TYPE_OUT.type) { |
| | | if (!Integer.valueOf(1).equals(station.getStatus()) || !Integer.valueOf(1).equals(station.getOutAble())) { |
| | | log.error("========== RCS任务下发失败 =========="); |
| | | log.error("站点不可出库下发!!任务编码:{},目标站点:{},站点状态(status):{},能出(outAble):{}", |
| | | task.getTaskCode(), task.getTargSite(), station.getStatus(), station.getOutAble()); |
| | | continue; |
| | | } |
| | | } |
| | | } |
| | | |
| | | /**判断是否光电站点,非光店站点需管控站点状态*/ |