feat(class): 添加班级状态时间条件查询功能
parent
dba8ce1f4b
commit
2e79eddd10
|
|
@ -222,7 +222,7 @@
|
||||||
<if test="params.likeClassName != null and params.likeClassName != ''">
|
<if test="params.likeClassName != null and params.likeClassName != ''">
|
||||||
and c.name like concat('%',#{params.likeClassName},'%')
|
and c.name like concat('%',#{params.likeClassName},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="params.state != null and params.state != ''">
|
<if test="params.state != null ">
|
||||||
<if test="params.state == 0">
|
<if test="params.state == 0">
|
||||||
and s.state = 0
|
and s.state = 0
|
||||||
and c.start_time > now()
|
and c.start_time > now()
|
||||||
|
|
@ -235,6 +235,10 @@
|
||||||
and c.start_time <= now()
|
and c.start_time <= now()
|
||||||
and c.end_time >= now()
|
and c.end_time >= now()
|
||||||
</if>
|
</if>
|
||||||
|
<if test="params.state == 3">
|
||||||
|
and s.state = 0
|
||||||
|
and c.end_time <= now()
|
||||||
|
</if>
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue