瀏覽代碼

问题核实的提示数量修改

tags/v1.1.0
qiujinyang 2 年之前
父節點
當前提交
7f9fdd546a
共有 1 個文件被更改,包括 12 次插入1 次删除
  1. +12
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java

+ 12
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java 查看文件

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


Loading…
取消
儲存