Browse Source

学生提交作业答案显示方式完善

tags/正式3.10.0
雍文秀 1 year ago
parent
commit
1f2096fad3

+ 2
- 2
sstudy/src/main/java/com/xhkjedu/sstudy/service/paperstudent/PaperStudentService.java View File

352
 
352
 
353
             //答案显示方式:1作业截至时间,2提交后显示
353
             //答案显示方式:1作业截至时间,2提交后显示
354
             Integer showanswer = 0;
354
             Integer showanswer = 0;
355
-            if (pg.getShowtype() == 2) {
355
+            if (pg.getShowtype() == 2 || paperStudentBean.getPsstate() == 2) {
356
                 showanswer = 1;
356
                 showanswer = 1;
357
             }
357
             }
358
             paperStudentBean.setShowanswer(showanswer);
358
             paperStudentBean.setShowanswer(showanswer);
726
 
726
 
727
             //答案显示方式:1作业截至时间,2提交后显示
727
             //答案显示方式:1作业截至时间,2提交后显示
728
             Integer showanswer = 0;
728
             Integer showanswer = 0;
729
-            if (pg.getShowtype() == 2) {
729
+            if (pg.getShowtype() == 2 || paperStudentBean.getPsstate() == 2) {
730
                 showanswer = 1;
730
                 showanswer = 1;
731
             }
731
             }
732
             paperStudentBean.setShowanswer(showanswer);
732
             paperStudentBean.setShowanswer(showanswer);

+ 2
- 2
sstudy/src/main/java/com/xhkjedu/sstudy/service/paperstudent/PaperStudentWebService.java View File

304
             ps.setPschecked(pschecked);
304
             ps.setPschecked(pschecked);
305
             ps.setCosttime(paper.getCosttime());
305
             ps.setCosttime(paper.getCosttime());
306
             Integer showanswer = 0;
306
             Integer showanswer = 0;
307
-            if (pg.getShowtype() == 2){
307
+            if (pg.getShowtype() == 2 || ps.getPsstate() == 2){
308
                 showanswer = 1;
308
                 showanswer = 1;
309
             }
309
             }
310
             ps.setShowanswer(showanswer);
310
             ps.setShowanswer(showanswer);
488
             ps.setPschecked(pschecked);
488
             ps.setPschecked(pschecked);
489
             ps.setCosttime(paper.getCosttime());
489
             ps.setCosttime(paper.getCosttime());
490
             Integer showanswer = 0;
490
             Integer showanswer = 0;
491
-            if (pg.getShowtype() == 2){
491
+            if (pg.getShowtype() == 2 || ps.getPsstate() == 2){
492
                 showanswer = 1;
492
                 showanswer = 1;
493
             }
493
             }
494
             ps.setShowanswer(showanswer);
494
             ps.setShowanswer(showanswer);

Loading…
Cancel
Save