Browse Source

监控列表未结束的可以提前5分钟进

tags/正式版本
雍文秀 2 years ago
parent
commit
c7ad38659b
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      sexam/src/main/resources/mapper/exam/ESubjectInvigilateMapper.xml

+ 7
- 1
sexam/src/main/resources/mapper/exam/ESubjectInvigilateMapper.xml View File

@@ -36,13 +36,19 @@
36 36
         from e_subject_invigilate ei left join e_subject es on ei.esid=es.esid
37 37
         left join e_base eb on eb.examid = es.examid
38 38
         left join e_class ec on eb.examid = ec.examid
39
-        where eb.deleted=1 and eb.examstate!=0 and eb.exammode=1 and eb.monitored=1 and es.pstate=#{esstate}
39
+        where eb.deleted=1 and eb.examstate!=0 and eb.exammode=1 and eb.monitored=1
40 40
         <if test="teacherid!=null and teacherid!=0">
41 41
             and ei.teacherid=#{teacherid}
42 42
         </if>
43 43
         <if test="examid!=null and examid!=0">
44 44
             and es.examid=#{examid}
45 45
         </if>
46
+        <if test="esstate==1">
47
+            and subdate(concat(es.sdate,' ',es.begintime),interval 5 minute)&lt;=now() and es.pstate!=2
48
+        </if>
49
+        <if test="esstate==2">
50
+            and es.pstate=2
51
+        </if>
46 52
         group by es.esid
47 53
         )es left join e_paper_student eps on es.esid = eps.esid and find_in_set(eps.classid,es.classids)
48 54
         group by es.esid

Loading…
Cancel
Save