Browse Source

Merge remote-tracking branch 'origin/ywx' into wn

tags/正式3.10.0
王宁 1 year ago
parent
commit
43d75ddcd1

+ 2
- 0
sapi/src/main/java/com/xhkjedu/sapi/service/system/SchoolService.java View File

@@ -567,6 +567,8 @@ public class SchoolService {
567 567
     private void checkUpTime() throws Exception {
568 568
         //获取区域限制学年升级时间
569 569
         TCloud cloud = cloudMapper.getCloudUpTime();
570
+        if (N_Utils.isEmpty(cloud.getStarttime())) throw new Exception("未设置升级时间,请联系区管理员");
571
+
570 572
         if (!ApiUtil.compareCurrDateTime(cloud.getStarttime(), cloud.getStoptime())) {
571 573
             throw new Exception("不在学年升级时间范围,禁止升级");
572 574
         }

+ 3
- 2
sstudy/src/main/resources/mapper/paperstudent/PaperStudentQuestionMapper.xml View File

@@ -33,7 +33,7 @@
33 33
     <select id="listCorrectQuestion" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo">
34 34
         SELECT psq.psqid,psq.paperid,psq.studentid,psq.answered,psq.answertime,psq.costtime,psq.checkcomm
35 35
         ,psq.useranswer,psq.answertype,psq.converted,psq.useranswertext,psq.useranswertxt,psq.checked,psq.qscore
36
-        ,psq.stuscore,psq.qorder,psq.psid,psq.qn
36
+        ,psq.stuscore,psq.qorder,psq.psid,psq.qn,psq.good
37 37
         ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypeid,q.qtypename
38 38
         ,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
39 39
         FROM t_paper_student_question psq LEFT JOIN t_question q ON psq.questionid=q.questionid
@@ -104,11 +104,12 @@
104 104
             <result property="useranswertext" column="useranswertext"></result>
105 105
             <result property="useranswertxt" column="useranswertxt"></result>
106 106
             <result property="studentname" column="username"></result>
107
+            <result property="good" column="good"></result>
107 108
         </collection>
108 109
     </resultMap>
109 110
     <select id="qcorrectList" resultMap="questionResult">
110 111
         select psq.qscore,psq.qorder,psq.qn,q.qstem,q.qoption,q.qanswer,q.qanalyze
111
-        ,psq.stuscore,psq.answered,psq.checked,psq.checkcomm,psq.psid,psq.psqid
112
+        ,psq.stuscore,psq.answered,psq.checked,psq.checkcomm,psq.psid,psq.psqid,psq.good
112 113
         ,psq.useranswer,psq.converted,psq.answertype,psq.useranswertext,psq.useranswertxt,u.username
113 114
         from t_paper_student_question psq left join t_question q on psq.questionid = q.questionid
114 115
         left join t_user u on psq.studentid = u.userid

Loading…
Cancel
Save