|
@@ -296,17 +296,16 @@
|
296
|
296
|
left join t_class_student s on c.classid=s.classid
|
297
|
297
|
left join t_user u on u.userid=cs.teacherid
|
298
|
298
|
left join t_subject st on c.subjectid=st.subjectid
|
299
|
|
- where s.studentid=#{studentid} and c.deleted=1
|
300
|
|
- <if test="timestr!=null and timestr!=''">
|
301
|
|
- and cs.sectiondate=#{timestr}
|
|
299
|
+ where s.studentid=#{cp.studentid} and c.deleted=1
|
|
300
|
+ <if test="cp.subjectid!=null and cp.subjectid!='0'.toString() and cp.subjectid!=''">
|
|
301
|
+ and c.subjectid=#{cp.subjectid}
|
302
|
302
|
</if>
|
303
|
|
- <if test="cstate!=null and cstate!=3">
|
304
|
|
- and cs.sectionstate=#{cstate}
|
|
303
|
+ <if test="cp.timestr!=null and cp.timestr!=''">
|
|
304
|
+ and cs.sectiondate=#{cp.timestr}
|
305
|
305
|
</if>
|
306
|
|
- <if test="cstate!=null and cstate==3">
|
307
|
|
- and cs.sectionstate in(3,4)
|
|
306
|
+ <if test="cp.cstate!=null and cp.cstate!=-1">
|
|
307
|
+ and cs.sectionstate=#{cp.cstate}
|
308
|
308
|
</if>
|
309
|
|
-
|
310
|
309
|
group by cs.sectionid
|
311
|
310
|
order by cs.sectionstate,abs(UNIX_TIMESTAMP(concat(cs.sectiondate,' ',cs.planbegintime))-UNIX_TIMESTAMP(now())),cs.sectionid
|
312
|
311
|
</select>
|