diff --git a/src/main/resources/mybatis/datasource/bus/CorpPromiseMapper.xml b/src/main/resources/mybatis/datasource/bus/CorpPromiseMapper.xml index 59eb7ade..d870ef74 100644 --- a/src/main/resources/mybatis/datasource/bus/CorpPromiseMapper.xml +++ b/src/main/resources/mybatis/datasource/bus/CorpPromiseMapper.xml @@ -133,6 +133,9 @@ and dept.DEPARTMENT_ID = #{pd.DEPARTMENT_ID} + + and f.PROMISE_TERM_START >= #{pd.PROMISE_TERM_START} + and dept.`NAME` is not null GROUP BY f.PROMISE_ID diff --git a/src/main/resources/mybatis/datasource/bus/CorpResponsibilityMapper.xml b/src/main/resources/mybatis/datasource/bus/CorpResponsibilityMapper.xml index dc697dc6..ca3bd814 100644 --- a/src/main/resources/mybatis/datasource/bus/CorpResponsibilityMapper.xml +++ b/src/main/resources/mybatis/datasource/bus/CorpResponsibilityMapper.xml @@ -133,6 +133,9 @@ and dept.DEPARTMENT_ID = #{pd.DEPARTMENT_ID} + + and f.RESPONSIBILITY_TERM_START >= #{pd.RESPONSIBILITY_TERM_START} + and dept.`NAME` is not null GROUP BY f.RESPONSIBILITY_ID