refactor(study): 优化班级查询的数据库关联结构
parent
d46e23f9cf
commit
8152e943a3
|
|
@ -99,7 +99,8 @@
|
||||||
class c
|
class c
|
||||||
left join training_type t on t.training_type_id = c.train_type
|
left join training_type t on t.training_type_id = c.train_type
|
||||||
left join corp_info ci on ci.id = c.corpinfo_id
|
left join corp_info ci on ci.id = c.corpinfo_id
|
||||||
left join user u on u.id = c.teacher_id
|
left join teacher tea on c.teacher_id = tea.id
|
||||||
|
LEFT JOIN user u ON u.id = tea.user_id
|
||||||
<if test="menuPerms != null and menuPerms != null and menuPerms != '' and menuPerms = 'xgfd-yqyd'">
|
<if test="menuPerms != null and menuPerms != null and menuPerms != '' and menuPerms = 'xgfd-yqyd'">
|
||||||
left join student s on s.class_id = c.class_id and s.delete_enum = 'FALSE'
|
left join student s on s.class_id = c.class_id and s.delete_enum = 'FALSE'
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue