重点工程 - App端隐患管理、处罚管理角标以及预留只查看自己下发的处罚信息case
parent
ae76781cf9
commit
0b3ed821d5
|
@ -1640,7 +1640,13 @@ FROM
|
||||||
</if>
|
</if>
|
||||||
AND ( c.OUTSOURCED_ID = #{pd.OUTSOURCED_ID} OR h.FOREIGN_ID = #{pd.OUTSOURCED_ID} )
|
AND ( c.OUTSOURCED_ID = #{pd.OUTSOURCED_ID} OR h.FOREIGN_ID = #{pd.OUTSOURCED_ID} )
|
||||||
<if test="pd.CREATOR != null and pd.CREATOR != ''">
|
<if test="pd.CREATOR != null and pd.CREATOR != ''">
|
||||||
and h.CREATOR like (case when h.SOURCE = '1' then CONCAT('%', #{pd.CREATOR},'%') else '%' end)
|
<!-- 预留只查看自己下发的处罚的case -->
|
||||||
|
<if test="pd.ONLY_SELF != null and pd.ONLY_SELF != '' and pd.ONLY_SELF == 1">
|
||||||
|
and h.CREATOR like CONCAT('%', #{pd.CREATOR},'%')
|
||||||
|
</if>
|
||||||
|
<if test="pd.ONLY_SELF == null or pd.ONLY_SELF == ''">
|
||||||
|
and h.CREATOR like (case when h.SOURCE = '1' then CONCAT('%', #{pd.CREATOR},'%') else '%' end)
|
||||||
|
</if>
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
||||||
and
|
and
|
||||||
|
|
|
@ -530,7 +530,7 @@
|
||||||
vua.NAME OUTSOURCED_CREATOR_NAME,
|
vua.NAME OUTSOURCED_CREATOR_NAME,
|
||||||
ifnull(vac.CORP_NAME,'秦港股份有限公司') CORP_NAME,
|
ifnull(vac.CORP_NAME,'秦港股份有限公司') CORP_NAME,
|
||||||
p.`NAME` as UNITS_PIC_NAME
|
p.`NAME` as UNITS_PIC_NAME
|
||||||
,ifnull(cfsl.co,0) as cfcount
|
,SUM(ifnull(cfsl.co, 0)) as cfcount
|
||||||
from
|
from
|
||||||
<include refid="tableName"></include> f
|
<include refid="tableName"></include> f
|
||||||
left join bus_units b using (UNITS_ID)
|
left join bus_units b using (UNITS_ID)
|
||||||
|
|
Loading…
Reference in New Issue