|
@@ -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
|
|