fix(student): 修复学生状态查询逻辑
parent
ef680987c8
commit
08f1def339
|
|
@ -199,6 +199,7 @@
|
||||||
case when s.state = 1 then 1
|
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() then 0
|
||||||
when s.state = 0 and c.start_time <= now() and c.end_time >= now() then 2
|
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,
|
end as state,
|
||||||
s.interested_ids,
|
s.interested_ids,
|
||||||
s.interested_names,
|
s.interested_names,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue