Browse Source

优化返回值

tags/正式版本
王宁 2 years ago
parent
commit
f970bfbfc5

+ 17
- 1
sexam/src/main/java/com/xhkjedu/sexam/service/paperstudent/EPaperStudentService.java View File

@@ -542,6 +542,9 @@ public class EPaperStudentService {
542 542
                     qmap.remove("mquestionid");
543 543
                     qmap.remove("mctype");
544 544
                     qmap.remove("questionpid");
545
+                    qmap.remove("mqanalyze");
546
+                    qmap.remove("mqanswer");
547
+                    qmap.remove("mqlevel");
545 548
 
546 549
                     mqlist.add(qmap);
547 550
                 } else {
@@ -574,11 +577,24 @@ public class EPaperStudentService {
574 577
                         }
575 578
                         mque.put("score", sontotalsocre);
576 579
                         mque.put("stuscore", stuscore);
580
+                        if (N_Utils.isNotEmpty(sque.get("mqanalyze"))) {
581
+                            mque.put("qanalyze", sque.get("mqanalyze").toString());
582
+                        } else {
583
+                            mque.put("qanalyze", "");
584
+                        }
585
+                        if (N_Utils.isNotEmpty(sque.get("mqanswer"))) {
586
+                            mque.put("qanswer", sque.get("mqanswer").toString());
587
+                        } else {
588
+                            mque.put("qanswer", "");
589
+                        }
577 590
 
578 591
                         for (Map sonquem : sonqueslist) {
579 592
                             sonquem.remove("mqstem");
580 593
                             sonquem.remove("mqoption");
581
-                            sonquem.remove("msum");
594
+                            sonquem.remove("msnum");
595
+                            sonquem.remove("mqanalyze");
596
+                            sonquem.remove("mqanswer");
597
+                            sonquem.remove("mqlevel");
582 598
                             sonquem.remove("mqtypeid");
583 599
                             sonquem.remove("mqtypename");
584 600
                             sonquem.remove("mhashear");

+ 9
- 3
sexam/src/main/java/com/xhkjedu/sexam/service/report/EReportStudentService.java View File

@@ -240,6 +240,9 @@ public class EReportStudentService {
240 240
                 q.remove("mcomplexity");
241 241
                 q.remove("mctype");
242 242
                 q.remove("questionpid");
243
+                q.remove("mqanalyze");
244
+                q.remove("mqanswer");
245
+                q.remove("mqlevel");
243 246
                 rtnlist.add(q);
244 247
             } else {
245 248
                 //母题
@@ -266,9 +269,9 @@ public class EReportStudentService {
266 269
                         mq.put("qanalyze", "");
267 270
                     }
268 271
                     if (N_Utils.isNotEmpty(q.get("mqanswer"))) {
269
-                        mq.put("qanalyze", q.get("mqanswer").toString());
272
+                        mq.put("qanswer", q.get("mqanswer").toString());
270 273
                     } else {
271
-                        mq.put("qanalyze", "");
274
+                        mq.put("qanswer", "");
272 275
                     }
273 276
 
274 277
                     Integer hashear = Integer.parseInt(q.get("mhashear").toString());
@@ -292,10 +295,13 @@ public class EReportStudentService {
292 295
 
293 296
                     for(Map sonmap : sonqueslist){
294 297
                         sonmap.remove("mqstem");
295
-                        sonmap.remove("msum");
298
+                        sonmap.remove("msnum");
296 299
                         sonmap.remove("mqoption");
297 300
                         sonmap.remove("mqtypeid");
298 301
                         sonmap.remove("mqtypename");
302
+                        sonmap.remove("mqanalyze");
303
+                        sonmap.remove("mqanswer");
304
+                        sonmap.remove("mqlevel");
299 305
                         sonmap.remove("mhashear");
300 306
                         sonmap.remove("mhearfile");
301 307
                         sonmap.remove("mquestionid");

Loading…
Cancel
Save