Commit 59cda3e7 authored by 吴卿华's avatar 吴卿华

修改 隐患台账没上报人问题

parent 22bf254d
...@@ -46,12 +46,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -46,12 +46,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectTStaningBookList" parameterType="TStaningBook" resultMap="TStaningBookResult"> <select id="selectTStaningBookList" parameterType="TStaningBook" resultMap="TStaningBookResult">
SELECT b.*,s1.`staff_name` AS escalationName, SELECT b.*,s5.user_name AS escalationName,
s2.`staff_name` AS rectificationName, s2.`staff_name` AS rectificationName,
s3.`staff_name` AS personLiableName , s3.`staff_name` AS personLiableName ,
d.`dept_name` AS deptName d.`dept_name` AS deptName
FROM t_staning_book b FROM t_staning_book b
LEFT JOIN t_staff s1 ON b.`escalation` = s1.`staff_id` LEFT JOIN t_staff s1 ON b.`escalation` = s1.`staff_id`
LEFT JOIN sys_user s5 ON b.escalation=s5.user_id
LEFT JOIN t_staff s2 ON b.`rectification` = s2.`staff_id` LEFT JOIN t_staff s2 ON b.`rectification` = s2.`staff_id`
LEFT JOIN t_staff s3 ON b.`person_liable` = s3.`staff_id` LEFT JOIN t_staff s3 ON b.`person_liable` = s3.`staff_id`
LEFT JOIN sys_dept d ON d.`dept_id` = b.`dept_id` LEFT JOIN sys_dept d ON d.`dept_id` = b.`dept_id`
......
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