|
|
@@ -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); |
|
|
|
} |
|
|
|
|