| | |
| | | || task.getTaskType().equals(TaskType.TASK_TYPE_LOC_MOVE.type)) { |
| | | /**修改出库站点状态*/ |
| | | BasStation station = basStationService.getOne(new LambdaQueryWrapper<BasStation>() |
| | | .eq(BasStation::getStationName, task.getTargSite())); |
| | | .eq(BasStation::getStationName, task.getOrgSite())); |
| | | if (Objects.isNull(station)) { |
| | | throw new CoolException("数据错误,站点不存在!!"); |
| | | } |
| | |
| | | } |
| | | Task one = taskService.getOne(new LambdaQueryWrapper<Task>().eq(Task::getBarcode, params.getBarcode())); |
| | | if (!Cools.isEmpty(one)) { |
| | | if (!one.getTaskStatus().equals(TaskStsType.COMPLETE_IN.id)) { |
| | | if (!one.getTaskStatus().equals(TaskStsType.WCS_EXECUTE_IN.id)) { |
| | | return R.error("任务已存在但是状态不一致!!!").add("任务已存在但是状态不一致!!!"); |
| | | } |
| | | InTaskWcsReportParam inTaskWcsReportParam = new InTaskWcsReportParam(); |