|
@ -204,11 +204,8 @@ public class SendResiduesMaterialTask extends AbstractAcsTask { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (taskOperationType == TaskOperationType.MANUAL) { |
|
|
if (taskOperationType == TaskOperationType.MANUAL) { |
|
|
if (Integer.parseInt(taskStatus) > Integer.parseInt(TaskStatus.START_AND_END.getCode())) { |
|
|
if (Integer.parseInt(taskStatus) < Integer.parseInt(TaskStatus.START_AND_END.getCode())) { |
|
|
throw new BadRequestException("已下发的任务需要从ACS完成"); |
|
|
throw new BadRequestException("只有已确认起点和终点之后的任务可以手动完成"); |
|
|
} |
|
|
|
|
|
if (!StrUtil.equals(taskStatus, TaskStatus.START_AND_END.getCode())) { |
|
|
|
|
|
throw new BadRequestException("只有已确认起点和终点的任务可以手动完成"); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -279,11 +276,6 @@ public class SendResiduesMaterialTask extends AbstractAcsTask { |
|
|
throw new BadRequestException("该任务已完成"); |
|
|
throw new BadRequestException("该任务已完成"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (taskOperationType == TaskOperationType.MANUAL |
|
|
|
|
|
&& Integer.parseInt(taskStatus) > Integer.parseInt(TaskStatus.START_AND_END.getCode())) { |
|
|
|
|
|
throw new BadRequestException("已下发任务需要从ACS取消"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
WQLObject.getWQLObject("sch_base_task").delete(task); |
|
|
WQLObject.getWQLObject("sch_base_task").delete(task); |
|
|
|
|
|
|
|
|
WQLObject pointTable = WQLObject.getWQLObject("sch_base_point"); |
|
|
WQLObject pointTable = WQLObject.getWQLObject("sch_base_point"); |
|
|