Преглед на файлове

问题添加结束时间

tags/v1.1.0
qiujinyang преди 2 години
родител
ревизия
0a0ac02893
променени са 2 файла, в които са добавени 3 реда и са изтрити 5 реда
  1. +0
    -2
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/MissionServiceImpl.java
  2. +3
    -3
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java

+ 0
- 2
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/MissionServiceImpl.java Целия файл

@@ -184,7 +184,6 @@ public class MissionServiceImpl extends BaseServiceImpl<ThMissionMapper, ThMissi
ThMission thMission = getRecentlyRecord(missionStatusRequest,TaskStatusEnum.FLIGHT.getCode());
Assert.notNull(thMission, "飞行任务不能为空!");
ThMission thMissionUpdate = new ThMission(UpdateOrCreateEnum.UPDATE.getCode());
thMissionUpdate.setExecutionEndTime(new Date());
boolean result=false;
//任务调用完成之后,调用发送通道,请求DSP关闭请求
//调用DSP接口
@@ -199,7 +198,6 @@ public class MissionServiceImpl extends BaseServiceImpl<ThMissionMapper, ThMissi
log.info("dsp实时调用响应:{}",responseJson);
}
result=true;
thMissionMapper.updateById(thMissionUpdate);
}else {
log.error("dsp实时调用失败:{}", responseJson);
thMissionUpdate.setAnalyseStatus(AiAnalyseStatusEnum.FAILED.getCode());

+ 3
- 3
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java Целия файл

@@ -141,7 +141,7 @@ public class QuestionServiceImpl extends BaseServiceImpl<QuestionMapper, Questio
return JsonResult.success(resultMap);
}

private static void setInfo(Map<String, Integer> resultMap, QuestionCountVO questionCountVo, Integer code, String name) {
private static Map<String, Integer> setInfo(Map<String, Integer> resultMap, QuestionCountVO questionCountVo, Integer code, String name) {
if(questionCountVo.getStatus().equals(code)){
if(resultMap.containsKey(name)){
Integer current = resultMap.get(name);
@@ -150,9 +150,8 @@ public class QuestionServiceImpl extends BaseServiceImpl<QuestionMapper, Questio
}else{
resultMap.put(name, questionCountVo.getQuantity());
}
}else{
resultMap.put(name, 0);
}
return resultMap;
}

@Override
@@ -181,6 +180,7 @@ public class QuestionServiceImpl extends BaseServiceImpl<QuestionMapper, Questio
private void setTaskStatusEnum(ThMission thMissionUpdate, TaskStatusEnum statusEnum, ThMission mission) {
thMissionUpdate.setStatus(statusEnum.getCode());
thMissionUpdate.setId(mission.getId());
thMissionUpdate.setExecutionEndTime(new Date());
missionMapper.updateById(thMissionUpdate);
}


Loading…
Отказ
Запис