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

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

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

Loading…
Cancel
Save