diff --git a/src/main/resources/mybatis/datasource/keyProjects/KeyprojectHiddenMapper.xml b/src/main/resources/mybatis/datasource/keyProjects/KeyprojectHiddenMapper.xml
index 7acb35a2..d94d66e8 100644
--- a/src/main/resources/mybatis/datasource/keyProjects/KeyprojectHiddenMapper.xml
+++ b/src/main/resources/mybatis/datasource/keyProjects/KeyprojectHiddenMapper.xml
@@ -1631,10 +1631,10 @@ FROM
WHERE
h.ISDELETE = '0'
- and (P.HANDLED = '0' OR P.HANDLED IS NULL OR h.ISPUNISH != '2')
+ and (h.ISPUNISH is null OR P.HANDLED = '0' )
- and P.HANDLED = '1'
+ and (h.ISPUNISH = '2' OR P.HANDLED = '1')
AND ( c.OUTSOURCED_ID = #{pd.OUTSOURCED_ID} OR h.FOREIGN_ID = #{pd.OUTSOURCED_ID} )