瀏覽代碼

学生代办事项

tags/正式版本
雍文秀 2 年之前
父節點
當前提交
7885c7eed9
共有 1 個檔案被更改,包括 10 行新增0 行删除
  1. 10
    0
      sapi/src/main/resources/mapper/itemtool/StudentTodoMapper.xml

+ 10
- 0
sapi/src/main/resources/mapper/itemtool/StudentTodoMapper.xml 查看文件

@@ -147,6 +147,16 @@
147 147
                     and l.subjectid=#{todo.subjectid}
148 148
                 </if>
149 149
             </if>
150
+            <if test="todo.todotype=='exam'">
151
+                select 'exam' todotype,count(distinct eps.epsid)num,#{todo.subjectid} subjectid
152
+                from e_paper_student eps left join e_subject es on eps.esid=es.esid
153
+                left join e_base e on eps.examid=e.examid
154
+                where e.deleted=1 and e.exammode=1 and eps.studentid=#{todo.studentid} and e.examstate=1
155
+                and es.pstate!=2 and eps.sstate=0
156
+                <if test="todo.showtime!=null and todo.showtime!=0">
157
+                    and UNIX_TIMESTAMP(concat(es.sdate,' ',es.begintime))>=#{todo.showtime}
158
+                </if>
159
+            </if>
150 160
         </foreach>
151 161
     </select>
152 162
 

Loading…
取消
儲存