|
@@ -94,27 +94,6 @@ public class EReportClassService {
|
94
|
94
|
map.put("gzxsList", gzxsList);
|
95
|
95
|
List<Map> gpctList = eRclassMapper.listGpCt(rank);//高频错题
|
96
|
96
|
for (Map ct : gpctList) {
|
97
|
|
- //高频错误项
|
98
|
|
- Integer ctype = (Integer) ct.get("ctype");
|
99
|
|
- String gpcwx = "";
|
100
|
|
- if (N_Utils.isObjectiveQuestion(ctype)) {
|
101
|
|
- String answerjson = ct.get("answerjson").toString();//学生作答情况
|
102
|
|
- String answer = JSON.parseArray(ct.get("answer").toString(), String.class).get(0);//正确答案
|
103
|
|
- Map amap = JSON.parseObject(answerjson, Map.class);
|
104
|
|
- List<Map<String, Integer>> list = new ArrayList<>();
|
105
|
|
- Integer cwnum = 0;//作答错误学生数量
|
106
|
|
- for (Object o : amap.keySet()) {
|
107
|
|
- List<Map> o1 = (List<Map>) amap.get(o);
|
108
|
|
- int answernum = o1.size();//作答学生数量
|
109
|
|
- String xx = o.toString();//选项
|
110
|
|
- if (!answer.equals(xx) && cwnum.compareTo(answernum) == -1) {
|
111
|
|
- cwnum = answernum;
|
112
|
|
- gpcwx = xx;
|
113
|
|
- }
|
114
|
|
- }
|
115
|
|
- }
|
116
|
|
- ct.put("gpcwx", gpcwx);
|
117
|
|
-
|
118
|
97
|
//知识点
|
119
|
98
|
setQuestionPoint(ct);
|
120
|
99
|
|