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

dev
zhaokai 2026-03-06 13:50:32 +08:00
parent 47f3291b6d
commit b8bca21231
1 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@
case when c.state = 1 then 1
when c.state = 2 and c.start_time > now() then 2
when c.state = 2 and c.start_time <= now() and c.end_time > now() then 3
when c.state = 2 and c.end_time >= now() then 4
when c.state = 2 and c.end_time <= now() then 4
end class_state,
c.valid_start_time,
@ -209,7 +209,7 @@
and c.state = 2 and c.start_time > now()
</if>
<if test = "params.eqState = 3">
and c.state = 2 and c.end_time > now()
and c.state = 2 and c.end_time > now() and c.start_time &lt;= now()
</if>
<if test = "params.eqState = 4">
and c.state = 2 and c.end_time &lt;= now()