动火人修改
This commit is contained in:
parent
e1df296f2d
commit
914ae9fb42
@ -5,11 +5,6 @@
|
||||
t.*,
|
||||
ei1.enterprise_name as jobApplicationUnitName,
|
||||
ei2.enterprise_name as operatingUnitName,
|
||||
su.real_name as assignmentPersonInChargeName,
|
||||
wi1.worker_name as firemanName,
|
||||
wi2.worker_name as safetyInformantName,
|
||||
wi3.worker_name as acceptTheInformantName,
|
||||
wi4.worker_name as guardianName,
|
||||
IFNULL(tp.hidden_danger_num, 0) hidden_danger_num,
|
||||
(case
|
||||
when t.final_acceptance_status = 2 then 4
|
||||
@ -30,11 +25,6 @@
|
||||
from xz_special_operation_fire_safety t
|
||||
left join enterprise_info ei1 on t.job_application_unit = ei1.id
|
||||
left join enterprise_info ei2 on t.operating_unit = ei2.id
|
||||
left join system_user su on su.user_id=t.assignment_person_in_charge
|
||||
left join worker_info wi1 on t.fireman = wi1.id
|
||||
left join worker_info wi2 on t.safety_informant = wi2.id
|
||||
left join worker_info wi3 on t.accept_the_informant = wi3.id
|
||||
left join worker_info wi4 on t.guardian = wi4.id
|
||||
LEFT JOIN (SELECT engineering_id, COUNT(1) hidden_danger_num
|
||||
from xz_security_quality_inspection_record
|
||||
WHERE 1 = 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user