|
|
@@ -180,10 +180,10 @@ public class QuestionServiceImpl extends BaseServiceImpl<QuestionMapper, Questio |
|
|
|
}catch (Exception e){ |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
Map<Integer,String> codeMap=new HashMap<>(); |
|
|
|
Map<String,String> codeMap=new HashMap<>(); |
|
|
|
for (Object questionTypeObject : questionTypeList) { |
|
|
|
JSONObject question=(JSONObject)questionTypeObject; |
|
|
|
codeMap.put(question.getIntValue("code"),question.getString("content")); |
|
|
|
codeMap.put(question.getString("code"),question.getString("content")); |
|
|
|
} |
|
|
|
for (QuestionTypeCountVO questionTypeCountVO : questionTypeCountList) { |
|
|
|
questionTypeCountVO.setContent(codeMap.get(questionTypeCountVO.getType())); |