diff --git a/service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceEntity.xml b/service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceEntity.xml
index a8c4dc90..54bbc98d 100644
--- a/service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceEntity.xml
+++ b/service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceEntity.xml
@@ -189,7 +189,7 @@
         login_name as loginName,
         password as password,
         service_name as serviceName,
-        use_state as useState
+        use_state as useState,
         data_state as dataState
         from sys_data_source
         <trim prefix="where" prefixOverrides="and">
@@ -235,7 +235,7 @@
         login_name as loginName,
         password as password,
         service_name as serviceName,
-        use_state as useState
+        use_state as useState,
         data_state as dataState
         from sys_data_source
         <trim prefix="where" prefixOverrides="and">
diff --git a/service/src/main/java/com/hzya/frame/sys/dataSource/service/ISysDataSourceService.java b/service/src/main/java/com/hzya/frame/sys/dataSource/service/ISysDataSourceService.java
index 7ed1bc6d..841841a5 100644
--- a/service/src/main/java/com/hzya/frame/sys/dataSource/service/ISysDataSourceService.java
+++ b/service/src/main/java/com/hzya/frame/sys/dataSource/service/ISysDataSourceService.java
@@ -63,5 +63,12 @@ public interface ISysDataSourceService extends IBaseService<SysDataSourceEntity,
      * @Date 2:18 下午 2023/7/17
      **/
     JsonResultEntity deleteEntity(JSONObject jsonObject);
-
+    /**
+     * @Author lvleigang
+     * @Description  数据源测试接口 测试当前页面数据源是否配置正确
+     * @Date 2:08 下午 2023/9/23
+     * @param jsonObject
+     * @return
+     **/
+    JsonResultEntity testDatabase(JSONObject jsonObject);
 }
diff --git a/service/src/main/java/com/hzya/frame/sys/dataSource/service/impl/SysDataSourceServiceImpl.java b/service/src/main/java/com/hzya/frame/sys/dataSource/service/impl/SysDataSourceServiceImpl.java
index 2fde7438..504cca64 100644
--- a/service/src/main/java/com/hzya/frame/sys/dataSource/service/impl/SysDataSourceServiceImpl.java
+++ b/service/src/main/java/com/hzya/frame/sys/dataSource/service/impl/SysDataSourceServiceImpl.java
@@ -9,6 +9,7 @@ import com.hzya.frame.sys.dataSource.entity.SysDataSourceEntity;
 import com.hzya.frame.sys.dataSource.dao.ISysDataSourceDao;
 import com.hzya.frame.sys.dataSource.entity.SysDataSourceVo;
 import com.hzya.frame.sys.dataSource.service.ISysDataSourceService;
+import com.hzya.frame.sysnew.application.entity.SysApplicationDatasourceDto;
 import com.hzya.frame.util.AESUtil;
 import com.hzya.frame.uuid.UUIDUtils;
 import com.hzya.frame.web.entity.BaseResult;
@@ -182,7 +183,7 @@ public class SysDataSourceServiceImpl extends BaseService<SysDataSourceEntity, S
 			try {
 				dsDataSourceUtil.editDataSource(entity);
 			} catch (Exception e) {
-				return BaseResult.getSuccessMessageEntity("修改数据源失败,请检查数据源配置是否正确");
+				//return BaseResult.getSuccessMessageEntity("修改数据源失败,请检查数据源配置是否正确");
 			}
 		}else {
 			try {
@@ -198,7 +199,30 @@ public class SysDataSourceServiceImpl extends BaseService<SysDataSourceEntity, S
 		return BaseResult.getSuccessMessageEntity("修改数据源成功",entity.getId());
 
 	}
-
+	/**
+	 * @param object
+	 * @return
+	 * @Author lvleigang
+	 * @Description 数据源测试接口 测试当前页面数据源是否配置正确
+	 * @Date 2:08 下午 2023/9/23
+	 **/
+	@Override
+	public JsonResultEntity testDatabase(JSONObject object) {
+		SysDataSourceEntity entity = getData("jsonStr", object, SysDataSourceEntity.class);
+		if (entity == null) {
+			return BaseResult.getFailureMessageEntity("系统错误");
+		}
+		SysApplicationDatasourceDto sysApplicationDatasourceDto = new SysApplicationDatasourceDto();
+		sysApplicationDatasourceDto.setSourceType(entity.getSourceType());
+		sysApplicationDatasourceDto.setSourceUrl(entity.getSourceUrl());
+		sysApplicationDatasourceDto.setLoginName(entity.getLoginName());
+		sysApplicationDatasourceDto.setPassword(entity.getPassword());
+		if (dsDataSourceUtil.testConnection(sysApplicationDatasourceDto)) {
+			return BaseResult.getSuccessMessageEntity("测试连接数据源成功",true);
+		} else {
+			return BaseResult.getSuccessMessageEntity("测试连接数据源失败",false);
+		}
+	}
 	/**
 	 * @param object
 	 * @return com.hzya.frame.web.entity.JsonResultEntity
diff --git a/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/dao/ISysArchivesContrastDao.java b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/dao/ISysArchivesContrastDao.java
new file mode 100644
index 00000000..b20d660f
--- /dev/null
+++ b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/dao/ISysArchivesContrastDao.java
@@ -0,0 +1,16 @@
+package com.hzya.frame.sysnew.archivesContrast.dao;
+
+import com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity;
+import com.hzya.frame.basedao.dao.IBaseDao; 
+
+/**
+ * 档案对照表数据库访问层
+ *
+ * @author makejava
+ * @since 2024-05-27 16:21:36
+ */
+public interface ISysArchivesContrastDao extends IBaseDao<SysArchivesContrastEntity, String> {
+
+    SysArchivesContrastEntity getEntity(SysArchivesContrastEntity entity);
+}
+
diff --git a/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/dao/impl/SysArchivesContrastDaoImpl.java b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/dao/impl/SysArchivesContrastDaoImpl.java
new file mode 100644
index 00000000..3321e62f
--- /dev/null
+++ b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/dao/impl/SysArchivesContrastDaoImpl.java
@@ -0,0 +1,22 @@
+package com.hzya.frame.sysnew.archivesContrast.dao.impl;
+
+import com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity;
+import com.hzya.frame.sysnew.archivesContrast.dao.ISysArchivesContrastDao;
+import org.springframework.stereotype.Repository;
+import com.hzya.frame.basedao.dao.MybatisGenericDao;
+/**
+ * 档案对照表数据库访问层
+ *
+ * @author makejava
+ * @since 2024-05-27 16:21:36
+ */
+@Repository(value = "SysArchivesContrastDaoImpl")
+public class SysArchivesContrastDaoImpl extends MybatisGenericDao<SysArchivesContrastEntity, String> implements ISysArchivesContrastDao{
+
+    @Override
+    public SysArchivesContrastEntity getEntity(SysArchivesContrastEntity entity) {
+        SysArchivesContrastEntity o = (SysArchivesContrastEntity) super.selectOne(getSqlIdPrifx() + "getEntity", entity);
+        return o;
+    }
+}
+
diff --git a/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/entity/SysArchivesContrastEntity.java b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/entity/SysArchivesContrastEntity.java
new file mode 100644
index 00000000..e46c9c16
--- /dev/null
+++ b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/entity/SysArchivesContrastEntity.java
@@ -0,0 +1,245 @@
+package com.hzya.frame.sysnew.archivesContrast.entity;
+
+import java.util.Date;
+import com.hzya.frame.web.entity.BaseEntity;
+/**
+ * 档案对照实体类
+ *
+ * @author makejava
+ * @since 2024-05-27 16:21:36
+ */
+public class SysArchivesContrastEntity extends BaseEntity {
+ 
+  /**  左应用id */
+   private String leftAppId;
+  /**  左应用编码 */
+   private String leftAppCode;
+  /**  左应用名称 */
+   private String leftAppName;
+  /**  左接口ID */
+   private String leftApiId;
+  /**  左id */
+   private String leftId;
+  /**  左编码 */
+   private String leftCode;
+  /**  左名称 */
+   private String leftName;
+  /**  左手机号 */
+   private String leftTel;
+  /**  左身份证号 */
+   private String leftIc;
+  /**  右应用id */
+   private String rightAppId;
+  /**  右应用编码 */
+   private String rightAppCode;
+  /**  右应用名称 */
+   private String rightAppName;
+  /**  右接口ID */
+   private String rightApiId;
+  /**  右id */
+   private String rightId;
+  /**  右编码 */
+   private String rightCode;
+  /**  右名称 */
+   private String rightName;
+  /**  右手机号 */
+   private String rightTel;
+  /**  右身份证号 */
+   private String rightIc;
+  /**  公司id */
+   private String companyId;
+  /**  左公司 */
+   private String leftOrg;
+  /**  右公司 */
+   private String rightOrg;
+  /*  类型
+        1、sys_personnel_control 人员对照
+        2、sys_org_control   部门档案
+        3、sys_stock_control 存货对照
+        4、sys_merchant_control  客商辅助核算
+        5、sys_taxrate_control  税率
+        6、sys_project_control   项目辅助核算
+        7、sys_bank_control  银行类别
+        8、sys_bankaccount_control   银行账户
+        9、sys_assets_control    资产类别
+  */
+   private String type;
+
+
+    public String getLeftAppId() {
+        return leftAppId;
+    }
+
+    public void setLeftAppId(String leftAppId) {
+        this.leftAppId = leftAppId;
+    }
+
+    public String getLeftAppCode() {
+        return leftAppCode;
+    }
+
+    public void setLeftAppCode(String leftAppCode) {
+        this.leftAppCode = leftAppCode;
+    }
+
+    public String getLeftAppName() {
+        return leftAppName;
+    }
+
+    public void setLeftAppName(String leftAppName) {
+        this.leftAppName = leftAppName;
+    }
+
+    public String getLeftApiId() {
+        return leftApiId;
+    }
+
+    public void setLeftApiId(String leftApiId) {
+        this.leftApiId = leftApiId;
+    }
+
+    public String getLeftId() {
+        return leftId;
+    }
+
+    public void setLeftId(String leftId) {
+        this.leftId = leftId;
+    }
+
+    public String getLeftCode() {
+        return leftCode;
+    }
+
+    public void setLeftCode(String leftCode) {
+        this.leftCode = leftCode;
+    }
+
+    public String getLeftName() {
+        return leftName;
+    }
+
+    public void setLeftName(String leftName) {
+        this.leftName = leftName;
+    }
+
+    public String getLeftTel() {
+        return leftTel;
+    }
+
+    public void setLeftTel(String leftTel) {
+        this.leftTel = leftTel;
+    }
+
+    public String getLeftIc() {
+        return leftIc;
+    }
+
+    public void setLeftIc(String leftIc) {
+        this.leftIc = leftIc;
+    }
+
+    public String getRightAppId() {
+        return rightAppId;
+    }
+
+    public void setRightAppId(String rightAppId) {
+        this.rightAppId = rightAppId;
+    }
+
+    public String getRightAppCode() {
+        return rightAppCode;
+    }
+
+    public void setRightAppCode(String rightAppCode) {
+        this.rightAppCode = rightAppCode;
+    }
+
+    public String getRightAppName() {
+        return rightAppName;
+    }
+
+    public void setRightAppName(String rightAppName) {
+        this.rightAppName = rightAppName;
+    }
+
+    public String getRightApiId() {
+        return rightApiId;
+    }
+
+    public void setRightApiId(String rightApiId) {
+        this.rightApiId = rightApiId;
+    }
+
+    public String getRightId() {
+        return rightId;
+    }
+
+    public void setRightId(String rightId) {
+        this.rightId = rightId;
+    }
+
+    public String getRightCode() {
+        return rightCode;
+    }
+
+    public void setRightCode(String rightCode) {
+        this.rightCode = rightCode;
+    }
+
+    public String getRightName() {
+        return rightName;
+    }
+
+    public void setRightName(String rightName) {
+        this.rightName = rightName;
+    }
+
+    public String getRightTel() {
+        return rightTel;
+    }
+
+    public void setRightTel(String rightTel) {
+        this.rightTel = rightTel;
+    }
+
+    public String getRightIc() {
+        return rightIc;
+    }
+
+    public void setRightIc(String rightIc) {
+        this.rightIc = rightIc;
+    }
+
+    public String getCompanyId() {
+        return companyId;
+    }
+
+    public void setCompanyId(String companyId) {
+        this.companyId = companyId;
+    }
+
+    public String getLeftOrg() {
+        return leftOrg;
+    }
+
+    public void setLeftOrg(String leftOrg) {
+        this.leftOrg = leftOrg;
+    }
+
+    public String getRightOrg() {
+        return rightOrg;
+    }
+
+    public void setRightOrg(String rightOrg) {
+        this.rightOrg = rightOrg;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+}
+
diff --git a/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/entity/SysArchivesContrastEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/entity/SysArchivesContrastEntity.xml
new file mode 100644
index 00000000..3269e957
--- /dev/null
+++ b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/entity/SysArchivesContrastEntity.xml
@@ -0,0 +1,634 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.hzya.frame.sysnew.archivesContrast.dao.impl.SysArchivesContrastDaoImpl">
+
+    <resultMap id="get-SysArchivesContrastEntity-result" type="com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity" >
+       <result property="id" column="id" jdbcType="VARCHAR"/>
+           <result property="leftAppId" column="left_app_id" jdbcType="VARCHAR"/>
+           <result property="leftAppCode" column="left_app_code" jdbcType="VARCHAR"/>
+           <result property="leftAppName" column="left_app_name" jdbcType="VARCHAR"/>
+           <result property="leftApiId" column="left_api_id" jdbcType="VARCHAR"/>
+           <result property="leftId" column="left_id" jdbcType="VARCHAR"/>
+           <result property="leftCode" column="left_code" jdbcType="VARCHAR"/>
+           <result property="leftName" column="left_name" jdbcType="VARCHAR"/>
+           <result property="leftTel" column="left_tel" jdbcType="VARCHAR"/>
+           <result property="leftIc" column="left_ic" jdbcType="VARCHAR"/>
+           <result property="rightAppId" column="right_app_id" jdbcType="VARCHAR"/>
+           <result property="rightAppCode" column="right_app_code" jdbcType="VARCHAR"/>
+           <result property="rightAppName" column="right_app_name" jdbcType="VARCHAR"/>
+           <result property="rightApiId" column="right_api_id" jdbcType="VARCHAR"/>
+           <result property="rightId" column="right_id" jdbcType="VARCHAR"/>
+           <result property="rightCode" column="right_code" jdbcType="VARCHAR"/>
+           <result property="rightName" column="right_name" jdbcType="VARCHAR"/>
+           <result property="rightTel" column="right_tel" jdbcType="VARCHAR"/>
+           <result property="rightIc" column="right_ic" jdbcType="VARCHAR"/>
+           <result property="sorts" column="sorts" jdbcType="INTEGER"/>
+           <result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
+           <result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
+           <result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
+           <result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
+           <result property="sts" column="sts" jdbcType="VARCHAR"/>
+           <result property="org_id" column="org_id" jdbcType="VARCHAR"/>
+           <result property="companyId" column="company_id" jdbcType="VARCHAR"/>
+           <result property="leftOrg" column="left_org" jdbcType="VARCHAR"/>
+           <result property="rightOrg" column="right_org" jdbcType="VARCHAR"/>
+        </resultMap>
+    <!-- 查询的字段-->
+    <sql id = "SysArchivesContrastEntity_Base_Column_List_personnel">
+        id
+       ,left_app_id 
+        ,left_app_code 
+        ,left_app_name 
+        ,left_api_id 
+        ,left_id 
+        ,left_code 
+        ,left_name 
+        ,left_tel 
+        ,left_ic 
+        ,right_app_id 
+        ,right_app_code 
+        ,right_app_name 
+        ,right_api_id 
+        ,right_id 
+        ,right_code 
+        ,right_name 
+        ,right_tel 
+        ,right_ic 
+        ,sorts 
+        ,create_user_id 
+        ,create_time 
+        ,modify_user_id 
+        ,modify_time 
+        ,sts 
+        ,org_id 
+        ,company_id 
+        ,left_org 
+        ,right_org 
+     </sql>
+
+    <sql id = "SysArchivesContrastEntity_Base_Column_List">
+        id
+       ,left_app_id
+        ,left_app_code
+        ,left_app_name
+        ,left_api_id
+        ,left_id
+        ,left_code
+        ,left_name
+        ,right_app_id
+        ,right_app_code
+        ,right_app_name
+        ,right_api_id
+        ,right_id
+        ,right_code
+        ,right_name
+        ,sorts
+        ,create_user_id
+        ,create_time
+        ,modify_user_id
+        ,modify_time
+        ,sts
+        ,org_id
+        ,company_id
+        ,left_org
+        ,right_org
+     </sql>
+    <!--通过ID获取数据 -->
+    <select id="entity_get" resultMap="get-SysArchivesContrastEntity-result">
+        select
+        <choose>
+            <when test="type == '1'.toString()">
+                <include refid="SysArchivesContrastEntity_Base_Column_List_personnel" />
+            </when>
+            <otherwise>
+                <include refid="SysArchivesContrastEntity_Base_Column_List" />
+            </otherwise>
+        </choose>
+        from
+        <choose>
+            <when test="type == '1'.toString()"> sys_personnel_control </when>
+            <when test="type == '2'.toString()"> sys_org_control </when>
+            <when test="type == '3'.toString()"> sys_stock_control </when>
+            <when test="type == '4'.toString()"> sys_merchant_control </when>
+            <when test="type == '5'.toString()"> sys_taxrate_control </when>
+            <when test="type == '6'.toString()"> sys_project_control </when>
+            <when test="type == '7'.toString()"> sys_bank_control </when>
+            <when test="type == '8'.toString()"> sys_bankaccount_control </when>
+            <when test="type == '9'.toString()"> sys_assets_control </when>
+        </choose>
+        where sts = 'Y' and  id = #{id}
+    </select>
+
+    <!--通过ID获取数据 -->
+    <select id="getEntity" resultMap="get-SysArchivesContrastEntity-result" parameterType = "com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity">
+        select
+        <choose>
+            <when test="type == '1'.toString()">
+                <include refid="SysArchivesContrastEntity_Base_Column_List_personnel" />
+            </when>
+            <otherwise>
+                <include refid="SysArchivesContrastEntity_Base_Column_List" />
+            </otherwise>
+        </choose>
+        from
+        <choose>
+            <when test="type == '1'.toString()"> sys_personnel_control </when>
+            <when test="type == '2'.toString()"> sys_org_control </when>
+            <when test="type == '3'.toString()"> sys_stock_control </when>
+            <when test="type == '4'.toString()"> sys_merchant_control </when>
+            <when test="type == '5'.toString()"> sys_taxrate_control </when>
+            <when test="type == '6'.toString()"> sys_project_control </when>
+            <when test="type == '7'.toString()"> sys_bank_control </when>
+            <when test="type == '8'.toString()"> sys_bankaccount_control </when>
+            <when test="type == '9'.toString()"> sys_assets_control </when>
+        </choose>
+        where sts = 'Y' and  id = #{id}
+    </select>
+ <!-- 查询 采用==查询 -->
+ <select id="entity_list_base" resultMap="get-SysArchivesContrastEntity-result" parameterType = "com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity">
+    select
+     <choose>
+         <when test="type == '1'.toString()">
+             <include refid="SysArchivesContrastEntity_Base_Column_List_personnel" />
+         </when>
+         <otherwise>
+             <include refid="SysArchivesContrastEntity_Base_Column_List" />
+         </otherwise>
+     </choose>
+    from
+     <choose>
+         <when test="type == '1'.toString()"> sys_personnel_control </when>
+         <when test="type == '2'.toString()"> sys_org_control </when>
+         <when test="type == '3'.toString()"> sys_stock_control </when>
+         <when test="type == '4'.toString()"> sys_merchant_control </when>
+         <when test="type == '5'.toString()"> sys_taxrate_control </when>
+         <when test="type == '6'.toString()"> sys_project_control </when>
+         <when test="type == '7'.toString()"> sys_bank_control </when>
+         <when test="type == '8'.toString()"> sys_bankaccount_control </when>
+         <when test="type == '9'.toString()"> sys_assets_control </when>
+     </choose>
+    <trim prefix="where" prefixOverrides="and"> 
+        <if test="id != null and id != ''"> and id = #{id} </if>
+            <if test="leftAppId != null and leftAppId != ''"> and left_app_id = #{leftAppId} </if>
+            <if test="leftAppCode != null and leftAppCode != ''"> and left_app_code = #{leftAppCode} </if>
+            <if test="leftAppName != null and leftAppName != ''"> and left_app_name = #{leftAppName} </if>
+            <if test="leftApiId != null and leftApiId != ''"> and left_api_id = #{leftApiId} </if>
+            <if test="leftId != null and leftId != ''"> and left_id = #{leftId} </if>
+            <if test="leftCode != null and leftCode != ''"> and left_code = #{leftCode} </if>
+            <if test="leftName != null and leftName != ''"> and left_name = #{leftName} </if>
+            <if test="leftTel != null and leftTel != ''"> and left_tel = #{leftTel} </if>
+            <if test="leftIc != null and leftIc != ''"> and left_ic = #{leftIc} </if>
+            <if test="rightAppId != null and rightAppId != ''"> and right_app_id = #{rightAppId} </if>
+            <if test="rightAppCode != null and rightAppCode != ''"> and right_app_code = #{rightAppCode} </if>
+            <if test="rightAppName != null and rightAppName != ''"> and right_app_name = #{rightAppName} </if>
+            <if test="rightApiId != null and rightApiId != ''"> and right_api_id = #{rightApiId} </if>
+            <if test="rightId != null and rightId != ''"> and right_id = #{rightId} </if>
+            <if test="rightCode != null and rightCode != ''"> and right_code = #{rightCode} </if>
+            <if test="rightName != null and rightName != ''"> and right_name = #{rightName} </if>
+            <if test="rightTel != null and rightTel != ''"> and right_tel = #{rightTel} </if>
+            <if test="rightIc != null and rightIc != ''"> and right_ic = #{rightIc} </if>
+            <if test="sorts != null"> and sorts = #{sorts} </if>
+            <if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
+            <if test="create_time != null"> and create_time = #{create_time} </if>
+            <if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
+            <if test="modify_time != null"> and modify_time = #{modify_time} </if>
+            <if test="sts != null and sts != ''"> and sts = #{sts} </if>
+            <if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
+            <if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
+            <if test="leftOrg != null and leftOrg != ''"> and left_org = #{leftOrg} </if>
+            <if test="rightOrg != null and rightOrg != ''"> and right_org = #{rightOrg} </if>
+            and sts='Y'
+    </trim>
+    <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
+    <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
+</select>
+    
+<!-- 查询符合条件的数量 -->
+<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity">
+        select  count(1)   from
+    <choose>
+        <when test="type == '1'.toString()"> sys_personnel_control </when>
+        <when test="type == '2'.toString()"> sys_org_control </when>
+        <when test="type == '3'.toString()"> sys_stock_control </when>
+        <when test="type == '4'.toString()"> sys_merchant_control </when>
+        <when test="type == '5'.toString()"> sys_taxrate_control </when>
+        <when test="type == '6'.toString()"> sys_project_control </when>
+        <when test="type == '7'.toString()"> sys_bank_control </when>
+        <when test="type == '8'.toString()"> sys_bankaccount_control </when>
+        <when test="type == '9'.toString()"> sys_assets_control </when>
+    </choose>
+    <trim prefix="where" prefixOverrides="and"> 
+        <if test="id != null and id != ''"> and id = #{id} </if>
+            <if test="leftAppId != null and leftAppId != ''"> and left_app_id = #{leftAppId} </if>
+            <if test="leftAppCode != null and leftAppCode != ''"> and left_app_code = #{leftAppCode} </if>
+            <if test="leftAppName != null and leftAppName != ''"> and left_app_name = #{leftAppName} </if>
+            <if test="leftApiId != null and leftApiId != ''"> and left_api_id = #{leftApiId} </if>
+            <if test="leftId != null and leftId != ''"> and left_id = #{leftId} </if>
+            <if test="leftCode != null and leftCode != ''"> and left_code = #{leftCode} </if>
+            <if test="leftName != null and leftName != ''"> and left_name = #{leftName} </if>
+            <if test="leftTel != null and leftTel != ''"> and left_tel = #{leftTel} </if>
+            <if test="leftIc != null and leftIc != ''"> and left_ic = #{leftIc} </if>
+            <if test="rightAppId != null and rightAppId != ''"> and right_app_id = #{rightAppId} </if>
+            <if test="rightAppCode != null and rightAppCode != ''"> and right_app_code = #{rightAppCode} </if>
+            <if test="rightAppName != null and rightAppName != ''"> and right_app_name = #{rightAppName} </if>
+            <if test="rightApiId != null and rightApiId != ''"> and right_api_id = #{rightApiId} </if>
+            <if test="rightId != null and rightId != ''"> and right_id = #{rightId} </if>
+            <if test="rightCode != null and rightCode != ''"> and right_code = #{rightCode} </if>
+            <if test="rightName != null and rightName != ''"> and right_name = #{rightName} </if>
+            <if test="rightTel != null and rightTel != ''"> and right_tel = #{rightTel} </if>
+            <if test="rightIc != null and rightIc != ''"> and right_ic = #{rightIc} </if>
+            <if test="sorts != null"> and sorts = #{sorts} </if>
+            <if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
+            <if test="create_time != null"> and create_time = #{create_time} </if>
+            <if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
+            <if test="modify_time != null"> and modify_time = #{modify_time} </if>
+            <if test="sts != null and sts != ''"> and sts = #{sts} </if>
+            <if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
+            <if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
+            <if test="leftOrg != null and leftOrg != ''"> and left_org = #{leftOrg} </if>
+            <if test="rightOrg != null and rightOrg != ''"> and right_org = #{rightOrg} </if>
+            and sts='Y'
+    </trim>
+    <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
+    <if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
+    </select>
+
+    <!-- 分页查询列表 采用like格式 -->
+<select id="entity_list_like" resultMap="get-SysArchivesContrastEntity-result" parameterType = "com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity">
+    select
+    <choose>
+        <when test="type == '1'.toString()">
+            <include refid="SysArchivesContrastEntity_Base_Column_List_personnel" />
+        </when>
+        <otherwise>
+            <include refid="SysArchivesContrastEntity_Base_Column_List" />
+        </otherwise>
+    </choose>
+    from
+    <choose>
+        <when test="type == '1'.toString()"> sys_personnel_control </when>
+        <when test="type == '2'.toString()"> sys_org_control </when>
+        <when test="type == '3'.toString()"> sys_stock_control </when>
+        <when test="type == '4'.toString()"> sys_merchant_control </when>
+        <when test="type == '5'.toString()"> sys_taxrate_control </when>
+        <when test="type == '6'.toString()"> sys_project_control </when>
+        <when test="type == '7'.toString()"> sys_bank_control </when>
+        <when test="type == '8'.toString()"> sys_bankaccount_control </when>
+        <when test="type == '9'.toString()"> sys_assets_control </when>
+    </choose>
+    <trim prefix="where" prefixOverrides="and"> 
+        <if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
+            <if test="leftAppId != null and leftAppId != ''"> and left_app_id like concat('%',#{leftAppId},'%') </if>
+            <if test="leftAppCode != null and leftAppCode != ''"> and left_app_code like concat('%',#{leftAppCode},'%') </if>
+            <if test="leftAppName != null and leftAppName != ''"> and left_app_name like concat('%',#{leftAppName},'%') </if>
+            <if test="leftApiId != null and leftApiId != ''"> and left_api_id like concat('%',#{leftApiId},'%') </if>
+            <if test="leftId != null and leftId != ''"> and left_id like concat('%',#{leftId},'%') </if>
+            <if test="leftCode != null and leftCode != ''"> and left_code like concat('%',#{leftCode},'%') </if>
+            <if test="leftName != null and leftName != ''"> and left_name like concat('%',#{leftName},'%') </if>
+            <if test="leftTel != null and leftTel != ''"> and left_tel like concat('%',#{leftTel},'%') </if>
+            <if test="leftIc != null and leftIc != ''"> and left_ic like concat('%',#{leftIc},'%') </if>
+            <if test="rightAppId != null and rightAppId != ''"> and right_app_id like concat('%',#{rightAppId},'%') </if>
+            <if test="rightAppCode != null and rightAppCode != ''"> and right_app_code like concat('%',#{rightAppCode},'%') </if>
+            <if test="rightAppName != null and rightAppName != ''"> and right_app_name like concat('%',#{rightAppName},'%') </if>
+            <if test="rightApiId != null and rightApiId != ''"> and right_api_id like concat('%',#{rightApiId},'%') </if>
+            <if test="rightId != null and rightId != ''"> and right_id like concat('%',#{rightId},'%') </if>
+            <if test="rightCode != null and rightCode != ''"> and right_code like concat('%',#{rightCode},'%') </if>
+            <if test="rightName != null and rightName != ''"> and right_name like concat('%',#{rightName},'%') </if>
+            <if test="rightTel != null and rightTel != ''"> and right_tel like concat('%',#{rightTel},'%') </if>
+            <if test="rightIc != null and rightIc != ''"> and right_ic like concat('%',#{rightIc},'%') </if>
+            <if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
+            <if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
+            <if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
+            <if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
+            <if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
+            <if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
+            <if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
+            <if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
+            <if test="leftOrg != null and leftOrg != ''"> and left_org like concat('%',#{leftOrg},'%') </if>
+            <if test="rightOrg != null and rightOrg != ''"> and right_org like concat('%',#{rightOrg},'%') </if>
+            and sts='Y'
+    </trim>
+    <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
+    <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
+</select>
+
+<!-- 查询列表 字段采用or格式 -->
+<select id="SysArchivesContrastentity_list_or" resultMap="get-SysArchivesContrastEntity-result" parameterType = "com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity">
+    select
+    <choose>
+        <when test="type == '1'.toString()">
+            <include refid="SysArchivesContrastEntity_Base_Column_List_personnel" />
+        </when>
+        <otherwise>
+            <include refid="SysArchivesContrastEntity_Base_Column_List" />
+        </otherwise>
+    </choose>
+    from
+    <choose>
+        <when test="type == '1'.toString()"> sys_personnel_control </when>
+        <when test="type == '2'.toString()"> sys_org_control </when>
+        <when test="type == '3'.toString()"> sys_stock_control </when>
+        <when test="type == '4'.toString()"> sys_merchant_control </when>
+        <when test="type == '5'.toString()"> sys_taxrate_control </when>
+        <when test="type == '6'.toString()"> sys_project_control </when>
+        <when test="type == '7'.toString()"> sys_bank_control </when>
+        <when test="type == '8'.toString()"> sys_bankaccount_control </when>
+        <when test="type == '9'.toString()"> sys_assets_control </when>
+    </choose>
+    <trim prefix="where" prefixOverrides="and"> 
+         <if test="id != null and id != ''"> or id = #{id} </if>
+             <if test="leftAppId != null and leftAppId != ''"> or left_app_id = #{leftAppId} </if>
+             <if test="leftAppCode != null and leftAppCode != ''"> or left_app_code = #{leftAppCode} </if>
+             <if test="leftAppName != null and leftAppName != ''"> or left_app_name = #{leftAppName} </if>
+             <if test="leftApiId != null and leftApiId != ''"> or left_api_id = #{leftApiId} </if>
+             <if test="leftId != null and leftId != ''"> or left_id = #{leftId} </if>
+             <if test="leftCode != null and leftCode != ''"> or left_code = #{leftCode} </if>
+             <if test="leftName != null and leftName != ''"> or left_name = #{leftName} </if>
+             <if test="leftTel != null and leftTel != ''"> or left_tel = #{leftTel} </if>
+             <if test="leftIc != null and leftIc != ''"> or left_ic = #{leftIc} </if>
+             <if test="rightAppId != null and rightAppId != ''"> or right_app_id = #{rightAppId} </if>
+             <if test="rightAppCode != null and rightAppCode != ''"> or right_app_code = #{rightAppCode} </if>
+             <if test="rightAppName != null and rightAppName != ''"> or right_app_name = #{rightAppName} </if>
+             <if test="rightApiId != null and rightApiId != ''"> or right_api_id = #{rightApiId} </if>
+             <if test="rightId != null and rightId != ''"> or right_id = #{rightId} </if>
+             <if test="rightCode != null and rightCode != ''"> or right_code = #{rightCode} </if>
+             <if test="rightName != null and rightName != ''"> or right_name = #{rightName} </if>
+             <if test="rightTel != null and rightTel != ''"> or right_tel = #{rightTel} </if>
+             <if test="rightIc != null and rightIc != ''"> or right_ic = #{rightIc} </if>
+             <if test="sorts != null"> or sorts = #{sorts} </if>
+             <if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
+              <if test="create_time != null"> or create_time = #{create_time} </if>
+              <if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
+              <if test="modify_time != null"> or modify_time = #{modify_time} </if>
+              <if test="sts != null and sts != ''"> or sts = #{sts} </if>
+             <if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
+              <if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
+             <if test="leftOrg != null and leftOrg != ''"> or left_org = #{leftOrg} </if>
+             <if test="rightOrg != null and rightOrg != ''"> or right_org = #{rightOrg} </if>
+            and sts='Y'
+    </trim>
+    <if test=" sort == null or sort == ''.toString()  "> order by sorts asc</if>
+    <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
+</select>
+
+<!--新增所有列-->
+<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity"  >
+    insert into <choose>
+    <when test="type == '1'.toString()"> sys_personnel_control </when>
+    <when test="type == '2'.toString()"> sys_org_control </when>
+    <when test="type == '3'.toString()"> sys_stock_control </when>
+    <when test="type == '4'.toString()"> sys_merchant_control </when>
+    <when test="type == '5'.toString()"> sys_taxrate_control </when>
+    <when test="type == '6'.toString()"> sys_project_control </when>
+    <when test="type == '7'.toString()"> sys_bank_control </when>
+    <when test="type == '8'.toString()"> sys_bankaccount_control </when>
+    <when test="type == '9'.toString()"> sys_assets_control </when>
+</choose>
+(
+  <trim suffix="" suffixOverrides=",">
+       <if test="id != null and id != ''"> id , </if>
+            <if test="leftAppId != null and leftAppId != ''"> left_app_id , </if>
+            <if test="leftAppCode != null and leftAppCode != ''"> left_app_code , </if>
+            <if test="leftAppName != null and leftAppName != ''"> left_app_name , </if>
+            <if test="leftApiId != null and leftApiId != ''"> left_api_id , </if>
+            <if test="leftId != null and leftId != ''"> left_id , </if>
+            <if test="leftCode != null and leftCode != ''"> left_code , </if>
+            <if test="leftName != null and leftName != ''"> left_name , </if>
+            <if test="leftTel != null and leftTel != ''"> left_tel , </if>
+            <if test="leftIc != null and leftIc != ''"> left_ic , </if>
+            <if test="rightAppId != null and rightAppId != ''"> right_app_id , </if>
+            <if test="rightAppCode != null and rightAppCode != ''"> right_app_code , </if>
+            <if test="rightAppName != null and rightAppName != ''"> right_app_name , </if>
+            <if test="rightApiId != null and rightApiId != ''"> right_api_id , </if>
+            <if test="rightId != null and rightId != ''"> right_id , </if>
+            <if test="rightCode != null and rightCode != ''"> right_code , </if>
+            <if test="rightName != null and rightName != ''"> right_name , </if>
+            <if test="rightTel != null and rightTel != ''"> right_tel , </if>
+            <if test="rightIc != null and rightIc != ''"> right_ic , </if>
+            <if test="sorts != null"> sorts , </if>
+            <if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
+            <if test="create_time != null"> create_time , </if>
+            <if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
+            <if test="modify_time != null"> modify_time , </if>
+            <if test="sts != null and sts != ''"> sts , </if>
+            <if test="org_id != null and org_id != ''"> org_id , </if>
+            <if test="companyId != null and companyId != ''"> company_id , </if>
+            <if test="leftOrg != null and leftOrg != ''"> left_org , </if>
+            <if test="rightOrg != null and rightOrg != ''"> right_org , </if>
+    <if test="sts == null ">sts,</if>
+  </trim>
+  )values(
+ <trim suffix="" suffixOverrides=",">
+       <if test="id != null and id != ''"> #{id} ,</if>
+            <if test="leftAppId != null and leftAppId != ''"> #{leftAppId} ,</if>
+            <if test="leftAppCode != null and leftAppCode != ''"> #{leftAppCode} ,</if>
+            <if test="leftAppName != null and leftAppName != ''"> #{leftAppName} ,</if>
+            <if test="leftApiId != null and leftApiId != ''"> #{leftApiId} ,</if>
+            <if test="leftId != null and leftId != ''"> #{leftId} ,</if>
+            <if test="leftCode != null and leftCode != ''"> #{leftCode} ,</if>
+            <if test="leftName != null and leftName != ''"> #{leftName} ,</if>
+            <if test="leftTel != null and leftTel != ''"> #{leftTel} ,</if>
+            <if test="leftIc != null and leftIc != ''"> #{leftIc} ,</if>
+            <if test="rightAppId != null and rightAppId != ''"> #{rightAppId} ,</if>
+            <if test="rightAppCode != null and rightAppCode != ''"> #{rightAppCode} ,</if>
+            <if test="rightAppName != null and rightAppName != ''"> #{rightAppName} ,</if>
+            <if test="rightApiId != null and rightApiId != ''"> #{rightApiId} ,</if>
+            <if test="rightId != null and rightId != ''"> #{rightId} ,</if>
+            <if test="rightCode != null and rightCode != ''"> #{rightCode} ,</if>
+            <if test="rightName != null and rightName != ''"> #{rightName} ,</if>
+            <if test="rightTel != null and rightTel != ''"> #{rightTel} ,</if>
+            <if test="rightIc != null and rightIc != ''"> #{rightIc} ,</if>
+            <if test="sorts != null"> #{sorts} ,</if>
+            <if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
+            <if test="create_time != null"> #{create_time} ,</if>
+            <if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
+            <if test="modify_time != null"> #{modify_time} ,</if>
+            <if test="sts != null and sts != ''"> #{sts} ,</if>
+            <if test="org_id != null and org_id != ''"> #{org_id} ,</if>
+            <if test="companyId != null and companyId != ''"> #{companyId} ,</if>
+            <if test="leftOrg != null and leftOrg != ''"> #{leftOrg} ,</if>
+            <if test="rightOrg != null and rightOrg != ''"> #{rightOrg} ,</if>
+    <if test="sts == null ">'Y',</if>
+  </trim>
+  )  
+</insert>
+<!-- 批量新增 -->
+<insert id="entityInsertBatch"  >
+  insert into <choose>
+    <when test="type == '1'.toString()"> sys_personnel_control </when>
+    <when test="type == '2'.toString()"> sys_org_control </when>
+    <when test="type == '3'.toString()"> sys_stock_control </when>
+    <when test="type == '4'.toString()"> sys_merchant_control </when>
+    <when test="type == '5'.toString()"> sys_taxrate_control </when>
+    <when test="type == '6'.toString()"> sys_project_control </when>
+    <when test="type == '7'.toString()"> sys_bank_control </when>
+    <when test="type == '8'.toString()"> sys_bankaccount_control </when>
+    <when test="type == '9'.toString()"> sys_assets_control </when>
+</choose> (left_app_id, left_app_code, left_app_name, left_api_id, left_id, left_code, left_name, left_tel, left_ic, right_app_id, right_app_code, right_app_name, right_api_id, right_id, right_code, right_name, right_tel, right_ic, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, left_org, right_org,  sts)
+    values
+    <foreach collection="entities" item="entity" separator=",">
+    (#{entity.leftAppId},#{entity.leftAppCode},#{entity.leftAppName},#{entity.leftApiId},#{entity.leftId},#{entity.leftCode},#{entity.leftName},#{entity.leftTel},#{entity.leftIc},#{entity.rightAppId},#{entity.rightAppCode},#{entity.rightAppName},#{entity.rightApiId},#{entity.rightId},#{entity.rightCode},#{entity.rightName},#{entity.rightTel},#{entity.rightIc},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.leftOrg},#{entity.rightOrg}, 'Y')
+    </foreach>
+</insert>
+<!-- 批量新增或者修改-->
+<insert id="entityInsertOrUpdateBatch"  >
+    insert into <choose>
+    <when test="type == '1'.toString()"> sys_personnel_control </when>
+    <when test="type == '2'.toString()"> sys_org_control </when>
+    <when test="type == '3'.toString()"> sys_stock_control </when>
+    <when test="type == '4'.toString()"> sys_merchant_control </when>
+    <when test="type == '5'.toString()"> sys_taxrate_control </when>
+    <when test="type == '6'.toString()"> sys_project_control </when>
+    <when test="type == '7'.toString()"> sys_bank_control </when>
+    <when test="type == '8'.toString()"> sys_bankaccount_control </when>
+    <when test="type == '9'.toString()"> sys_assets_control </when>
+</choose> (left_app_id, left_app_code, left_app_name, left_api_id, left_id, left_code, left_name, left_tel, left_ic, right_app_id, right_app_code, right_app_name, right_api_id, right_id, right_code, right_name, right_tel, right_ic, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, left_org, right_org)
+    values
+    <foreach collection="entities" item="entity" separator=",">
+    (#{entity.leftAppId},#{entity.leftAppCode},#{entity.leftAppName},#{entity.leftApiId},#{entity.leftId},#{entity.leftCode},#{entity.leftName},#{entity.leftTel},#{entity.leftIc},#{entity.rightAppId},#{entity.rightAppCode},#{entity.rightAppName},#{entity.rightApiId},#{entity.rightId},#{entity.rightCode},#{entity.rightName},#{entity.rightTel},#{entity.rightIc},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.leftOrg},#{entity.rightOrg})
+    </foreach>
+    on duplicate key update
+    left_app_id = values(left_app_id),
+    left_app_code = values(left_app_code),
+    left_app_name = values(left_app_name),
+    left_api_id = values(left_api_id),
+    left_id = values(left_id),
+    left_code = values(left_code),
+    left_name = values(left_name),
+    left_tel = values(left_tel),
+    left_ic = values(left_ic),
+    right_app_id = values(right_app_id),
+    right_app_code = values(right_app_code),
+    right_app_name = values(right_app_name),
+    right_api_id = values(right_api_id),
+    right_id = values(right_id),
+    right_code = values(right_code),
+    right_name = values(right_name),
+    right_tel = values(right_tel),
+    right_ic = values(right_ic),
+    create_user_id = values(create_user_id),
+    create_time = values(create_time),
+    modify_user_id = values(modify_user_id),
+    modify_time = values(modify_time),
+    sts = values(sts),
+    org_id = values(org_id),
+    company_id = values(company_id),
+    left_org = values(left_org),
+    right_org = values(right_org)</insert>
+<!--通过主键修改方法-->
+<update id="entity_update" parameterType = "com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity" >
+update <choose>
+    <when test="type == '1'.toString()"> sys_personnel_control </when>
+    <when test="type == '2'.toString()"> sys_org_control </when>
+    <when test="type == '3'.toString()"> sys_stock_control </when>
+    <when test="type == '4'.toString()"> sys_merchant_control </when>
+    <when test="type == '5'.toString()"> sys_taxrate_control </when>
+    <when test="type == '6'.toString()"> sys_project_control </when>
+    <when test="type == '7'.toString()"> sys_bank_control </when>
+    <when test="type == '8'.toString()"> sys_bankaccount_control </when>
+    <when test="type == '9'.toString()"> sys_assets_control </when>
+</choose>  set
+<trim suffix="" suffixOverrides=",">
+  <if test="leftAppId != null and leftAppId != ''"> left_app_id = #{leftAppId},</if>
+  <if test="leftAppCode != null and leftAppCode != ''"> left_app_code = #{leftAppCode},</if>
+  <if test="leftAppName != null and leftAppName != ''"> left_app_name = #{leftAppName},</if>
+  <if test="leftApiId != null and leftApiId != ''"> left_api_id = #{leftApiId},</if>
+  <if test="leftId != null and leftId != ''"> left_id = #{leftId},</if>
+  <if test="leftCode != null and leftCode != ''"> left_code = #{leftCode},</if>
+  <if test="leftName != null and leftName != ''"> left_name = #{leftName},</if>
+  <if test="leftTel != null and leftTel != ''"> left_tel = #{leftTel},</if>
+  <if test="leftIc != null and leftIc != ''"> left_ic = #{leftIc},</if>
+  <if test="rightAppId != null and rightAppId != ''"> right_app_id = #{rightAppId},</if>
+  <if test="rightAppCode != null and rightAppCode != ''"> right_app_code = #{rightAppCode},</if>
+  <if test="rightAppName != null and rightAppName != ''"> right_app_name = #{rightAppName},</if>
+  <if test="rightApiId != null and rightApiId != ''"> right_api_id = #{rightApiId},</if>
+  <if test="rightId != null and rightId != ''"> right_id = #{rightId},</if>
+  <if test="rightCode != null and rightCode != ''"> right_code = #{rightCode},</if>
+  <if test="rightName != null and rightName != ''"> right_name = #{rightName},</if>
+  <if test="rightTel != null and rightTel != ''"> right_tel = #{rightTel},</if>
+  <if test="rightIc != null and rightIc != ''"> right_ic = #{rightIc},</if>
+  <if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
+    <if test="create_time != null"> create_time = #{create_time},</if>
+    <if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
+    <if test="modify_time != null"> modify_time = #{modify_time},</if>
+    <if test="sts != null and sts != ''"> sts = #{sts},</if>
+  <if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
+    <if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
+  <if test="leftOrg != null and leftOrg != ''"> left_org = #{leftOrg},</if>
+  <if test="rightOrg != null and rightOrg != ''"> right_org = #{rightOrg},</if>
+</trim>
+where id = #{id}
+</update>
+<!-- 逻辑删除 -->
+<update id="entity_logicDelete" parameterType = "com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity" >
+update <choose>
+    <when test="type == '1'.toString()"> sys_personnel_control </when>
+    <when test="type == '2'.toString()"> sys_org_control </when>
+    <when test="type == '3'.toString()"> sys_stock_control </when>
+    <when test="type == '4'.toString()"> sys_merchant_control </when>
+    <when test="type == '5'.toString()"> sys_taxrate_control </when>
+    <when test="type == '6'.toString()"> sys_project_control </when>
+    <when test="type == '7'.toString()"> sys_bank_control </when>
+    <when test="type == '8'.toString()"> sys_bankaccount_control </when>
+    <when test="type == '9'.toString()"> sys_assets_control </when>
+</choose>  set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
+where id = #{id}
+</update>
+<!-- 多条件逻辑删除 -->
+<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity" >
+update <choose>
+    <when test="type == '1'.toString()"> sys_personnel_control </when>
+    <when test="type == '2'.toString()"> sys_org_control </when>
+    <when test="type == '3'.toString()"> sys_stock_control </when>
+    <when test="type == '4'.toString()"> sys_merchant_control </when>
+    <when test="type == '5'.toString()"> sys_taxrate_control </when>
+    <when test="type == '6'.toString()"> sys_project_control </when>
+    <when test="type == '7'.toString()"> sys_bank_control </when>
+    <when test="type == '8'.toString()"> sys_bankaccount_control </when>
+    <when test="type == '9'.toString()"> sys_assets_control </when>
+</choose>  set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
+ <trim prefix="where" prefixOverrides="and"> 
+        <if test="id != null and id != ''"> and id = #{id} </if>
+            <if test="leftAppId != null and leftAppId != ''"> and left_app_id = #{leftAppId} </if>
+            <if test="leftAppCode != null and leftAppCode != ''"> and left_app_code = #{leftAppCode} </if>
+            <if test="leftAppName != null and leftAppName != ''"> and left_app_name = #{leftAppName} </if>
+            <if test="leftApiId != null and leftApiId != ''"> and left_api_id = #{leftApiId} </if>
+            <if test="leftId != null and leftId != ''"> and left_id = #{leftId} </if>
+            <if test="leftCode != null and leftCode != ''"> and left_code = #{leftCode} </if>
+            <if test="leftName != null and leftName != ''"> and left_name = #{leftName} </if>
+            <if test="leftTel != null and leftTel != ''"> and left_tel = #{leftTel} </if>
+            <if test="leftIc != null and leftIc != ''"> and left_ic = #{leftIc} </if>
+            <if test="rightAppId != null and rightAppId != ''"> and right_app_id = #{rightAppId} </if>
+            <if test="rightAppCode != null and rightAppCode != ''"> and right_app_code = #{rightAppCode} </if>
+            <if test="rightAppName != null and rightAppName != ''"> and right_app_name = #{rightAppName} </if>
+            <if test="rightApiId != null and rightApiId != ''"> and right_api_id = #{rightApiId} </if>
+            <if test="rightId != null and rightId != ''"> and right_id = #{rightId} </if>
+            <if test="rightCode != null and rightCode != ''"> and right_code = #{rightCode} </if>
+            <if test="rightName != null and rightName != ''"> and right_name = #{rightName} </if>
+            <if test="rightTel != null and rightTel != ''"> and right_tel = #{rightTel} </if>
+            <if test="rightIc != null and rightIc != ''"> and right_ic = #{rightIc} </if>
+            <if test="sorts != null"> and sorts = #{sorts} </if>
+                                                                <if test="sts != null and sts != ''"> and sts = #{sts} </if>
+                         <if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
+            <if test="leftOrg != null and leftOrg != ''"> and left_org = #{leftOrg} </if>
+            <if test="rightOrg != null and rightOrg != ''"> and right_org = #{rightOrg} </if>
+            and sts='Y'
+    </trim>
+</update>
+<!--通过主键删除-->
+<delete id="entity_delete">
+    delete from <choose>
+    <when test="type == '1'.toString()"> sys_personnel_control </when>
+    <when test="type == '2'.toString()"> sys_org_control </when>
+    <when test="type == '3'.toString()"> sys_stock_control </when>
+    <when test="type == '4'.toString()"> sys_merchant_control </when>
+    <when test="type == '5'.toString()"> sys_taxrate_control </when>
+    <when test="type == '6'.toString()"> sys_project_control </when>
+    <when test="type == '7'.toString()"> sys_bank_control </when>
+    <when test="type == '8'.toString()"> sys_bankaccount_control </when>
+    <when test="type == '9'.toString()"> sys_assets_control </when>
+</choose> where id = #{id}
+</delete>
+
+</mapper>
+
diff --git a/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/service/ISysArchivesContrastService.java b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/service/ISysArchivesContrastService.java
new file mode 100644
index 00000000..2838b954
--- /dev/null
+++ b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/service/ISysArchivesContrastService.java
@@ -0,0 +1,70 @@
+package com.hzya.frame.sysnew.archivesContrast.service;
+
+import com.alibaba.fastjson.JSONObject;
+import com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity;
+import com.hzya.frame.basedao.service.IBaseService;
+import com.hzya.frame.web.entity.JsonResultEntity;
+
+/**
+ * 档案对照服务接口
+ *
+ * @author makejava
+ * @since 2024-05-27 16:21:36
+ */
+public interface ISysArchivesContrastService extends IBaseService<SysArchivesContrastEntity, String>{
+
+
+    /**
+     * @Author lvleigang
+     * @Description  查询档案列表分页
+     * @Date 4:25 下午 2024/5/27
+     * @param jsonObject
+     * @return com.hzya.frame.web.entity.JsonResultEntity
+     **/
+    JsonResultEntity queryEntityPage(JSONObject jsonObject);
+
+    /**
+     * @Author lvleigang
+     * @Description  查询档案列表
+     * @Date 4:25 下午 2024/5/27
+     * @param jsonObject
+     * @return com.hzya.frame.web.entity.JsonResultEntity
+     **/
+    JsonResultEntity queryEntity(JSONObject jsonObject);
+
+    /**
+     * @Author lvleigang
+     * @Description  保存档案
+     * @Date 4:25 下午 2024/5/27
+     * @param jsonObject
+     * @return com.hzya.frame.web.entity.JsonResultEntity
+     **/
+    JsonResultEntity saveEntity(JSONObject jsonObject);
+
+    /**
+     * @Author lvleigang
+     * @Description  获取档案
+     * @Date 4:25 下午 2024/5/27
+     * @param jsonObject
+     * @return com.hzya.frame.web.entity.JsonResultEntity
+     **/
+    JsonResultEntity getEntity(JSONObject jsonObject);
+
+    /**
+     * @Author lvleigang
+     * @Description  修改档案
+     * @Date 4:25 下午 2024/5/27
+     * @param jsonObject
+     * @return com.hzya.frame.web.entity.JsonResultEntity
+     **/
+    JsonResultEntity updateEntity(JSONObject jsonObject);
+
+    /**
+     * @Author lvleigang
+     * @Description  删除档案
+     * @Date 4:25 下午 2024/5/27
+     * @param jsonObject
+     * @return com.hzya.frame.web.entity.JsonResultEntity
+     **/
+    JsonResultEntity deleteEntity(JSONObject jsonObject);
+}
diff --git a/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/service/impl/SysArchivesContrastServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/service/impl/SysArchivesContrastServiceImpl.java
new file mode 100644
index 00000000..94687263
--- /dev/null
+++ b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/service/impl/SysArchivesContrastServiceImpl.java
@@ -0,0 +1,189 @@
+package com.hzya.frame.sysnew.archivesContrast.service.impl;
+
+import com.alibaba.fastjson.JSONObject;
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+import com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity;
+import com.hzya.frame.sysnew.archivesContrast.dao.ISysArchivesContrastDao;
+import com.hzya.frame.sysnew.archivesContrast.service.ISysArchivesContrastService;
+import com.hzya.frame.sysnew.user.entity.SysUserEntity;
+import com.hzya.frame.sysnew.userCompany.entity.SysUserCompanyEntity;
+import com.hzya.frame.sysnew.userRoles.entity.SysUserRolesEntity;
+import com.hzya.frame.util.AESUtil;
+import com.hzya.frame.web.entity.BaseResult;
+import com.hzya.frame.web.entity.JsonResultEntity;
+import org.springframework.stereotype.Service;
+import org.springframework.beans.factory.annotation.Autowired;
+import javax.annotation.Resource;
+import com.hzya.frame.basedao.service.impl.BaseService;
+
+import java.util.List;
+
+/**
+ * 档案对照表服务实现类
+ *
+ * @author makejava
+ * @since 2024-05-27 16:21:36
+ */
+@Service(value = "sysArchivesContrastService")
+public class SysArchivesContrastServiceImpl extends BaseService<SysArchivesContrastEntity, String> implements ISysArchivesContrastService {
+     
+    private ISysArchivesContrastDao sysArchivesContrastDao;
+    
+    @Autowired
+	public void setSysArchivesContrastDao(ISysArchivesContrastDao dao) {
+		this.sysArchivesContrastDao = dao;
+		this.dao = dao;
+	}
+
+	/**
+	 * @param jsonObject
+	 * @return com.hzya.frame.web.entity.JsonResultEntity
+	 * @Author lvleigang
+	 * @Description 查询档案列表分页
+	 * @Date 4:25 下午 2024/5/27
+	 **/
+	@Override
+	public JsonResultEntity queryEntityPage(JSONObject jsonObject) {
+		SysArchivesContrastEntity entity = getData("jsonStr", jsonObject, SysArchivesContrastEntity.class);
+		//判断分页
+		if (entity == null || entity.getPageNum() == null || entity.getPageSize() == null) {
+			return BaseResult.getFailureMessageEntity("分页查询参数不存在");
+		}
+		if(entity.getType() == null || "".equals(entity.getType()) ){
+			return BaseResult.getFailureMessageEntity("系统错误");
+		}
+		PageHelper.startPage(entity.getPageNum(), entity.getPageSize());
+		List<SysArchivesContrastEntity> list = sysArchivesContrastDao.queryByLike(entity);
+		PageInfo pageInfo = new PageInfo(list);
+		return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo);
+	}
+
+	/**
+	 * @param jsonObject
+	 * @return com.hzya.frame.web.entity.JsonResultEntity
+	 * @Author lvleigang
+	 * @Description 查询档案列表
+	 * @Date 4:25 下午 2024/5/27
+	 **/
+	@Override
+	public JsonResultEntity queryEntity(JSONObject jsonObject) {
+		SysArchivesContrastEntity entity = getData("jsonStr", jsonObject, SysArchivesContrastEntity.class);
+		if (entity == null || entity.getType() == null || "".equals(entity.getType())) {
+			return BaseResult.getFailureMessageEntity("系统错误");
+		}
+		List<SysArchivesContrastEntity> list = sysArchivesContrastDao.queryByLike(entity);
+		return BaseResult.getSuccessMessageEntity("查询数据成功", list);
+	}
+
+	/**
+	 * @param jsonObject
+	 * @return com.hzya.frame.web.entity.JsonResultEntity
+	 * @Author lvleigang
+	 * @Description 保存档案
+	 * @Date 4:25 下午 2024/5/27
+	 **/
+	@Override
+	public JsonResultEntity saveEntity(JSONObject jsonObject) {
+		SysArchivesContrastEntity entity = getData("jsonStr", jsonObject, SysArchivesContrastEntity.class);
+		if (entity == null) {
+			return BaseResult.getFailureMessageEntity("参数不允许为空");
+		}
+		if (entity.getType() == null || "".equals(entity.getType())) {
+			return BaseResult.getFailureMessageEntity("系统错误");
+		}
+		if (entity.getLeftCode() == null || "".equals(entity.getLeftCode())) {
+			return BaseResult.getFailureMessageEntity("请先输入左编码");
+		}
+		if (entity.getRightCode() == null || "".equals(entity.getRightCode())) {
+			return BaseResult.getFailureMessageEntity("请先输入右编码");
+		}
+		entity.setCreate();
+		entity.setSts("Y");
+		//保存
+		sysArchivesContrastDao.save(entity);
+		return BaseResult.getSuccessMessageEntity("保存档案成功", entity);
+	}
+
+	/**
+	 * @param jsonObject
+	 * @return com.hzya.frame.web.entity.JsonResultEntity
+	 * @Author lvleigang
+	 * @Description 获取档案
+	 * @Date 4:25 下午 2024/5/27
+	 **/
+	@Override
+	public JsonResultEntity getEntity(JSONObject jsonObject) {
+		SysArchivesContrastEntity entity = getData("jsonStr", jsonObject, SysArchivesContrastEntity.class);
+		if (entity == null) {
+			return BaseResult.getFailureMessageEntity("参数不允许为空");
+		}
+		if (entity.getType() == null || "".equals(entity.getType())) {
+			return BaseResult.getFailureMessageEntity("系统错误");
+		}
+		if (entity.getId() == null || "".equals(entity.getId())) {
+			return BaseResult.getFailureMessageEntity("系统错误");
+		}
+		entity = sysArchivesContrastDao.getEntity(entity);
+		if (entity == null) {
+			return BaseResult.getFailureMessageEntity("获取档案失败");
+		}
+		return BaseResult.getSuccessMessageEntity("获取档案成功", entity);
+	}
+
+	/**
+	 * @param jsonObject
+	 * @return com.hzya.frame.web.entity.JsonResultEntity
+	 * @Author lvleigang
+	 * @Description 修改档案
+	 * @Date 4:25 下午 2024/5/27
+	 **/
+	@Override
+	public JsonResultEntity updateEntity(JSONObject jsonObject) {
+		SysArchivesContrastEntity entity = getData("jsonStr", jsonObject, SysArchivesContrastEntity.class);
+		if (entity == null) {
+			return BaseResult.getFailureMessageEntity("参数不允许为空");
+		}
+		if (entity.getId() == null || "".equals(entity.getId())) {
+			return BaseResult.getFailureMessageEntity("系统错误");
+		}
+		if (entity.getType() == null || "".equals(entity.getType())) {
+			return BaseResult.getFailureMessageEntity("系统错误");
+		}
+		if (entity.getLeftCode() == null || "".equals(entity.getLeftCode())) {
+			return BaseResult.getFailureMessageEntity("请先输入左编码");
+		}
+		if (entity.getRightCode() == null || "".equals(entity.getRightCode())) {
+			return BaseResult.getFailureMessageEntity("请先输入右编码");
+		}
+		entity.setUpdate();
+		//保存
+		sysArchivesContrastDao.update(entity);
+		return BaseResult.getSuccessMessageEntity("修改档案成功", entity);
+	}
+
+	/**
+	 * @param jsonObject
+	 * @return com.hzya.frame.web.entity.JsonResultEntity
+	 * @Author lvleigang
+	 * @Description 删除档案
+	 * @Date 4:25 下午 2024/5/27
+	 **/
+	@Override
+	public JsonResultEntity deleteEntity(JSONObject jsonObject) {
+		SysArchivesContrastEntity entity = getData("jsonStr", jsonObject, SysArchivesContrastEntity.class);
+		if (entity == null) {
+			return BaseResult.getFailureMessageEntity("参数不允许为空");
+		}
+		if (entity.getId() == null || "".equals(entity.getId())) {
+			return BaseResult.getFailureMessageEntity("系统错误");
+		}
+		if (entity.getType() == null || "".equals(entity.getType())) {
+			return BaseResult.getFailureMessageEntity("系统错误");
+		}
+		entity.setUpdate();
+		//删除
+		sysArchivesContrastDao.logicRemove(entity);
+		return BaseResult.getSuccessMessageEntity(" 删除档案成功", entity);
+	}
+}
diff --git a/service/src/main/java/com/hzya/frame/web/quartz/QuartzJobFactory.java b/service/src/main/java/com/hzya/frame/web/quartz/QuartzJobFactory.java
index 5f5f6bcd..e9b38f40 100644
--- a/service/src/main/java/com/hzya/frame/web/quartz/QuartzJobFactory.java
+++ b/service/src/main/java/com/hzya/frame/web/quartz/QuartzJobFactory.java
@@ -63,10 +63,11 @@ public class QuartzJobFactory implements Job {
         if(integrationTaskLivingEntity.getOldStartTime() != null ){
             oldStartTime = integrationTaskLivingEntity.getOldStartTime();
         }
+
         //判断任务是否启用,存在不启用情况,需要手动把任务关闭
         if(integrationTaskEntity.getTaskStatus() != null && !"1".equals(integrationTaskEntity.getTaskStatus())){
             saveLivingAndDetail(integrationTaskLivingEntity,null,
-                    "4","4","当前任务已停止,不执行任务",integrationTaskLivingEntity.getOldStartTime(),integrationTaskLivingEntity.getStartTime(),integrationTaskLivingEntity.getEndTime());
+                    "4","4","当前任务已停止,不执行任务",startTime,startTime,new Date());
             JSONObject stopJson = new JSONObject();
             stopJson.put("jobName",integrationTaskEntity.getTaskName());
             stopJson.put("jobCode",integrationTaskEntity.getTaskCode());
@@ -99,14 +100,14 @@ public class QuartzJobFactory implements Job {
         SysApplicationPluginEntity sysApplicationPluginEntity = iIntegrationTaskCacheableService.getSysApplicationPluginEntity(integrationTaskEntity.getTaskPlugin());
         if(sysApplicationPluginEntity == null || sysApplicationPluginEntity.getPluginCode() == null || !"1".equals(sysApplicationPluginEntity.getPluginStatus())){
             saveLivingAndDetail(integrationTaskLivingEntity, integrationTaskLogEntity,
-                    "2","3","插件未启用,不执行任务",integrationTaskLivingEntity.getOldStartTime(),startTime,new Date());
+                    "2","3","插件未启用,不执行任务",startTime,startTime,new Date());
             return;
         }
         //查找插件
         PluginBaseEntity pluginBaseEntity = PluginUtils.getPluginsById(sysApplicationPluginEntity.getPluginCode());
         if(pluginBaseEntity == null ){
             saveLivingAndDetail(integrationTaskLivingEntity, integrationTaskLogEntity,
-                    "2","3","插件未找到,不执行任务",integrationTaskLivingEntity.getOldStartTime(),startTime,new Date());
+                    "2","3","插件未找到,不执行任务",startTime,startTime,new Date());
             return;
         }
         //调用插件
diff --git a/webapp/src/main/java/com/hzya/frame/webapp/web/aop/AopDynamicRoutingDataSourceInit.java b/webapp/src/main/java/com/hzya/frame/webapp/web/aop/AopDynamicRoutingDataSourceInit.java
index 17a238dd..390c1f15 100644
--- a/webapp/src/main/java/com/hzya/frame/webapp/web/aop/AopDynamicRoutingDataSourceInit.java
+++ b/webapp/src/main/java/com/hzya/frame/webapp/web/aop/AopDynamicRoutingDataSourceInit.java
@@ -67,6 +67,7 @@ public class AopDynamicRoutingDataSourceInit {
             SysDataSourceEntity entity = new SysDataSourceEntity();
             entity.setSts("Y");
             entity.setUseState(1);
+            entity.setDataState("1");
             entity.setSourceCode(dsValue);
             List<SysDataSourceVo> sysDataSourceEntities = sysDataSourceDao.queryDSBase(entity);
             //logger.info("beforeDynamicRoutingDataSourceInitMethod:根据dsValue获取数据源信息查询结果 sysDataSourceEntities.size:" + sysDataSourceEntities.size());