feat(student): 添加教师关联查询功能

dev
zhaokai 2026-03-10 19:26:20 +08:00
parent 84973b20e2
commit 23d5bd7666
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@
and c.state != 1
left join user u on u.phone = s.phone and u.delete_enum = 'FALSE'
left join teacher t on t.id = c.teacher_id
left join user tea on c.teacher_id = tea.id and tea.delete_enum = 'FALSE'
LEFT JOIN user tea ON t.user_id = tea.id AND tea.delete_enum = 'FALSE'
<where>
s.delete_enum = 'FALSE'
<if test="params.phone != null and params.phone != ''">