This commit is contained in:
psh
2024-01-16 13:04:04 +08:00
parent 5e6f460277
commit d45e54b27d

View File

@@ -200,6 +200,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
if(ObjectUtil.isEmpty(schBaseTask)){
throw new BadRequestException("任务不存在!taskId"+taskId);
}
if (Integer.parseInt(schBaseTask.getTask_status()) >= Integer.parseInt(TaskStatus.FINISHED.getCode())) {
throw new BadRequestException("任务已完成或已取消!");
}
AbstractTask task = taskFactory.getTask(schBaseTask.getConfig_code());
// 执行创建任务
task.feedbackState(param,schBaseTask,result);