diff --git a/src/main/resources/mybatis/datasource/check/CheckUserMapper.xml b/src/main/resources/mybatis/datasource/check/CheckUserMapper.xml index f586ab3..a9a379b 100644 --- a/src/main/resources/mybatis/datasource/check/CheckUserMapper.xml +++ b/src/main/resources/mybatis/datasource/check/CheckUserMapper.xml @@ -34,7 +34,7 @@ c.DEPARTMENT_ID FROM vi_list_checkuser_all c - LEFT JOIN vi_list_checkrecord_all cr ON c.CHECKRECORD_ID = cr.CHECKRECORD_ID and c.HIDDEN_RISKSTANDARD=cr.HIDDEN_RISKSTANDARD + LEFT JOIN vi_list_checkrecord_all cr ON c.CHECKRECORD_ID = cr.CHECKRECORD_ID and c.LIST_TYPE=cr.LIST_TYPE WHERE cr.isdelete = '0' AND cr.FINISHED = '1' @@ -76,7 +76,7 @@ c.USER_ID FROM vi_list_checkuser_all c - LEFT JOIN vi_list_checkrecord_all cr ON c.CHECKRECORD_ID = cr.CHECKRECORD_ID and c.HIDDEN_RISKSTANDARD=cr.HIDDEN_RISKSTANDARD + LEFT JOIN vi_list_checkrecord_all cr ON c.CHECKRECORD_ID = cr.CHECKRECORD_ID and c.LIST_TYPE=cr.LIST_TYPE WHERE cr.isdelete = '0' AND cr.FINISHED = '1'