大屏安全教育返回分类名称

This commit is contained in:
guoshengxiong 2025-12-23 17:36:50 +08:00
parent bc6d97bb8d
commit ae58a047d0

View File

@ -70,9 +70,11 @@
else '-' end) age, else '-' end) age,
IFNULL(w1.edu_type, 0) edu_type, IFNULL(w1.edu_type, 0) edu_type,
IFNULL(w1.edu_course_name, '培训学校培训') edu_course_name IFNULL(w1.edu_course_name, '培训学校培训') edu_course_name
,ec.classify_name
FROM worker_safe_education_worker w FROM worker_safe_education_worker w
JOIN worker_info a ON w.worker_id = a.id JOIN worker_info a ON w.worker_id = a.id
JOIN worker_safe_education w1 ON w.edu_id = w1.id JOIN worker_safe_education w1 ON w.edu_id = w1.id
INNER JOIN education_classify ec on ec.id=w1.classify_id
LEFT JOIN team_info b ON a.team_id = b.id LEFT JOIN team_info b ON a.team_id = b.id
LEFT JOIN department_info c ON a.department_id = c.id LEFT JOIN department_info c ON a.department_id = c.id
LEFT JOIN enterprise_info d ON a.enterprise_id = d.id LEFT JOIN enterprise_info d ON a.enterprise_id = d.id