重点工程-改善处罚管理显示逻辑

626相关方人员数据对接
water_xu 2024-05-23 18:10:25 +08:00
parent de9acea882
commit 824967cc6f
1 changed files with 2 additions and 2 deletions

View File

@ -1631,10 +1631,10 @@ FROM
WHERE WHERE
h.ISDELETE = '0' h.ISDELETE = '0'
<if test="pd.HANDLED==1"> <if test="pd.HANDLED==1">
and (P.HANDLED = '0' OR P.HANDLED IS NULL OR h.ISPUNISH != '2') and (h.ISPUNISH is null OR P.HANDLED = '0' )
</if> </if>
<if test="pd.HANDLED==2"> <if test="pd.HANDLED==2">
and P.HANDLED = '1' and (h.ISPUNISH = '2' OR P.HANDLED = '1')
</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 != ''">