fix: 重点工程处罚管理 里面的隐患没有区分重点工程项目 每个重点工程点进去都一样
parent
e3be1f21d7
commit
6d238d6cc1
|
@ -168,11 +168,12 @@
|
||||||
u.UNITS_NAME,
|
u.UNITS_NAME,
|
||||||
p.NAME AS PERSON_NAME
|
p.NAME AS PERSON_NAME
|
||||||
from
|
from
|
||||||
<include refid="tableName"></include> f
|
BUS_KEYPROJECTPUNISH f
|
||||||
|
LEFT JOIN `qa-gwj-prevention`.bus_keyprojectcheck k ON f.KEYPROJECTCHECK_ID = k.KEYPROJECTCHECK_ID
|
||||||
left join `qa-gwj-prevention`.vi_user_all cr on cr.USER_ID = f.CREATOR
|
left join `qa-gwj-prevention`.vi_user_all cr on cr.USER_ID = f.CREATOR
|
||||||
left join `qa-gwj-regulatory`.sys_user cre on cre.USER_ID = f.CREATOR
|
left join `qa-gwj-regulatory`.sys_user cre on cre.USER_ID = f.CREATOR
|
||||||
left join `qa-gwj-regulatory`.BUS_UNITS u on u.UNITS_ID = f.UNITS_ID
|
left join `qa-gwj-regulatory`.BUS_UNITS u on u.UNITS_ID = f.UNITS_ID
|
||||||
left join `qa-gwj-regulatory`.BUS_OUTSOURCED o on o.UNITS_ID = u.UNITS_ID
|
left join `qa-gwj-regulatory`.BUS_OUTSOURCED o on o.OUTSOURCED_ID = k.OUTSOURCED_ID
|
||||||
left join `qa-gwj-regulatory`.BUS_PERSONNELMANAGEMENT p on p.PERSONNELMANAGEMENT_ID = f.PERSONNELMANAGEMENT_ID
|
left join `qa-gwj-regulatory`.BUS_PERSONNELMANAGEMENT p on p.PERSONNELMANAGEMENT_ID = f.PERSONNELMANAGEMENT_ID
|
||||||
where f.ISDELETE = '0'
|
where f.ISDELETE = '0'
|
||||||
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
||||||
|
@ -184,7 +185,7 @@
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.OUTSOURCED_ID != null and pd.OUTSOURCED_ID !='' " >
|
<if test="pd.OUTSOURCED_ID != null and pd.OUTSOURCED_ID !='' " >
|
||||||
and o.OUTSOURCED_ID = #{pd.OUTSOURCED_ID}
|
and k.OUTSOURCED_ID = #{pd.OUTSOURCED_ID}
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.HANDLED != null and pd.HANDLED !='' and pd.HANDLED == 1" >
|
<if test="pd.HANDLED != null and pd.HANDLED !='' and pd.HANDLED == 1" >
|
||||||
and f.HANDLED = 0
|
and f.HANDLED = 0
|
||||||
|
|
Loading…
Reference in New Issue