|
@@ -279,7 +279,7 @@ public class EPaperQtypeService {
|
279
|
279
|
|
280
|
280
|
if(hasmt > 0){
|
281
|
281
|
//说明该题型下有复合题,复合体进行知识点、题型下试题题号及id进行操作
|
282
|
|
- Map<String,List<EPaperQtypeQuestionVo>> quesMap = tqlist.stream().collect(Collectors.groupingBy(EPaperQtypeQuestionVo:: getQuestionpid, Collectors.toList()));
|
|
282
|
+ LinkedHashMap<String,List<EPaperQtypeQuestionVo>> quesMap = tqlist.stream().collect(Collectors.groupingBy(EPaperQtypeQuestionVo:: getQuestionpid,LinkedHashMap::new, Collectors.toList()));
|
283
|
283
|
for(Map.Entry<String, List<EPaperQtypeQuestionVo>> entry : quesMap.entrySet()){
|
284
|
284
|
if(!entry.getKey().equals("000")){
|
285
|
285
|
//说明该题为母题,
|
|
@@ -385,7 +385,7 @@ public class EPaperQtypeService {
|
385
|
385
|
//知识点分析
|
386
|
386
|
List<Map> pointlist = new ArrayList<>();
|
387
|
387
|
if(N_Utils.isListNotEmpty(pointqlist)){
|
388
|
|
- Map<String,List<QuestionOrderVo>> pointmap = pointqlist.stream().collect(Collectors.groupingBy(QuestionOrderVo::getId,Collectors.toList()));
|
|
388
|
+ LinkedHashMap<String,List<QuestionOrderVo>> pointmap = pointqlist.stream().collect(Collectors.groupingBy(QuestionOrderVo::getId,LinkedHashMap::new,Collectors.toList()));
|
389
|
389
|
//根据指示进行分组,
|
390
|
390
|
for(Map.Entry<String, List<QuestionOrderVo>> entry : pointmap.entrySet()){
|
391
|
391
|
List<QuestionOrderVo> pgblist = entry.getValue();
|
|
@@ -393,7 +393,7 @@ public class EPaperQtypeService {
|
393
|
393
|
Double score = pgblist.stream().mapToDouble(s -> s.getScore()).sum();
|
394
|
394
|
score = N_Utils.formatDouble(score,1);
|
395
|
395
|
Double srate = N_Utils.getDoubleDivideAndMulitiply(score,ePaper.getPscore());
|
396
|
|
- Map prate = new TreeMap();
|
|
396
|
+ Map prate = new LinkedHashMap();
|
397
|
397
|
prate.put("pointid",entry.getKey());
|
398
|
398
|
prate.put("pointname",pgblist.get(0).getName());
|
399
|
399
|
prate.put("score",score);
|