Browse Source

完善返回值

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

+ 1
- 1
sexam/src/main/java/com/xhkjedu/sexam/service/exam/EBaseService.java View File

@@ -402,7 +402,7 @@ public class EBaseService {
402 402
 
403 403
     //修改是否需要生成报告pdf
404 404
     public void updateExamReport(Integer examid){
405
-        eBaseMapper.updateExamState(examid,1);
405
+        eBaseMapper.updateExamReport(examid,1);
406 406
     }
407 407
 
408 408
     //修改生成报告pdf地址

+ 4
- 1
sexam/src/main/java/com/xhkjedu/sexam/service/report/EReportGenerateService.java View File

@@ -1714,7 +1714,10 @@ public class EReportGenerateService {
1714 1714
                 if (N_Utils.isNotEmpty(stuanswer)) {
1715 1715
                     List<String> stuanswers = JSON.parseArray(stuanswer, String.class);
1716 1716
                     if (N_Utils.isListNotEmpty(stuanswers)) {
1717
-                        answeroption = stuanswers.get(0);
1717
+                        String stuansopt = stuanswers.get(0);
1718
+                        if(N_Utils.isNotEmpty(stuansopt)){
1719
+                            answeroption = stuansopt;
1720
+                        }
1718 1721
                     }
1719 1722
                 }
1720 1723
 

Loading…
Cancel
Save