Commit 06dc7abe authored by suhuiguang's avatar suhuiguang

1.企业的隐患sourceId非企业的id,企业信息查询按照所有企业字段进行查询

parent 6cd39771
......@@ -118,7 +118,7 @@
else 'green' end problemStatusColor
FROM
tzs_safety_problem_tracing spt
LEFT JOIN tz_base_enterprise_info ei on ei.sequence_nbr = spt.source_id
LEFT JOIN tz_base_enterprise_info ei on ei.use_unit_code = spt.principal_unit_code
WHERE
spt.sequence_nbr = #{problemId}
UNION
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment