diff --git a/src/main/java/com/zcloud/service/xgf/impl/XgfUserServiceImpl.java b/src/main/java/com/zcloud/service/xgf/impl/XgfUserServiceImpl.java index 24ff5055..cc0e8d35 100644 --- a/src/main/java/com/zcloud/service/xgf/impl/XgfUserServiceImpl.java +++ b/src/main/java/com/zcloud/service/xgf/impl/XgfUserServiceImpl.java @@ -226,6 +226,7 @@ public class XgfUserServiceImpl implements XgfUserService { condition.put("FOREIGN_KEY", x.getString("XGF_USER_ID")); condition.put("TYPE", "1"); condition.put("VALID_FLAG", "1"); + condition.put("END_FLAG", "0"); PageData flow = flowMapper.findByCondition(condition); if (flow == null || flow.size() == 0) { /* 保存审批流程信息 */ diff --git a/src/main/resources/mybatis/datasource/xgf/FlowMapper.xml b/src/main/resources/mybatis/datasource/xgf/FlowMapper.xml index 1c1b56e7..6a013cb7 100644 --- a/src/main/resources/mybatis/datasource/xgf/FlowMapper.xml +++ b/src/main/resources/mybatis/datasource/xgf/FlowMapper.xml @@ -101,6 +101,9 @@ and a.VALID_FLAG = #{VALID_FLAG} + + and a.END_FLAG = #{END_FLAG} +