fix(database): 修复训练用户查询中部门名称缺失的问题
parent
11ce45cecf
commit
b405119e0f
|
|
@ -135,6 +135,7 @@
|
||||||
u.main_corp_flag,
|
u.main_corp_flag,
|
||||||
u.user_type,
|
u.user_type,
|
||||||
u.department_id,
|
u.department_id,
|
||||||
|
d.name as departmentName,
|
||||||
u.post_id,
|
u.post_id,
|
||||||
u.post_name,
|
u.post_name,
|
||||||
u.role_id,
|
u.role_id,
|
||||||
|
|
@ -179,6 +180,7 @@
|
||||||
from
|
from
|
||||||
user u
|
user u
|
||||||
left join training_user tu on tu.phone = u.username and tu.delete_enum = 'FALSE'
|
left join training_user tu on tu.phone = u.username and tu.delete_enum = 'FALSE'
|
||||||
|
left join department d on d.id = u.department_id
|
||||||
<where>
|
<where>
|
||||||
and u.delete_enum = 'FALSE'
|
and u.delete_enum = 'FALSE'
|
||||||
and tu.start_time < now()
|
and tu.start_time < now()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue