|
|
@@ -162,15 +162,26 @@ public class QuestionServiceImpl extends BaseServiceImpl<QuestionMapper, Questio |
|
|
|
for (QuestionCountVO questionCountVo : questionCountVoList) { |
|
|
|
setInfo(resultMap, questionCountVo,QuestionStatusEnum.CONFIRM.getCode(),QuestionStatusEnum.CONFIRM.name().toLowerCase()); |
|
|
|
setInfo(resultMap, questionCountVo,QuestionStatusEnum.NEGLECT.getCode(),QuestionStatusEnum.NEGLECT.name().toLowerCase()); |
|
|
|
setInfo(resultMap, questionCountVo,QuestionStatusEnum.NOTREVIEWED.getCode(),QuestionStatusEnum.NOTREVIEWED.name().toLowerCase()); |
|
|
|
} |
|
|
|
|
|
|
|
int sum=0; |
|
|
|
if(!resultMap.containsKey(QuestionStatusEnum.CONFIRM.name().toLowerCase())){ |
|
|
|
resultMap.put(QuestionStatusEnum.CONFIRM.name().toLowerCase(),0); |
|
|
|
}else{ |
|
|
|
sum+=resultMap.get(QuestionStatusEnum.CONFIRM.name().toLowerCase()); |
|
|
|
} |
|
|
|
|
|
|
|
if(!resultMap.containsKey(QuestionStatusEnum.NEGLECT.name().toLowerCase())){ |
|
|
|
resultMap.put(QuestionStatusEnum.NEGLECT.name().toLowerCase(),0); |
|
|
|
}else{ |
|
|
|
sum+=resultMap.get(QuestionStatusEnum.NEGLECT.name().toLowerCase()); |
|
|
|
} |
|
|
|
|
|
|
|
resultMap.put(QuestionStatusEnum.CONFIRM.name().toLowerCase(),sum); |
|
|
|
|
|
|
|
if(!resultMap.containsKey(QuestionStatusEnum.NOTREVIEWED.name().toLowerCase())){ |
|
|
|
resultMap.put(QuestionStatusEnum.NOTREVIEWED.name().toLowerCase(),0); |
|
|
|
} |
|
|
|
return JsonResult.success(resultMap); |
|
|
|
} |
|
|
|
|