feat(class): 添加班级状态时间条件查询功能

dev
zhaokai 2026-03-06 15:08:06 +08:00
parent dba8ce1f4b
commit 2e79eddd10
1 changed files with 5 additions and 1 deletions

View File

@ -222,7 +222,7 @@
<if test="params.likeClassName != null and params.likeClassName != ''">
and c.name like concat('%',#{params.likeClassName},'%')
</if>
<if test="params.state != null and params.state != ''">
<if test="params.state != null ">
<if test="params.state == 0">
and s.state = 0
and c.start_time > now()
@ -235,6 +235,10 @@
and c.start_time &lt;= now()
and c.end_time &gt;= now()
</if>
<if test="params.state == 3">
and s.state = 0
and c.end_time &lt;= now()
</if>
</if>
</where>
</select>