Pārlūkot izejas kodu

修复提交试卷

tags/正式版本
王宁 pirms 2 gadiem
vecāks
revīzija
56b3df5125

+ 1
- 0
sexam/src/main/java/com/xhkjedu/sexam/service/paperstudent/EPaperStudentService.java Parādīt failu

@@ -323,6 +323,7 @@ public class EPaperStudentService {
323 323
         EPaperStudent paperStudent = new EPaperStudent();
324 324
         paperStudent.setEpsid(epsid);
325 325
         paperStudent.setSstate(2);
326
+        paperStudent.setEndtime(N_Utils.getSecondTimestamp());
326 327
 
327 328
         //更改试卷中学生未提交的试题设置为0分,标记为已批改
328 329
         ePaperStudentQuestionMapper.updateStuQuesitonNoCommit(epsid);

+ 1
- 1
sexam/src/main/resources/mapper/paperstudent/EPaperStudentMapper.xml Parādīt failu

@@ -163,7 +163,7 @@
163 163
 
164 164
     <!--学生提交试卷-->
165 165
     <update id="updateStudentPaper">
166
-        update e_paper_student set endtime=#{endtime},costtime=#{ps.costtime}
166
+        update e_paper_student set endtime=#{ps.endtime},costtime=#{ps.costtime}
167 167
          ,sstate=#{ps.sstate},checked=#{ps.checked},stupic=#{ps.stupic}
168 168
          ,stuscore=(SELECT SUM(IFNULL(q.stuscore,0)) FROM e_paper_student_question q WHERE q.epsid=#{ps.epsid})
169 169
         where epsid=#{ps.epsid}

Notiek ielāde…
Atcelt
Saglabāt