|
|
@@ -303,12 +303,12 @@ public class QuestionServiceImpl extends BaseServiceImpl<QuestionMapper, Questio |
|
|
|
if (aBoolean) { |
|
|
|
setComplate(callbackRequest, mission, thMissionUpdate); |
|
|
|
} else { |
|
|
|
setTaskStatusEnum(thMissionUpdate, TaskStatusEnum.FAIL, mission); |
|
|
|
// setTaskStatusEnum(thMissionUpdate, TaskStatusEnum.FAIL, mission); |
|
|
|
} |
|
|
|
return JsonResult.success(); |
|
|
|
} |
|
|
|
|
|
|
|
private void setTaskStatusEnum(ThMission thMissionUpdate, TaskStatusEnum statusEnum, ThMission mission) { |
|
|
|
private void setTaskStatusEnum2(ThMission thMissionUpdate, TaskStatusEnum statusEnum, ThMission mission) { |
|
|
|
thMissionUpdate.setStatus(statusEnum.getCode()); |
|
|
|
thMissionUpdate.setId(mission.getId()); |
|
|
|
thMissionUpdate.setExecutionEndTime(new Date()); |
|
|
@@ -326,13 +326,12 @@ public class QuestionServiceImpl extends BaseServiceImpl<QuestionMapper, Questio |
|
|
|
} else { |
|
|
|
thMissionUpdate.setAnalyseStatus(AiAnalyseStatusEnum.SUCCESS.getCode()); |
|
|
|
} |
|
|
|
|
|
|
|
setTaskStatusEnum(thMissionUpdate, TaskStatusEnum.COMPLETE, mission); |
|
|
|
// setTaskStatusEnum(thMissionUpdate, TaskStatusEnum.COMPLETE, mission); |
|
|
|
} else if (callbackRequest.getAnalyseStatus() == AiAnalyseStatusEnum.FAILED.getCode()) { |
|
|
|
setTaskStatusEnum(thMissionUpdate, TaskStatusEnum.FAIL, mission); |
|
|
|
// setTaskStatusEnum(thMissionUpdate, TaskStatusEnum.FAIL, mission); |
|
|
|
} else { |
|
|
|
thMissionUpdate.setAnalyseStatus(AiAnalyseStatusEnum.RUNNING.getCode()); |
|
|
|
setTaskStatusEnum(thMissionUpdate, TaskStatusEnum.FLIGHT, mission); |
|
|
|
// setTaskStatusEnum(thMissionUpdate, TaskStatusEnum.FLIGHT, mission); |
|
|
|
} |
|
|
|
|
|
|
|
} |