fix(student): 修复学生状态查询逻辑

dev
zhaokai 2026-03-05 17:46:11 +08:00
parent ef680987c8
commit 08f1def339
1 changed files with 1 additions and 0 deletions

View File

@ -199,6 +199,7 @@
case when s.state = 1 then 1
when s.state = 0 and c.start_time > now() then 0
when s.state = 0 and c.start_time <= now() and c.end_time >= now() then 2
when s.state = 0 and c.end_time <= now() then 3
end as state,
s.interested_ids,
s.interested_names,