From d9522d959e8e31ca48e30aa23d4fe8c7d1992b6b Mon Sep 17 00:00:00 2001
From: fujunling <2984387807@qq.com>
Date: 星期一, 19 六月 2023 15:41:38 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs

---
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/DockingTaskServiceImpl.java     |   11 
 Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/pagemodel/DockingTaskVO.java      |  184 ++-----
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmIOServiceImpl.java           |   26 
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeDuckingSyncServiceImpl.java |   36 +
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/Scheduling/DockingClassSyncScheduling.java   |   54 ++
 Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/DockingTaskMapper.xml                              |   48 +
 Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue                                                     |   22 
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/Scheduling/DockingDataSyncScheduling.java    |   56 ++
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/DockingTaskMapper.java                |    7 
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/MdmEngineService.java                |   20 
 Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue                                                       |   20 
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java     |  686 +++++++++++++++++++++-----
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmEngineServiceImpl.java       |   30 -
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/DockingTaskWrapper.java              |   66 ++
 Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/DockingTask.java              |  118 ++++
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeDuckingSyncService.java         |   51 ++
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/IDockingTaskService.java             |    7 
 17 files changed, 1,097 insertions(+), 345 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
index 1017fc7..348fc9b 100644
--- a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
+++ b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
@@ -62,7 +62,7 @@
       selectionList: [],
       option: {
         addBtn: false,
-        height: this.referConfig.options.height ? this.referConfig.options.height : 475,
+        //height: this.referConfig.options.height ? this.referConfig.options.height : 475,
         calcHeight: 30,
         tip: false,
         menu:false,
@@ -242,7 +242,7 @@
     searchChange(params, done) {
       this.query = params;
       this.page.currentPage = 1;
-      this.onLoad(this.page, params);
+      this.onLoad(this.page);
       done();
     },
     currentChange(currentPage){
@@ -254,24 +254,30 @@
     selectionChange(list) {
       if (!this.isMuti && list.length > 1) {
         const nowVal = list.shift();
-        this.$refs.referCrud.toggleRowSelection(nowVal, false);
+        this.$refs.referDefalutCrud.toggleRowSelection(nowVal, false);
       }
       this.selectionList = list
     },
     selectionClear() {
       this.selectionList = [];
-      this.$refs.referCrud.clearSelection();
+      this.$refs.referDefalutCrud.toggleSelection();
     },
     refreshChange() {
       this.onLoad(this.page, this.query);
     },
-    onLoad(page, params = this.params) {
+    onLoad(page, params={}) {
       if(this.url){
         this.loading = true;
-        getList(Object.assign(params, this.query),page.currentPage, page.pageSize, this.url).then(res => {
-          const data = res.data.data;
+        var query={}
+        if (this.query) {
+          for (var key in this.query) {
+            query['conditionMap["' + key + '"]'] = this.query[key];
+          }
+        }
+        getList(Object.assign(params,this.params, query,this.query),page.currentPage, page.pageSize, this.url).then(res => {
+          const data = res.data;
           this.page.total = data.total;
-          this.data = data.records;
+          this.data = data.data;
           this.loading = false;
           this.selectionClear();
         });
diff --git a/Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue b/Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue
index b16a962..a626aee 100644
--- a/Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue
+++ b/Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue
@@ -301,7 +301,7 @@
     searchChange(params, done) {
       this.query = params;
       this.page.currentPage = 1;
-      this.onLoad(this.page, params);
+      this.onLoad(this.page);
       done();
     },
     currentChange(currentPage){
@@ -319,18 +319,24 @@
     },
     selectionClear() {
       this.selectionList = [];
-      this.$refs.referCrud.clearSelection();
+      this.$refs.referCrud.toggleSelection();
     },
     refreshChange() {
       this.onLoad(this.page, this.query);
     },
-    onLoad(page, params = this.params) {
+    onLoad(page, params={}) {
       if(this.url){
         this.loading = true;
-        getList(Object.assign(params, this.query),page.currentPage, page.pageSize, this.url).then(res => {
-          debugger;
-          this.page.total = res.total;
-          this.data = res.data;
+        var query={}
+        if (this.query) {
+          for (var key in this.query) {
+            query['conditionMap["' + key + '"]'] = this.query[key];
+          }
+        }
+        getList(Object.assign(params,this.params, query,this.query),page.currentPage, page.pageSize, this.url).then(res => {
+          const data = res.data;
+          this.page.total = data.total;
+          this.data = data.data;
           this.loading = false;
           this.selectionClear();
         });
diff --git a/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/DockingTask.java b/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/DockingTask.java
new file mode 100644
index 0000000..9e7d7fe
--- /dev/null
+++ b/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/DockingTask.java
@@ -0,0 +1,118 @@
+package com.vci.ubcs.code.entity;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.vci.ubcs.starter.revision.model.BaseModel;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/***
+ * 瀹氭椂鍒嗗彂浠诲姟瀵硅薄
+ */
+@Data
+@TableName("PL_CODE_DOCKINGTASK")
+@ApiModel(value = "DockingTask", description = "瀹氭椂鍒嗗彂浠诲姟瀵硅薄")
+@EqualsAndHashCode
+public class DockingTask extends BaseModel {
+
+	/**
+	 * 搴忓垪鍖�
+	 */
+	private static final long serialVersionUID = 5020487634341415429L;
+
+	/**
+	 * 绯荤粺鎺ュ彛oid
+	 */
+	@ApiModelProperty(value = "绯荤粺鎺ュ彛oid")
+	private String sysInfoOid;
+
+	/**
+	 * 绯荤粺id
+	 */
+	@ApiModelProperty(value = "绯荤粺id")
+	private String systemOid;
+
+	/**
+	 * 绯荤粺缂栧彿
+	 */
+	@ApiModelProperty(value = "绯荤粺缂栧彿")
+	private String systemCode;
+
+	/**
+	 * 绯荤粺鍚嶇О
+	 */
+	@ApiModelProperty(value = "绯荤粺鍚嶇О")
+	private String systemName;
+
+	/**
+	 * 鍒嗙被oid
+	 */
+	@ApiModelProperty(value = "鍒嗙被oid")
+	private String classifyOid;
+
+	/**
+	 * 鍒嗙被id
+	 */
+	@ApiModelProperty(value = "鍒嗙被id")
+	private String classifyId;
+
+	/**
+	 * 鍒嗙被鍚嶇О
+	 */
+	@ApiModelProperty(value = "鍒嗙被鍚嶇О")
+	private String classifyName;
+
+	/**
+	 * 涓氬姟绫诲瀷鏁版嵁oid
+	 */
+	@ApiModelProperty(value = "涓氬姟绫诲瀷鏁版嵁oid")
+	private String btmOid;
+
+	/**
+	 * 涓氬姟绫诲瀷鏁版嵁id
+	 */
+	@ApiModelProperty(value = "涓氬姟绫诲瀷鏁版嵁id")
+	private String btmId;
+
+	/**
+	 * 鍞竴鏍囪瘑
+	 */
+	@ApiModelProperty(value = "鍞竴鏍囪瘑")
+	private String uniqueCode;
+
+	/**
+	 * 鍙戦�佺被鍨�
+	 */
+	@ApiModelProperty(value = "鍙戦�佺被鍨�")
+	private String sendType;
+
+	/**
+	 * 鍙戦�佺被鍨嬫樉绀烘枃鏈�
+	 */
+	@ApiModelProperty(value = "鍙戦�佺被鍨嬫樉绀烘枃鏈�")
+	@TableField(exist = true)
+	private String sendTypeText;
+
+	/**
+	 * 鏄惁鍙戦�佹垚鍔�
+	 */
+	@ApiModelProperty(value = "鏄惁鍙戦�佹垚鍔�")
+	private String sendFlag;
+
+
+	/**
+	 * 鏄惁鍙戦�佹垚鍔熸樉绀烘枃鏈�
+	 */
+	@ApiModelProperty(value = "鏄惁鍙戦�佹垚鍔熸樉绀烘枃鏈�")
+	@TableField(exist = true)
+	private String sendFlagText;
+
+
+	/**
+	 * dockingdata鐨刼id
+	 */
+	@ApiModelProperty(value = "涓氬姟鏁版嵁涓婚敭")
+	private String dataOid;
+}
diff --git a/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/pagemodel/DockingTaskVO.java b/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/pagemodel/DockingTaskVO.java
index 1a5c926..8b23a74 100644
--- a/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/pagemodel/DockingTaskVO.java
+++ b/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/pagemodel/DockingTaskVO.java
@@ -10,191 +10,107 @@
  */
 public class DockingTaskVO extends BaseModel {
 
+
 	/**
-	 * 绂佹淇敼杩欎釜鍊�
+	 * 搴忓垪鍖�
 	 */
-	private static final long serialVersionUID = 4615707119707777641L;
+	private static final long serialVersionUID = 5020487634341415429L;
 
 	/**
 	 * 绯荤粺鎺ュ彛oid
 	 */
-	private String sysinfooid;
+	private String sysInfoOid;
 
 	/**
 	 * 绯荤粺id
 	 */
-	private String systemoid;
+	private String systemOid;
 
 	/**
 	 * 绯荤粺缂栧彿
 	 */
-	private String systemcode;
+	private String systemCode;
 
 	/**
 	 * 绯荤粺鍚嶇О
 	 */
-	private String systemname;
+	private String systemName;
 
 	/**
 	 * 鍒嗙被oid
 	 */
-	private String classifyoid;
+	private String classifyOid;
+
 	/**
 	 * 鍒嗙被id
 	 */
-	private String classifyid;
+	private String classifyId;
 
 	/**
 	 * 鍒嗙被鍚嶇О
 	 */
-	private String classifyname;
+	private String classifyName;
 
 	/**
 	 * 涓氬姟绫诲瀷鏁版嵁oid
 	 */
-	private String btmoid;
+	private String btmOid;
 
 	/**
 	 * 涓氬姟绫诲瀷鏁版嵁id
 	 */
-	private String btmid;
+	private String btmId;
 
 	/**
-	 * uniquecode
+	 * 鍞竴鏍囪瘑
 	 */
-	private String uniquecode;
+	private String uniqueCode;
+
+	/**
+	 * 鍙戦�佺被鍨�
+	 */
+	private String sendType;
+
+	/**
+	 * 鍙戦�佺被鍨嬫樉绀烘枃鏈�
+	 */
+	private String sendTypeText;
+
+	/**
+	 * 鏄惁鍙戦�佹垚鍔�
+	 */
+	private String sendFlag;
 
 
 	/**
 	 * 鏄惁鍙戦�佹垚鍔�
 	 */
-	private String sendflag;
+	private String sendFlagText;
+
 
 	/**
-	 * 鍙戦�佺被鍨�,lcstatus
+	 * dockingdata鐨刼id
 	 */
-	private String sendtype;
-	/**
-	 * 鏄惁鍙戦�佹垚鍔�
-	 */
-	private String dataoid;
-
-	public String getDataoid() {
-		return dataoid;
-	}
-
-	public void setDataoid(String dataoid) {
-		this.dataoid = dataoid;
-	}
-	public String getSendtype() {
-		return sendtype;
-	}
-
-	public void setSendtype(String sendtype) {
-		this.sendtype = sendtype;
-	}
-
-	public String getSysinfooid() {
-		return sysinfooid;
-	}
-
-	public void setSysinfooid(String sysinfooid) {
-		this.sysinfooid = sysinfooid;
-	}
-
-	public String getSystemoid() {
-		return systemoid;
-	}
-
-	public void setSystemoid(String systemoid) {
-		this.systemoid = systemoid;
-	}
-
-	public String getSystemcode() {
-		return systemcode;
-	}
-
-	public void setSystemcode(String systemcode) {
-		this.systemcode = systemcode;
-	}
-
-	public String getSystemname() {
-		return systemname;
-	}
-
-	public void setSystemname(String systemname) {
-		this.systemname = systemname;
-	}
-
-	public String getClassifyoid() {
-		return classifyoid;
-	}
-
-	public void setClassifyoid(String classifyoid) {
-		this.classifyoid = classifyoid;
-	}
-	public String getClassifyid() {
-		return classifyid;
-	}
-
-	public void setClassifyid(String classifyid) {
-		this.classifyid = classifyid;
-	}
-	public String getClassifyname() {
-		return classifyname;
-	}
-
-	public void setClassifyname(String classifyname) {
-		this.classifyname = classifyname;
-	}
-
-	public String getBtmoid() {
-		return btmoid;
-	}
-
-	public void setBtmoid(String btmoid) {
-		this.btmoid = btmoid;
-	}
-	public String getBtmid() {
-		return btmid;
-	}
-
-	public void setBtmid(String btmid) {
-		this.btmoid = btmid;
-	}
-
-	public String getSendflag() {
-		return sendflag;
-	}
-
-	public void setSendflag(String sendflag) {
-		this.sendflag = sendflag;
-	}
-
-	public String getUniquecode() {
-		return uniquecode;
-	}
-
-	public void setUniquecode(String uniquecode) {
-		this.uniquecode = uniquecode;
-	}
+	private String dataOid;
 
 	@Override
 	public String toString() {
 		return "DockingTaskVO{" +
-				"sysinfooid='" + sysinfooid + '\'' +
-				", systemoid='" + systemoid + '\'' +
-				", systemcode='" + systemcode + '\'' +
-				", systemname='" + systemname + '\'' +
-				", classifyoid='" + classifyoid + '\'' +
-				", classifyid='" + classifyid + '\'' +
-				", classifyname='" + classifyname + '\'' +
-				", btmoid='" + btmoid + '\'' +
-				", btmid='" + btmid + '\'' +
-				", uniquecode='" + uniquecode + '\'' +
-				", sendflag='" + sendflag + '\'' +
-				", sendtype='" + sendtype + '\'' +
-				", dataoid='" + dataoid + '\'' +
-				'}';
+			"sysInfoOid='" + sysInfoOid + '\'' +
+			", systemOid='" + systemOid + '\'' +
+			", systemCode='" + systemCode + '\'' +
+			", systemName='" + systemName + '\'' +
+			", classifyOid='" + classifyOid + '\'' +
+			", classifyId='" + classifyId + '\'' +
+			", classifyName='" + classifyName + '\'' +
+			", btmOid='" + btmOid + '\'' +
+			", btmId='" + btmId + '\'' +
+			", uniqueCode='" + uniqueCode + '\'' +
+			", sendType='" + sendType + '\'' +
+			", sendTypeText='" + sendTypeText + '\'' +
+			", sendFlag='" + sendFlag + '\'' +
+			", sendFlagText='" + sendFlagText + '\'' +
+			", dataOid='" + dataOid + '\'' +
+			'}';
 	}
 }
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/Scheduling/DockingClassSyncScheduling.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/Scheduling/DockingClassSyncScheduling.java
new file mode 100644
index 0000000..b0fbc9e
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/Scheduling/DockingClassSyncScheduling.java
@@ -0,0 +1,54 @@
+package com.vci.ubcs.code.Scheduling;
+
+import com.vci.ubcs.code.service.ICodeDuckingSyncService;
+import com.vci.ubcs.starter.web.enumpck.BooleanEnum;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Component;
+
+import javax.annotation.PostConstruct;
+import javax.annotation.Resource;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+/**
+ * 闆嗘垚浠诲姟瀹氭椂鍣�
+ * 鎻掑叆dockingtask涓�
+ * 浠巇ockingtask涓彇鍑烘潵鏁版嵁锛屾帹閫佸嚭鍘荤殑鎿嶄綔
+ */
+@Component
+@Slf4j
+public class DockingClassSyncScheduling {
+
+	@Resource
+	private ICodeDuckingSyncService codeDuckingSyncServiceI;
+
+	@Value("${clsfSyncPush.isStart:false}")
+	public boolean CLSF_SYNC_PUSH_ISSTARE;
+
+	/**
+	 * 鏄惁鍒濆鍖栧畬鎴愪簡
+	 */
+	public static volatile String FINISH_INIT = "false";
+
+	/**
+	 * 鍦ㄥ垵濮嬪寲瀹屾垚鍚庢墽琛�
+	 */
+	@PostConstruct()
+	public void onInit(){
+		FINISH_INIT = "true";
+	}
+
+	//榛樿姣忓垎閽熸墽琛屾柟娉�
+	@Scheduled(cron = "${clsfSyncPush.cronTime:0 0/10 * * * ?}")
+	public void scheduled() {
+		if(CLSF_SYNC_PUSH_ISSTARE && BooleanEnum.TRUE.getValue().equalsIgnoreCase(FINISH_INIT)) {
+			codeDuckingSyncServiceI.DockingClassSyncScheduing();
+			SimpleDateFormat formatter= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.");
+			String time = formatter.format(new Date());
+			String outinfo = "============鍦� "+time+" 鎵ц浜嗗垎绫婚泦鎴愭帹閫�";
+			log.info(outinfo);
+		}
+	}
+}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/Scheduling/DockingDataSyncScheduling.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/Scheduling/DockingDataSyncScheduling.java
new file mode 100644
index 0000000..08a1e3e
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/Scheduling/DockingDataSyncScheduling.java
@@ -0,0 +1,56 @@
+package  com.vci.ubcs.code.Scheduling;
+
+import com.vci.ubcs.code.service.ICodeDuckingSyncService;
+import com.vci.ubcs.starter.web.enumpck.BooleanEnum;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Component;
+
+import javax.annotation.PostConstruct;
+import javax.annotation.Resource;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+/**
+ * 闆嗘垚浠诲姟瀹氭椂鍣�
+ * 鎻掑叆dockingtask涓�
+ * 浠巇ockingtask涓彇鍑烘潵鏁版嵁锛屾帹閫佸嚭鍘荤殑鎿嶄綔
+ */
+@Component
+public class DockingDataSyncScheduling {
+
+	private Logger logger = LoggerFactory.getLogger(getClass());
+
+	@Resource
+	private ICodeDuckingSyncService codeDuckingSyncServiceI;
+
+	@Value("${dataSyncPush.isStart:false}")
+	public boolean DATA_SYNC_PUSH_ISSTARE;
+
+	/**
+	 * 鏄惁鍒濆鍖栧畬鎴愪簡
+	 */
+	public static volatile String FINISH_INIT = "false";
+
+	/**
+	 * 鍦ㄥ垵濮嬪寲瀹屾垚鍚庢墽琛�
+	 */
+	@PostConstruct()
+	public void onInit(){
+		FINISH_INIT = "true";
+	}
+
+	//榛樿姣忓垎閽熸墽琛屾柟娉�
+	@Scheduled(cron = "${dataSyncPush.cronTime:0 0/10 * * * ?}")
+	public void scheduled() {
+		if(DATA_SYNC_PUSH_ISSTARE && BooleanEnum.TRUE.getValue().equalsIgnoreCase(FINISH_INIT)) {
+			codeDuckingSyncServiceI.DockingDataSyncScheduing();
+			SimpleDateFormat formatter= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.");
+			String time = formatter.format(new Date());
+			String outinfo = "============鍦� "+time+" 鎵ц浜嗕富鏁版嵁闆嗘垚鏁版嵁鎺ㄩ��";
+			logger.info(outinfo);
+		}
+	}
+}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/DockingTaskMapper.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/DockingTaskMapper.java
new file mode 100644
index 0000000..93ef117
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/DockingTaskMapper.java
@@ -0,0 +1,7 @@
+package com.vci.ubcs.code.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.vci.ubcs.code.entity.DockingTask;
+
+public interface DockingTaskMapper extends BaseMapper<DockingTask> {
+}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeDuckingSyncService.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeDuckingSyncService.java
new file mode 100644
index 0000000..21f6d55
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeDuckingSyncService.java
@@ -0,0 +1,51 @@
+package com.vci.ubcs.code.service;
+
+
+import org.springblade.core.tool.api.R;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 涓�銆侀厤缃垎绫汇�佺郴缁熴�佹帴鍙f暟鎹�
+ * 1銆侀厤缃郴缁烻ysIntBaseDO
+ * 2銆侀厤缃郴缁熴�佹帴鍙c�佸垎绫籗ysIntInfoDO
+ *
+ * 浜屻�佸鐞嗛鐢宠鏁版嵁
+ * 1銆佹帴鏀秞mlData
+ * 2銆佸伐鑹虹郴缁熺壒娈婂鐞嗭紝鏍规嵁unique鏌ヨ缂栫爜锛屾湁宸茬粡鍙戝竷鐨勬暟鎹紝鐩存帴杩斿洖缂栫爜銆傛病鏈夋煡璇㈠埌宸茬粡鍙戝竷鐨勭紪鐮侊紙缂栬緫涓�佹彁浜や腑銆佸鏍镐腑銆佸仠鐢ㄧ瓑锛夊拰涓�鑸郴缁熶竴鏍锋寜鐓х3姝ュ鐞�
+ * 3銆佽В鏋恱mlData閲屾瘡涓�涓猟ata鑺傜偣锛屽瓨鍌ㄥ叆DockingPreApplyDataDO锛宒ata鑺傜偣涓媝ros鑺傜偣瀛樺偍鍏ockingPreApplyDataInfoDO
+ * 4銆佽繑鍥瀤mlData锛岄噷杈规爣璇嗕簡姣忎竴涓猟ata鐨勫鐞嗙粨鏋�
+ *
+ * 涓夈�佹牴鎹鐢宠鏁版嵁锛屾彃鍏ヤ富鏁版嵁
+ * 1銆佸叧鑱斿垎绫�
+ * 2銆佹煡璇㈠嚭DockingPreApplyDataInfoDO瀛樺偍鐨勬暟鎹紝鎸夌収鏁版嵁鏄犲皠xml锛岃浆鎹负鎴戜滑鐨刱ey锛岃繑缁欏墠绔嚜鍔ㄥ~鍏呭埌鏂板鏁版嵁鐨勯〉闈�
+ * 3銆佽皟鐢ㄩ�氱敤鐨勬暟鎹柊澧炴帴鍙d繚瀛樻暟鎹紝杩欎竴姝ュ拰涓绘暟鎹鐞嗘ā鍧楀姛鑳戒竴鏍�
+ *
+ * 鍥涖�佹帹閫佹暟鎹�
+ * 1銆佸垎绫绘暟鎹拰涓绘暟鎹湁鍙樺寲鐨勬椂鍊欙紝鏁版嵁搴撹Е鍙戝櫒(TIG_CODEALLCODE_FORDOCKINGDATA,TIG_codeclsify_FORDOCKINGDATA)鑷姩鎻掑叆dockingdata
+ * 2銆丏ockingScheduling鎵ц鏃讹紝鏌ヨdockingdatasendflag=false鐨勬暟鎹紝缁撳悎鏌ヨsysintinfo鏁版嵁锛屾煡璇ockingtask
+ * 3銆乨ockingtask涓彇鍑烘潵鏁版嵁锛屾牴鎹産tmname鍜屾暟鎹畂id鏌ヨ鍑烘潵瑕佹帹閫佺殑鏁版嵁锛屾煡璇ysIntInfoDO锛屾牴鎹竴銆�2銆佷腑閰嶇疆鐨勪俊鎭紝鎵ц鎺ㄩ��
+ *
+ * @author xieun
+ * @date 2022-06-19
+ */
+public interface ICodeDuckingSyncService {
+
+	/**
+	 * 鏁版嵁瀹氭椂浠诲姟璋冪敤
+	 */
+	void DockingDataSyncScheduing();
+
+	/**
+	 * 鏁版嵁瀹氭椂浠诲姟璋冪敤
+	 */
+	void DockingClassSyncScheduing();
+
+	/**
+	 * 鎺ㄩ�佹湭瀹屾垚鐨勯泦鎴愭暟鎹�
+	 * @return
+	 */
+	R sendData(String oids);
+}
+
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/IDockingTaskService.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/IDockingTaskService.java
new file mode 100644
index 0000000..b020819
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/IDockingTaskService.java
@@ -0,0 +1,7 @@
+package com.vci.ubcs.code.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.vci.ubcs.code.entity.DockingTask;
+
+public interface IDockingTaskService extends IService<DockingTask> {
+}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/MdmEngineService.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/MdmEngineService.java
index 43a405f..0be0ac9 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/MdmEngineService.java
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/MdmEngineService.java
@@ -413,20 +413,20 @@
 	 */
 	List<Tree> referTree(UIFormReferVO referConfigVO, TreeQueryObject queryObject);
 
+
 	/**
 	 * 鏄惁涓轰慨鏀瑰拷鐣ョ殑灞炴��
 	 * @param attrName 灞炴�х殑鍚嶅瓧
 	 * @return true 琛ㄧず搴旇蹇界暐
 	 */
-	boolean checkUnAttrUnEdit(String attrName);
-//	{
-//		return  (VciQueryWrapperForDO.OID_FIELD.equalsIgnoreCase(attrName)
-//			||"ts".equalsIgnoreCase(attrName)
-//			|| "lastmodifier".equalsIgnoreCase(attrName)
-//			|| "lastmodifytime".equalsIgnoreCase(attrName)
-//			|| "createtime".equalsIgnoreCase(attrName)
-//			|| "checkintime".equalsIgnoreCase(attrName)
-//			||"checkouttime".equalsIgnoreCase(attrName));
-//	}
+	default boolean checkUnAttrUnEdit(String attrName){
+		return  (VciQueryWrapperForDO.OID_FIELD.equalsIgnoreCase(attrName)
+			||"ts".equalsIgnoreCase(attrName)
+			|| "lastmodifier".equalsIgnoreCase(attrName)
+			|| "lastmodifytime".equalsIgnoreCase(attrName)
+			|| "createtime".equalsIgnoreCase(attrName)
+			|| "checkintime".equalsIgnoreCase(attrName)
+			||"checkouttime".equalsIgnoreCase(attrName));
+	}
 
 }
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeDuckingSyncServiceImpl.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeDuckingSyncServiceImpl.java
new file mode 100644
index 0000000..a3f53b6
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeDuckingSyncServiceImpl.java
@@ -0,0 +1,36 @@
+package com.vci.ubcs.code.service.impl;
+
+
+import com.vci.ubcs.code.service.ICodeDuckingSyncService;
+import lombok.extern.slf4j.Slf4j;
+import org.springblade.core.tool.api.R;
+import org.springframework.stereotype.Service;
+
+
+/*
+ * 涓婚搴撻泦鎴愭湇鍔�
+ * @author xiejun
+ * @date 2023-06-19
+**/
+
+@Service
+@Slf4j
+public class CodeDuckingSyncServiceImpl implements ICodeDuckingSyncService {
+
+
+	@Override
+	public void DockingDataSyncScheduing() {
+
+	}
+
+	@Override
+	public void DockingClassSyncScheduing() {
+
+	}
+
+	@Override
+	public R sendData(String oids) {
+		return null;
+	}
+}
+
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/DockingTaskServiceImpl.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/DockingTaskServiceImpl.java
new file mode 100644
index 0000000..d9d9908
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/DockingTaskServiceImpl.java
@@ -0,0 +1,11 @@
+package com.vci.ubcs.code.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.vci.ubcs.code.entity.CodeClassifyValue;
+import com.vci.ubcs.code.entity.DockingTask;
+import com.vci.ubcs.code.mapper.CodeClassifyValueMapper;
+import com.vci.ubcs.code.mapper.DockingTaskMapper;
+import com.vci.ubcs.code.service.IDockingTaskService;
+
+public class DockingTaskServiceImpl  extends ServiceImpl<DockingTaskMapper, DockingTask>  implements IDockingTaskService {
+}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmEngineServiceImpl.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmEngineServiceImpl.java
index fe8c086..626f009 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmEngineServiceImpl.java
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmEngineServiceImpl.java
@@ -5,8 +5,6 @@
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.sun.corba.se.impl.orbutil.ObjectUtility;
 import com.vci.ubcs.code.bo.CodeClassifyFullInfoBO;
 import com.vci.ubcs.code.bo.CodeTemplateAttrSqlBO;
 import com.vci.ubcs.code.constant.FrameWorkDefaultValueConstant;
@@ -19,13 +17,11 @@
 import com.vci.ubcs.code.mapper.CodeWupinMapper;
 import com.vci.ubcs.code.mapper.CommonsMapper;
 import com.vci.ubcs.code.service.*;
-import com.vci.ubcs.code.util.ClientBusinessObject;
 import com.vci.ubcs.code.vo.CodeKeyAttrRepeatVO;
 import com.vci.ubcs.code.vo.pagemodel.UITableFieldVO;
 import com.vci.ubcs.code.vo.pagemodel.UITablePageVO;
 import com.vci.ubcs.code.vo.pagemodel.*;
 import com.vci.ubcs.omd.constant.BtmTypeLcStatusConstant;
-import com.vci.ubcs.omd.entity.BtmTypeAttribute;
 import com.vci.ubcs.omd.cache.EnumCache;
 import com.vci.ubcs.omd.feign.*;
 import com.vci.ubcs.omd.utils.VciOmdUtil;
@@ -38,7 +34,6 @@
 import com.vci.ubcs.starter.revision.model.TreeQueryObject;
 import com.vci.ubcs.starter.revision.model.TreeWrapperOptions;
 import com.vci.ubcs.starter.revision.service.RevisionModelUtil;
-import com.vci.ubcs.starter.util.UBCSSqlKeyword;
 import com.vci.ubcs.starter.web.constant.QueryOptionConstant;
 import com.vci.ubcs.starter.web.constant.RegExpConstant;
 import com.vci.ubcs.starter.web.enumpck.BooleanEnum;
@@ -55,15 +50,12 @@
 import com.vci.ubcs.system.user.feign.IUserClient;
 import net.logstash.logback.encoder.org.apache.commons.lang3.StringUtils;
 import oracle.sql.TIMESTAMP;
-import org.apache.commons.collections4.MapUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springblade.core.cache.utils.CacheUtil;
 import org.springblade.core.launch.constant.AppConstant;
 import org.springblade.core.secure.utils.AuthUtil;
 import org.springblade.core.tool.api.R;
-import org.springblade.core.tool.utils.DateUtil;
-import org.springblade.core.tool.utils.Func;
 import org.springblade.core.tool.utils.StringPool;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.cache.Cache;
@@ -73,15 +65,10 @@
 
 import javax.annotation.Resource;
 import java.beans.BeanInfo;
-import java.beans.IntrospectionException;
 import java.beans.Introspector;
 import java.beans.PropertyDescriptor;
-import java.lang.reflect.Field;
-import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 import java.math.BigDecimal;
-import java.sql.SQLException;
-import java.sql.Timestamp;
 import java.time.LocalDateTime;
 import java.time.ZoneId;
 import java.time.ZonedDateTime;
@@ -881,21 +868,7 @@
 		}
 	}
 
-	/**
-	 * 鏄惁涓轰慨鏀瑰拷鐣ョ殑灞炴��
-	 * @param attrName 灞炴�х殑鍚嶅瓧
-	 * @return true 琛ㄧず搴旇蹇界暐
-	 */
-	@Override
-	public boolean checkUnAttrUnEdit(String attrName){
-		return  (VciQueryWrapperForDO.OID_FIELD.equalsIgnoreCase(attrName)
-			||"ts".equalsIgnoreCase(attrName)
-			|| "lastmodifier".equalsIgnoreCase(attrName)
-			|| "lastmodifytime".equalsIgnoreCase(attrName)
-			|| "createtime".equalsIgnoreCase(attrName)
-			|| "checkintime".equalsIgnoreCase(attrName)
-			||"checkouttime".equalsIgnoreCase(attrName));
-	}
+
 
 	/**
 	 * 淇濆瓨鍙緭鍙�夌殑淇℃伅
@@ -3480,6 +3453,7 @@
 		return revisionModelUtil.doList2Trees(codeClassifies, treeWrapperOptions, null);
 	}
 
+
 	private String getTableName(String refertype){
 		if ("codeclassify".equals(refertype)){
 			return "pl_code_classify";
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmIOServiceImpl.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmIOServiceImpl.java
index f4c28c0..b3a2929 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmIOServiceImpl.java
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmIOServiceImpl.java
@@ -21,6 +21,7 @@
 import com.vci.ubcs.code.vo.webserviceModel.attrmap.RowDatas;
 import com.vci.ubcs.code.vo.webserviceModel.result.xml.XMLResultDataObjectDetailDO;
 import com.vci.ubcs.omd.feign.IBtmTypeClient;
+import com.vci.ubcs.omd.feign.IWebSecretClient;
 import com.vci.ubcs.omd.vo.BtmTypeVO;
 import com.vci.ubcs.starter.bo.WriteExcelData;
 import com.vci.ubcs.starter.exception.VciBaseException;
@@ -59,6 +60,7 @@
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
 import org.springframework.util.CollectionUtils;
 import javax.annotation.Resource;
 import java.io.File;
@@ -154,6 +156,11 @@
 	 */
 	@Autowired
 	private IBtmTypeClient btmTypeClient;
+	/***
+	 * 瀵嗙骇鏈嶅姟
+	 */
+	@Resource
+	private IWebSecretClient secretService;
 	/**
 	 * 鎵归噺鐢宠锛氶�夊彇閫変腑鍒嗙被涓嬬殑鎵�鏈夋ā鏉垮叧閿睘鎬э紝鐩镐技灞炴�э紝蹇呭~灞炴�э紝鍐欏叆execl涓�
 	 *
@@ -1859,6 +1866,7 @@
 	 * @param dataObjectVO 鏁版嵁淇℃伅
 	 * @param resultDataObjectDetailDOs 閿欒淇℃伅
 	 */
+	@Transactional(rollbackFor = VciBaseException.class)
 	@Override
 	public void batchSyncEditDatas(CodeClassifyVO codeClassifyVO, DataObjectVO dataObjectVO, LinkedList<XMLResultDataObjectDetailDO> resultDataObjectDetailDOs) {
 		String errorid="";
@@ -2283,10 +2291,10 @@
 
 			}
 			int secret = VciBaseUtil.getInt(cbo.getAttributeValue(SECRET_FIELD));
-			/*if (secret == 0 || !secretService.checkDataSecret(secret)) {
+			if (secret == 0 || !secretService.checkDataSecret(secret).getData()) {
 				Integer userSecret = VciBaseUtil.getCurrentUserSecret();
 				cbo.setAttributeValue(SECRET_FIELD, String.valueOf((userSecret == null || userSecret == 0) ? UserSecretEnum.NONE.getValue() : userSecret));
-			}*/
+			}
 		} catch (Throwable e) {
 			log.error("璁剧疆榛樿鐨勫睘鎬х殑鍊奸敊璇�", e);
 		}
@@ -2535,11 +2543,11 @@
 					cbo.setAttributeValue(CODE_CLASSIFY_OID_FIELD,classifyFullInfo.getCurrentClassifyVO().getOid());
 					cbo.setAttributeValue(CODE_FULL_PATH_FILED,fullPath);
 					int secret = VciBaseUtil.getInt(cbo.getAttributeValue(SECRET_FIELD));
-					/*if(secret == 0 || !secretService.checkDataSecret(secret) ){
+					if(secret == 0 || !secretService.checkDataSecret(secret).getData() ){
 						Integer userSecret = VciBaseUtil.getCurrentUserSecret();
 						String secretValue= String.valueOf((userSecret==null || userSecret ==0)? UserSecretEnum.NONE.getValue():userSecret);
 						cbo.setAttributeValue(SECRET_FIELD,secretValue);
-					}*/
+					}
 					if(rowData.getStatus().equals(CodeDefaultLC.DISABLE.getValue())){//鍋滅敤
 						cbo.setLcStatus(CodeDefaultLC.DISABLE.getValue());
 					}else if(rowData.getStatus().equals(CodeDefaultLC.EDITING.getValue())){//缂栬緫
@@ -2633,11 +2641,11 @@
 					cbo.setAttributeValue(CODE_CLASSIFY_OID_FIELD,classifyFullInfo.getCurrentClassifyVO().getOid());
 					cbo.setAttributeValue(CODE_FULL_PATH_FILED,fullPath);
 					//cbo.setLcStatus(CodeDefaultLC.EDITING.getValue());
-					/*int secret = VciBaseUtil.getInt(cbo.getAttributeValue(SECRET_FIELD));
-					if(secret == 0 || !secretService.checkDataSecret(secret) ){
+					int secret = VciBaseUtil.getInt(cbo.getAttributeValue(SECRET_FIELD));
+					if(secret == 0 || !secretService.checkDataSecret(secret).getData() ){
 						Integer userSecret = VciBaseUtil.getCurrentUserSecret();
 						cbo.setAttributeValue(SECRET_FIELD,String.valueOf((userSecret==null || userSecret ==0)? UserSecretEnum.NONE.getValue():userSecret));
-					}*/
+					}
 				}else{
 					//姝ゆ椂杩樻病鏈夎浆鎹㈣矾寰�
 					//cbo.setAttributeValue(CODE_FULL_PATH_FILED, childOidPathMap.getOrDefault(rowData.getData().getOrDefault(CODE_CLASSIFY_OID_FIELD,""),fullPath));
@@ -2690,10 +2698,10 @@
 					cbo.setAttributeValue(CODE_FULL_PATH_FILED,fullPath);
 					//cbo.setLcStatus(CodeDefaultLC.EDITING.getValue());
 					int secret = VciBaseUtil.getInt(cbo.getAttributeValue(SECRET_FIELD));
-					/*if(secret == 0 || !secretService.checkDataSecret(secret) ){
+					if(secret == 0 || !secretService.checkDataSecret(secret).getData() ){
 						Integer userSecret = VciBaseUtil.getCurrentUserSecret();
 						cbo.setAttributeValue(SECRET_FIELD,String.valueOf((userSecret==null || userSecret ==0)? UserSecretEnum.NONE.getValue():userSecret));
-					}*/
+					}
 				}else{
 					//姝ゆ椂杩樻病鏈夎浆鎹㈣矾寰�
 					//cbo.setAttributeValue(CODE_FULL_PATH_FILED, childOidPathMap.getOrDefault(rowData.getData().getOrDefault(CODE_CLASSIFY_OID_FIELD,""),fullPath));
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java
index f43debb..970d631 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java
@@ -9,32 +9,46 @@
 import com.vci.ubcs.code.dto.CodeOrderDTO;
 import com.vci.ubcs.code.dto.CodeOrderSecDTO;
 import com.vci.ubcs.code.entity.*;
+import com.vci.ubcs.code.enumpack.CodeDefaultLC;
 import com.vci.ubcs.code.enumpack.CodeSecTypeEnum;
+import com.vci.ubcs.code.mapper.CommonsMapper;
 import com.vci.ubcs.code.service.*;
+import com.vci.ubcs.code.util.ClientBusinessObject;
 import com.vci.ubcs.code.util.gennerAttrMapUtil;
 import com.vci.ubcs.code.vo.pagemodel.*;
 import com.vci.ubcs.code.vo.webserviceModel.apply.*;
 import com.vci.ubcs.code.vo.webserviceModel.attrmap.*;
+import com.vci.ubcs.code.vo.webserviceModel.attrmap.DataObjectVO;
 import com.vci.ubcs.code.vo.webserviceModel.classify.*;
+import com.vci.ubcs.code.vo.webserviceModel.data.*;
 import com.vci.ubcs.code.vo.webserviceModel.result.json.*;
 import com.vci.ubcs.code.vo.webserviceModel.result.xml.XMLResultClassfyVO;
 import com.vci.ubcs.code.vo.webserviceModel.result.xml.XMLResultDataObjectDetailDO;
 import com.vci.ubcs.code.vo.webserviceModel.result.xml.XMLResultSystemVO;
 import com.vci.ubcs.code.webService.annotation.VciWebservice;
 import com.vci.ubcs.code.webService.config.AttributeMapConfig;
+import com.vci.ubcs.code.wrapper.CodeClassifyWrapper;
+import com.vci.ubcs.omd.feign.IBtmTypeClient;
+import com.vci.ubcs.omd.vo.BtmTypeVO;
+import com.vci.ubcs.starter.revision.model.BaseModel;
 import com.vci.ubcs.starter.revision.model.TreeQueryObject;
+import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil;
+import com.vci.ubcs.starter.web.constant.QueryOptionConstant;
 import com.vci.ubcs.starter.web.pagemodel.SessionInfo;
 import com.vci.ubcs.starter.web.util.BeanUtilForVCI;
 import com.vci.ubcs.starter.web.util.VciBaseUtil;
 import lombok.extern.slf4j.Slf4j;
+import org.springblade.core.tool.api.R;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.util.CollectionUtils;
 import javax.annotation.Resource;
 import java.util.*;
+import java.util.concurrent.CopyOnWriteArrayList;
 import java.util.stream.Collectors;
 
 import static com.vci.ubcs.code.constant.MdmEngineConstant.DEFAULT_SYNC_ATTR_LIST;
+import static com.vci.ubcs.code.enumpack.CodeSecTypeEnum.CODE_CLASSIFY_SEC;
 
 /***
  * 缁熶竴鎺ュ彛
@@ -56,6 +70,19 @@
 	 */
 	@Autowired(required = false)
 	private ICodeClassifyService classifyService;
+
+	/**
+	 * 涓氬姟绫诲瀷鐨勬湇鍔�
+	 */
+	@Autowired
+	private IBtmTypeClient btmTypeClient;
+
+	/**
+	 * 閫氱敤鏌ヨ
+	 */
+	@Resource
+	private CommonsMapper commonsMapper;
+
 	/**
 	 * 涓绘暟鎹紩鎿庣殑鏈嶅姟
 	 */
@@ -68,6 +95,9 @@
 
 	@Resource
 	private MdmIOService mdmIOService;
+
+	@Autowired
+	private ICodeClassifyValueService codeClassifyValueService;
 	/***
 	 * 闆嗘垚鎺ュ彛鏃ュ織鏈嶅姟鐨勯厤缃�
 	 */
@@ -88,154 +118,160 @@
 	 */
 	@Override
 	public String applyCode(String data, String dataType) throws Throwable {
-		{
-			String resultStr = "";
-			String errorid="0";
-			msg="鎴愬姛";
-			objerrorCode="0";
-			objerrorMsg="鎴愬姛";
-			log.info("鐢宠缂栫爜鐨勬暟鎹弬鏁�:->"+data);
-			log.info("鐢宠缂栫爜鐨勬暟鎹被鍨�:->"+dataType);
-			String systemId="";
-			List<XMLResultClassfyVO> resultClassfyVOList = new ArrayList<>();
-			try {
-				if(StringUtils.isBlank(data)) {
-					errorid="101";
-					throw new Throwable("鎺ュ彛鍙傛暟锛氫紶閫掍负绌�");
-				}
-				InterParameterVO interParameterVO  =new InterParameterVO();
-				//濡傛灉dataType鏄痻ml鍒欙紝閫氳繃xml搴忓垪鍖栨垚瀵硅薄褰㈠紡锛屽鏋滄槸json鍒欓�氳繃json杞崲鎴愬璞℃牸寮�
-				try {
-					if ("xml".equals(dataType)) {
-						XStream xStream = new XStream(new DomDriver());
-						xStream.processAnnotations(RootDataVO.class);
-						xStream.autodetectAnnotations(true);
-						RootDataVO rootDataVO = (RootDataVO) xStream.fromXML(data);
-						interParameterVO.setData(rootDataVO);
-					} else {
-						interParameterVO = JSONObject.toJavaObject(JSONObject.parseObject(data), InterParameterVO.class);
-					}
-				}catch (Throwable e){
-					errorid="101";
-					throw new Throwable("鎺ュ彛鍙傛暟锛氫紶鍏ユ暟鎹弬鏁拌В鏋愬け璐�");
-				}
-				ClassfysVO classfysVO = interParameterVO.getData().getClassifys();
-				systemId = interParameterVO.getData().getSystemId();
-				UserVO userVo = interParameterVO.getData().getUser();
-				List<ClassfyVO> classVOList = classfysVO.getClassify();
-				InterParameterVO finalInterParameterVO = interParameterVO;
-
-				//杩欐槸璐﹀彿淇℃伅
-				SessionInfo sessionInfo = new SessionInfo();
-				sessionInfo.setUserId(userVo.getUserName());
-				sessionInfo.setUserName(userVo.getTrueName());
-				sessionInfo.setIp(userVo.getIp());
-				VciBaseUtil.setCurrentUserSessionInfo(sessionInfo);
-
-				String finalSystemId = systemId;
-				classVOList.stream().forEach(classVO -> {
-					log.info("鍙傛暟锛氬垎绫籆Ode:" + classVO.getClassCode());
-					LinkedList<XMLResultDataObjectDetailDO> resultDataObjectDetailDOs = new LinkedList<>();
-					//鑾峰彇鍒嗙被淇℃伅
-					try {
-						String libray = classVO.getLibrary();
-						CodeClassifyVO codeClassifyVO = getClassfy(classVO);
-						log.info("end锛氬垎绫绘煡璇㈠畬姣�");
-						//鑾峰彇鍒嗙被妯℃澘淇℃伅
-						if(codeClassifyVO==null || StringUtils.isBlank(codeClassifyVO.getOid())){
-							objerrorCode="100";
-							throw  new  Throwable ("鏍规嵁浼犺緭鐨勫垎绫伙紝鏈幏鍙栧埌鍒嗙被淇℃伅");
-						}
-						CodeClassifyTemplateVO templateVO = engineService.getUsedTemplateByClassifyOid(codeClassifyVO.getOid());
-						if(templateVO==null||StringUtils.isBlank(templateVO.getOid())){
-							objerrorCode="1";
-							throw  new  Throwable ("鏍规嵁浼犺緭鐨勫垎绫伙紝鏈幏鍙朚DM绯荤粺涓搴旀ā鏉�");
-						}
-						log.info("end锛氭ā鏉挎煡璇㈠畬姣�");
-						ApplyDatasVO applyDatasVO = classVO.getObjects();
-						DataObjectVO dataObjectVO = new DataObjectVO();
-						List<CodeClassifyTemplateAttrVO> attrVOS = templateVO.getAttributes().stream().filter(s -> !DEFAULT_SYNC_ATTR_LIST.contains(s.getId()) && VciBaseUtil.getBoolean(s.getFormDisplayFlag())
-						).collect(Collectors.toList());
-						this.getConfigDatas(finalSystemId, libray, applyDatasVO, attrVOS, dataObjectVO);
-						log.info("end锛氭暟鎹粍缁囧畬姣�");
-						//瑙勫垯鐨勪富閿渶瑕佸幓鑾峰彇
-						CodeClassifyFullInfoBO classifyFullInfo = classifyService.getClassifyFullInfo(codeClassifyVO.getOid());
-						if(classifyFullInfo==null ||classifyFullInfo.getCurrentClassifyVO()==null || StringUtils.isBlank(classifyFullInfo.getCurrentClassifyVO().getOid())){
-							objerrorCode="1";
-							log.info("classifyFullInfo:"+"鏍规嵁浼犺緭鐨勫垎绫伙紝鏈幏鍙栧垎绫荤浉鍏充俊鎭�");
-							throw  new  Throwable ("鏍规嵁浼犺緭鐨勫垎绫伙紝鏈幏鍙栧垎绫荤浉鍏充俊鎭�");
-						}
-						CodeRuleVO ruleVO = engineService.getCodeRuleByClassifyFullInfo(classifyFullInfo);
-						if(ruleVO==null|| StringUtils.isBlank(ruleVO.getOid())){
-							objerrorCode="102";
-							throw  new  Throwable ("鏍规嵁浼犺緭鐨勫垎绫伙紝鏈幏鍙朚DM绯荤粺涓搴旇鍒�");
-						}
-						log.info("end锛氳鍒欒幏鍙栧畬姣�");
-						List<CodeOrderSecDTO> codeOrderSecDTOList = getRuleCodeOrderSecDTOs(classVO.getSections().getSection(), ruleVO);
-						log.info("end锛氱爜娈佃幏鍙栧畬姣�");
-						CodeOrderDTO orderDTO = new CodeOrderDTO();
-						orderDTO.setCodeClassifyOid(codeClassifyVO.getOid());//鍒嗙被涓婚敭
-						orderDTO.setSecDTOList(codeOrderSecDTOList);//鍒嗙被鐮佹
-						mdmIOService.batchSyncApplyCode(orderDTO, dataObjectVO, resultDataObjectDetailDOs);
-						log.info("end锛氱敵璇疯幏鍙栧畬姣�");
-					} catch (Throwable e) {
-						XMLResultDataObjectDetailDO xmlResultDataObjectDetailDO=new XMLResultDataObjectDetailDO();
-						xmlResultDataObjectDetailDO.setCode("");
-						xmlResultDataObjectDetailDO.setId("");
-						xmlResultDataObjectDetailDO.setErrorid(objerrorCode);
-						xmlResultDataObjectDetailDO.setMsg("缂栫爜鐢宠澶辫触:"+e.getMessage());
-						resultDataObjectDetailDOs.add(xmlResultDataObjectDetailDO);
-						e.printStackTrace();
-					}finally {
-						XMLResultClassfyVO resultClassfyVO = new XMLResultClassfyVO();
-						resultClassfyVO.setClassCode(classVO.getClassCode());
-						resultClassfyVO.setLibrary(classVO.getLibrary());
-						resultClassfyVO.setFullclsfNamePath(classVO.getFullclsfNamePath());
-						resultClassfyVO.setObjects(resultDataObjectDetailDOs);
-						resultClassfyVOList.add(resultClassfyVO);
-					}
-				});
-				XMLResultSystemVO xmlResultSystemVO=new XMLResultSystemVO();
-				xmlResultSystemVO.setClassifys(resultClassfyVOList);
-				xmlResultSystemVO.setMsg(msg);
-				xmlResultSystemVO.setErrorid(errorid);
-				resultStr= transferResultXMl(xmlResultSystemVO,dataType);
-			}catch (Throwable e){
-				e.printStackTrace();;
-				msg="鐢宠缂栫爜澶辫触:"+e.getMessage();
-			}finally {
-				XMLResultSystemVO xmlResultSystemVO=new XMLResultSystemVO();
-				xmlResultSystemVO.setClassifys(resultClassfyVOList);
-				xmlResultSystemVO.setMsg(msg);
-				xmlResultSystemVO.setErrorid(errorid);
-				resultStr= transferResultXMl(xmlResultSystemVO,dataType);
-				final boolean[] issucess = {true};
-				if(!errorid.equals("0")) {
-					issucess[0] = false;
-				}else {
-					if(!CollectionUtils.isEmpty(resultClassfyVOList)) {
-						resultClassfyVOList.stream().forEach(xMLResultClassfyVO -> {
-							xMLResultClassfyVO.getObjects().stream().forEach(objec -> {
-								if (!(objec.getErrorid().equals("0") || objec.getErrorid().equals("204"))) {
-									issucess[0] = false;
-									msg=objec.getMsg();
-								}
-							});
-						});
-					}
-
-				}
-				try {
-					//璁板綍鏃ュ織
-					this.saveLogs(systemId, systemId, data, resultStr, issucess[0], msg, "applyCode");
-				}catch (Throwable e){
-					e.printStackTrace();
-				}
+		String resultStr = "";
+		String errorid="0";
+		msg="鎴愬姛";
+		objerrorCode="0";
+		objerrorMsg="鎴愬姛";
+		log.info("鐢宠缂栫爜鐨勬暟鎹弬鏁�:->"+data);
+		log.info("鐢宠缂栫爜鐨勬暟鎹被鍨�:->"+dataType);
+		String systemId="";
+		List<XMLResultClassfyVO> resultClassfyVOList = new ArrayList<>();
+		try {
+			if(StringUtils.isBlank(data)) {
+				errorid="101";
+				throw new Throwable("鎺ュ彛鍙傛暟锛氫紶閫掍负绌�");
 			}
-			log.info("杩斿洖鍙傛暟:"+resultStr);
+			InterParameterVO interParameterVO  =new InterParameterVO();
+			//濡傛灉dataType鏄痻ml鍒欙紝閫氳繃xml搴忓垪鍖栨垚瀵硅薄褰㈠紡锛屽鏋滄槸json鍒欓�氳繃json杞崲鎴愬璞℃牸寮�
+			try {
+				if ("xml".equals(dataType)) {
+					XStream xStream = new XStream(new DomDriver());
+					xStream.processAnnotations(RootDataVO.class);
+					xStream.autodetectAnnotations(true);
+					RootDataVO rootDataVO = (RootDataVO) xStream.fromXML(data);
+					interParameterVO.setData(rootDataVO);
+				} else {
+					interParameterVO = JSONObject.toJavaObject(JSONObject.parseObject(data), InterParameterVO.class);
+				}
+			}catch (Throwable e){
+				errorid="101";
+				throw new Throwable("鎺ュ彛鍙傛暟锛氫紶鍏ユ暟鎹弬鏁拌В鏋愬け璐�");
+			}
+			ClassfysVO classfysVO = interParameterVO.getData().getClassifys();
+			systemId = interParameterVO.getData().getSystemId();
+			UserVO userVo = interParameterVO.getData().getUser();
+			List<ClassfyVO> classVOList = classfysVO.getClassify();
+			InterParameterVO finalInterParameterVO = interParameterVO;
 
-			return resultStr;
+			//杩欐槸璐﹀彿淇℃伅
+			SessionInfo sessionInfo = new SessionInfo();
+			sessionInfo.setUserId(userVo.getUserName());
+			sessionInfo.setUserName(userVo.getTrueName());
+			sessionInfo.setIp(userVo.getIp());
+			VciBaseUtil.setCurrentUserSessionInfo(sessionInfo);
+
+			String finalSystemId = systemId;
+			classVOList.stream().forEach(classVO -> {
+				log.info("鍙傛暟锛氬垎绫籆Ode:" + classVO.getClassCode());
+				LinkedList<XMLResultDataObjectDetailDO> resultDataObjectDetailDOs = new LinkedList<>();
+				//鑾峰彇鍒嗙被淇℃伅
+				try {
+					String libray = classVO.getLibrary();
+					CodeClassifyVO codeClassifyVO = getClassfy(classVO);
+					log.info("end锛氬垎绫绘煡璇㈠畬姣�");
+					//鑾峰彇鍒嗙被妯℃澘淇℃伅
+					if(codeClassifyVO==null || StringUtils.isBlank(codeClassifyVO.getOid())){
+						objerrorCode="100";
+						throw  new  Throwable ("鏍规嵁浼犺緭鐨勫垎绫伙紝鏈幏鍙栧埌鍒嗙被淇℃伅");
+					}
+					CodeClassifyTemplateVO templateVO = engineService.getUsedTemplateByClassifyOid(codeClassifyVO.getOid());
+					if(templateVO==null||StringUtils.isBlank(templateVO.getOid())){
+						objerrorCode="1";
+						throw  new  Throwable ("鏍规嵁浼犺緭鐨勫垎绫伙紝鏈幏鍙朚DM绯荤粺涓搴旀ā鏉�");
+					}
+					log.info("end锛氭ā鏉挎煡璇㈠畬姣�");
+					ApplyDatasVO applyDatasVO = classVO.getObjects();
+					DataObjectVO dataObjectVO = new DataObjectVO();
+					List<CodeClassifyTemplateAttrVO> attrVOS = templateVO.getAttributes().stream().filter(s -> !DEFAULT_SYNC_ATTR_LIST.contains(s.getId()) && VciBaseUtil.getBoolean(s.getFormDisplayFlag())
+					).collect(Collectors.toList());
+					this.getConfigDatas(finalSystemId, libray, applyDatasVO, attrVOS, dataObjectVO);
+					log.info("end锛氭暟鎹粍缁囧畬姣�");
+					//瑙勫垯鐨勪富閿渶瑕佸幓鑾峰彇
+					CodeClassifyFullInfoBO classifyFullInfo = classifyService.getClassifyFullInfo(codeClassifyVO.getOid());
+					if(classifyFullInfo==null ||classifyFullInfo.getCurrentClassifyVO()==null || StringUtils.isBlank(classifyFullInfo.getCurrentClassifyVO().getOid())){
+						objerrorCode="1";
+						log.info("classifyFullInfo:"+"鏍规嵁浼犺緭鐨勫垎绫伙紝鏈幏鍙栧垎绫荤浉鍏充俊鎭�");
+						throw  new  Throwable ("鏍规嵁浼犺緭鐨勫垎绫伙紝鏈幏鍙栧垎绫荤浉鍏充俊鎭�");
+					}
+					CodeRuleVO ruleVO = engineService.getCodeRuleByClassifyFullInfo(classifyFullInfo);
+					if(ruleVO==null||StringUtils.isBlank(ruleVO.getOid())){
+						objerrorCode="102";
+						throw  new  Throwable ("鏍规嵁浼犺緭鐨勫垎绫伙紝鏈幏鍙朚DM绯荤粺涓搴旇鍒�");
+					}
+					log.info("end锛氳鍒欒幏鍙栧畬姣�");
+					List<CodeOrderSecDTO> codeOrderSecDTOList = getRuleCodeOrderSecDTOs(classVO.getSections().getSection(), ruleVO,classifyFullInfo);
+					log.info("end锛氱爜娈佃幏鍙栧畬姣�");
+					CodeOrderDTO orderDTO = new CodeOrderDTO();
+					orderDTO.setCodeClassifyOid(codeClassifyVO.getOid());//鍒嗙被涓婚敭
+					orderDTO.setSecDTOList(codeOrderSecDTOList);//鍒嗙被鐮佹
+					mdmIOService.batchSyncApplyCode(orderDTO, dataObjectVO, resultDataObjectDetailDOs);
+					log.info("end锛氱敵璇疯幏鍙栧畬姣�");
+				} catch (Throwable e) {
+					XMLResultDataObjectDetailDO xmlResultDataObjectDetailDO=new XMLResultDataObjectDetailDO();
+					xmlResultDataObjectDetailDO.setCode("");
+					xmlResultDataObjectDetailDO.setId("");
+					xmlResultDataObjectDetailDO.setErrorid(objerrorCode);
+					xmlResultDataObjectDetailDO.setMsg("缂栫爜鐢宠澶辫触:"+e.getMessage());
+					resultDataObjectDetailDOs.add(xmlResultDataObjectDetailDO);
+					e.printStackTrace();
+				}finally {
+					XMLResultClassfyVO resultClassfyVO = new XMLResultClassfyVO();
+					resultClassfyVO.setClassCode(classVO.getClassCode());
+					resultClassfyVO.setLibrary(classVO.getLibrary());
+					resultClassfyVO.setFullclsfNamePath(classVO.getFullclsfNamePath());
+					resultClassfyVO.setObjects(resultDataObjectDetailDOs);
+					resultClassfyVOList.add(resultClassfyVO);
+				}
+			});
+			XMLResultSystemVO xmlResultSystemVO=new XMLResultSystemVO();
+			xmlResultSystemVO.setClassifys(resultClassfyVOList);
+			xmlResultSystemVO.setMsg(msg);
+			xmlResultSystemVO.setErrorid(errorid);
+			resultStr= transferResultXMl(xmlResultSystemVO,dataType);
+		}catch (Throwable e){
+			e.printStackTrace();;
+			msg="鐢宠缂栫爜澶辫触:"+e.getMessage();
+          /*  XMLResultSystemVO XMLResultSystemVO=new XMLResultSystemVO();
+            XMLResultSystemVO.setErrorid(errorid);
+            XMLResultSystemVO.setMsg("鐢宠缂栫爜澶辫触锛�->"+e.getMessage());
+            XMLResultSystemVO.setClassifys(resultClassfyVOList);
+            resultStr=transferResultXMl(XMLResultSystemVO,dataType);
+
+            log.error("鐢宠缂栫爜澶辫触锛�->"+e);
+            return resultStr;*/
+		}finally {
+			XMLResultSystemVO xmlResultSystemVO=new XMLResultSystemVO();
+			xmlResultSystemVO.setClassifys(resultClassfyVOList);
+			xmlResultSystemVO.setMsg(msg);
+			xmlResultSystemVO.setErrorid(errorid);
+			resultStr= transferResultXMl(xmlResultSystemVO,dataType);
+			final boolean[] issucess = {true};
+			if(!errorid.equals("0")) {
+				issucess[0] = false;
+			}else {
+				if(!CollectionUtils.isEmpty(resultClassfyVOList)) {
+					resultClassfyVOList.stream().forEach(xMLResultClassfyVO -> {
+						xMLResultClassfyVO.getObjects().stream().forEach(objec -> {
+							if (!(objec.getErrorid().equals("0") || objec.getErrorid().equals("204"))) {
+								issucess[0] = false;
+								msg=objec.getMsg();
+							}
+						});
+					});
+				}
+
+			}
+			try {
+				//璁板綍鏃ュ織
+				this.saveLogs(systemId, systemId, data, resultStr, issucess[0], msg, "applyCode");
+			}catch (Throwable e){
+				e.printStackTrace();
+			}
 		}
+		log.info("杩斿洖鍙傛暟:"+resultStr);
+
+		return resultStr;
 	}
 
 	/***
@@ -248,7 +284,139 @@
 	@Override
 	public String syncEditData(String data, String dataType) throws Throwable {
 
-		return null;
+		String resultStr = "";
+		String errorid="0";
+		msg="鎴愬姛";
+		String systemId="";
+		objerrorCode="0";
+		objerrorMsg="鎴愬姛";
+		log.info("鏇存敼缂栫爜鐨勬暟鎹弬鏁�:->"+data);
+		log.info("鏇存敼缂栫爜鐨勬暟鎹被鍨�:->"+dataType);
+		List<XMLResultClassfyVO> resultClassfyVOList = new ArrayList<>();
+		try {
+			if (StringUtils.isBlank(data)) {
+				errorid = "101";
+				throw new Throwable("鎺ュ彛鍙傛暟锛氫紶閫掍负绌�");
+			}
+			InterParameterVO interParameterVO = new InterParameterVO();
+			//濡傛灉dataType鏄痻ml鍒欙紝閫氳繃xml搴忓垪鍖栨垚瀵硅薄褰㈠紡锛屽鏋滄槸json鍒欓�氳繃json杞崲鎴愬璞℃牸寮�
+			try {
+				if ("xml".equals(dataType)) {
+					XStream xStream = new XStream(new DomDriver());
+					xStream.processAnnotations(RootDataVO.class);
+					xStream.autodetectAnnotations(true);
+					RootDataVO rootDataVO = (RootDataVO) xStream.fromXML(data);
+					interParameterVO.setData(rootDataVO);
+				} else {
+					interParameterVO = JSONObject.toJavaObject(JSONObject.parseObject(data), InterParameterVO.class);
+				}
+			} catch (Throwable e) {
+				errorid = "101";
+				throw new Throwable("鎺ュ彛鍙傛暟锛氫紶鍏ユ暟鎹弬鏁拌В鏋愬け璐�");
+
+			}
+			ClassfysVO classfysVO = interParameterVO.getData().getClassifys();
+			systemId = interParameterVO.getData().getSystemId();
+			UserVO userVo = interParameterVO.getData().getUser();
+			List<ClassfyVO> classVOList = classfysVO.getClassify();
+			InterParameterVO finalInterParameterVO = interParameterVO;
+			//杩欐槸璐﹀彿淇℃伅
+			SessionInfo sessionInfo = new SessionInfo();
+			sessionInfo.setUserId(userVo.getUserName());
+			sessionInfo.setUserName(userVo.getTrueName());
+			sessionInfo.setIp(userVo.getIp());
+			VciBaseUtil.setCurrentUserSessionInfo(sessionInfo);
+			String finalSystemId = systemId;
+			classVOList.stream().forEach(classVO->{
+				log.info("鍙傛暟锛氬垎绫籆Ode:" + classVO.getClassCode());
+				LinkedList<XMLResultDataObjectDetailDO> resultDataObjectDetailDOs = new LinkedList<>();
+				//鑾峰彇鍒嗙被淇℃伅
+				try {
+					String libray = classVO.getLibrary();
+					CodeClassifyVO codeClassifyVO = getClassfy(classVO);
+					if(codeClassifyVO==null || StringUtils.isBlank(codeClassifyVO.getOid())){
+						objerrorCode="100";
+						throw  new  Throwable ("鏍规嵁浼犺緭鐨勫垎绫伙紝鏈幏鍙栧埌鍒嗙被淇℃伅");
+					}
+					log.info("end锛氬垎绫绘煡璇㈠畬姣�");
+					//鑾峰彇鍒嗙被妯℃澘淇℃伅
+					CodeClassifyTemplateVO templateVO = engineService.getUsedTemplateByClassifyOid(codeClassifyVO.getOid());
+					if(templateVO==null||StringUtils.isBlank(templateVO.getOid())){
+						objerrorCode="102";
+						throw  new  Throwable ("鏍规嵁浼犺緭鐨勫垎绫伙紝鏈幏鍙朚DM绯荤粺涓搴旀ā鏉�");
+					}
+					log.info("end锛氭ā鏉挎煡璇㈠畬姣�");
+					ApplyDatasVO applyDatasVO = classVO.getObjects();
+					DataObjectVO dataObjectVO = new DataObjectVO();
+					//灏嗛粯璁ょ殑灞炴�у叏閮ㄦ浛鎹㈡帀
+					List<CodeClassifyTemplateAttrVO> attrVOS = templateVO.getAttributes().stream().filter(s -> !DEFAULT_SYNC_ATTR_LIST.contains(s.getId()) && VciBaseUtil.getBoolean(s.getFormDisplayFlag())
+					).collect(Collectors.toList());
+					this.getConfigDatas(finalSystemId, libray, applyDatasVO, attrVOS, dataObjectVO);
+					log.info("end锛氭暟鎹瀯寤哄畬姣�");
+					log.info("start锛氫慨鏀规暟鎹墽琛屽畬姣�");
+					mdmIOService.batchSyncEditDatas(codeClassifyVO,dataObjectVO, resultDataObjectDetailDOs);
+					log.info("end锛氫慨鏀规暟鎹墽琛屽畬姣�");
+				} catch (Throwable e) {
+					XMLResultDataObjectDetailDO xmlResultDataObjectDetailDO=new XMLResultDataObjectDetailDO();
+					xmlResultDataObjectDetailDO.setCode("");
+					xmlResultDataObjectDetailDO.setId("");
+					xmlResultDataObjectDetailDO.setErrorid(objerrorCode);
+					xmlResultDataObjectDetailDO.setMsg("缂栫爜鏇存敼/鐘舵�佹洿鏀�/鍒犻櫎:"+e.getMessage());
+					resultDataObjectDetailDOs.add(xmlResultDataObjectDetailDO);
+					e.printStackTrace();
+				}finally {
+					XMLResultClassfyVO resultClassfyVO = new XMLResultClassfyVO();
+					resultClassfyVO.setClassCode(classVO.getClassCode());
+					resultClassfyVO.setLibrary(classVO.getLibrary());
+					resultClassfyVO.setFullclsfNamePath(classVO.getFullclsfNamePath());
+					resultClassfyVO.setObjects(resultDataObjectDetailDOs);
+					resultClassfyVOList.add(resultClassfyVO);
+				}
+
+			});
+		}catch (Throwable e){
+			e.printStackTrace();;
+			msg="缂栫爜鏇存敼/鐘舵�佹洿鏀�/鍒犻櫎:"+e.getMessage();
+          /*  XMLResultSystemVO XMLResultSystemVO=new XMLResultSystemVO();
+            XMLResultSystemVO.setErrorid(errorid);
+            XMLResultSystemVO.setMsg("鐢宠缂栫爜澶辫触锛�->"+e.getMessage());
+            XMLResultSystemVO.setClassifys(resultClassfyVOList);
+            resultStr=transferResultXMl(XMLResultSystemVO,dataType);
+
+            log.error("鐢宠缂栫爜澶辫触锛�->"+e);
+            return resultStr;*/
+		}finally {
+			XMLResultSystemVO xmlResultSystemVO=new XMLResultSystemVO();
+			xmlResultSystemVO.setClassifys(resultClassfyVOList);
+			xmlResultSystemVO.setMsg(msg);
+			xmlResultSystemVO.setErrorid(errorid);
+			resultStr= transferResultXMl(xmlResultSystemVO,dataType);
+			final boolean[] issucess = {true};
+			if(!errorid.equals("0")) {
+				issucess[0] = false;
+			}else {
+				if(!CollectionUtils.isEmpty(resultClassfyVOList)) {
+					resultClassfyVOList.stream().forEach(xMLResultClassfyVO -> {
+						xMLResultClassfyVO.getObjects().stream().forEach(objec -> {
+							if (!(objec.getErrorid().equals("0") || objec.getErrorid().equals("204"))) {
+								issucess[0] = false;
+								msg=objec.getMsg();
+							}
+						});
+					});
+				}
+
+			}
+			try {
+				//璁板綍鏃ュ織
+				this.saveLogs(systemId, systemId, data, resultStr, issucess[0], msg, "syncEditData");
+			}catch (Throwable e){
+				e.printStackTrace();
+			}
+		}
+		log.info("杩斿洖鍙傛暟:"+resultStr);
+		//瀛樺偍鏃ュ織
+		return resultStr;
 	}
 
 	/***
@@ -386,8 +554,191 @@
 	 */
 	@Override
 	public String queryData(String data, String dataType) throws Throwable {
-		return null;
+		boolean issucess=false;
+		String resultStr = "";
+		String errorid="0";
+		msg="鎴愬姛";
+		String systemId="";
+		log.info("鏌ヨ鍒嗙被鐨勬暟鎹弬鏁�:->"+data);
+		log.info("鏌ヨ鍒嗙被鐨勬暟鎹被鍨�:->"+dataType);
+		DataCondtionsVO dataCondtionsVO=new DataCondtionsVO();
+		ResultDataVO resultDataVO=new ResultDataVO();
+		try {
+			try {
+				if ("xml".equals(dataType)) {
+					XStream xStream = new XStream(new DomDriver());
+					xStream.processAnnotations(CondtionsVO.class);
+					xStream.autodetectAnnotations(true);
+					CondtionsVO condtionsVO = (CondtionsVO) xStream.fromXML(data);
+					dataCondtionsVO.setCondtions(condtionsVO);
+				} else {
+					dataCondtionsVO = JSONObject.toJavaObject(JSONObject.parseObject(data), DataCondtionsVO.class);
+				}
+			} catch (Throwable e) {
+				errorid = "101";
+				msg = "鎺ュ彛鍙傛暟锛氫紶鍏ユ暟鎹弬鏁拌В鏋愬け璐�";
+				e.printStackTrace();
+				throw new Throwable("鎺ュ彛鍙傛暟锛氫紶鍏ユ暟鎹弬鏁拌В鏋愬け璐�");
+			}
+			CondtionsVO condtionsVO=dataCondtionsVO.getCondtions();
+			systemId=condtionsVO.getSystemId();
+			UserVO userVo=condtionsVO.getUser();
+			CondtionVO condtionVO= condtionsVO.getCondtion();
+			SessionInfo sessionInfo = new SessionInfo();
+			sessionInfo.setUserId(userVo.getUserName());
+			sessionInfo.setUserName(userVo.getTrueName());
+			sessionInfo.setIp(userVo.getIp());
+			VciBaseUtil.setCurrentUserSessionInfo(sessionInfo);
+
+			String classCode=condtionVO.getClassCode();
+			String library= condtionVO.getLibrary();
+			String queryFileds= condtionVO.getQueryFileds();
+			if(StringUtils.isBlank(library)){
+				errorid = "101";
+				msg = "鎺ュ彛鍙傛暟锛歭ibrary 涓簄ull";
+				throw new Throwable(msg);
+			}
+
+			//鍏堢畝绉版槸鍚︽湁鍏宠仈妯℃澘锛屾湁妯℃澘瑕佸厛鍒犻櫎
+
+			List<CodeClassify> libIdDos =classifyService.selectByWrapper(Wrappers.<CodeClassify>query().lambda().eq(CodeClassify::getId,library));
+			if(!CollectionUtils.isEmpty(libIdDos)){
+				CodeClassify libCodeClassify=libIdDos.get(0);
+				List<CodeClassify> codeClassifyList=classifyService.selectByWrapper(Wrappers.<CodeClassify>query().lambda().eq(CodeClassify::getId,classCode));
+				if(!CollectionUtils.isEmpty(codeClassifyList)){
+					final CodeClassify[] currentCodeClassify = {null};
+					codeClassifyList.stream().forEach(codeClassify -> {
+						CodeClassifyVO codeClassifyVO=  classifyService.getTopClassifyVO(codeClassify.getOid());
+						if(codeClassifyVO.getOid().equals(libCodeClassify.getOid())){
+							currentCodeClassify[0] =codeClassify;
+						}
+					});
+					if(currentCodeClassify[0]==null){
+						errorid = "101";
+						msg = "鎺ュ彛鍙傛暟锛歝lassCode 鏈煡璇㈠埌瀵瑰簲鐨勫垎绫讳俊鎭�";
+						throw new Throwable(msg);
+					}
+					List<CodeClassifyVO> dataCodeClassifyVOList =new ArrayList<>();
+					String oid= currentCodeClassify[0].getOid();
+					TreeQueryObject treeQueryObject=new TreeQueryObject();
+					treeQueryObject.setParentOid(oid);
+					treeQueryObject.setQueryAllLevel(true);
+					dataCodeClassifyVOList=classifyService.selectCodeClassifyDOByTree(treeQueryObject);
+					dataCodeClassifyVOList.add(CodeClassifyWrapper.build().entityVO(currentCodeClassify[0]));
+					Map<String, CodeClassifyVO> oidCodeclassifyDOMap = dataCodeClassifyVOList.stream().filter(systeDataObject -> systeDataObject != null && StringUtils.isNotBlank(systeDataObject.getOid())).collect(Collectors.toList()).stream().collect(Collectors.toMap(s -> s.getOid(), t -> t));
+
+					List<PropertyVO>  propertyVOS=condtionVO.getPro();
+					/*Map<String,String> condtionMap=new HashMap<>();
+					propertyVOS.stream().forEach(propertyVO -> {
+						condtionMap.put(propertyVO.getFiledName(),propertyVO.getFiledValue());
+					});
+					condtionMap.put("codeclsfid", QueryOptionConstant.IN + "(" + VciBaseUtil.toInSql(oidCodeclassifyDOMap.keySet().toArray(new String[0])) + ")");
+					List<String>statusList=new ArrayList<>();
+					statusList.add(CodeDefaultLC.RELEASED.getValue());
+					statusList.add(CodeDefaultLC.DISABLE.getValue());
+					statusList.add(CodeDefaultLC.TASK_BACK.getValue());
+					condtionMap.put("Lcstatus",  QueryOptionConstant.IN + "(" + VciBaseUtil.toInSql(statusList.toArray(new String[]{})) + ")" );
+					condtionMap.put("islastr", "1");
+					condtionMap.put("islastv", "1");*/
+					List<String>statusList=new ArrayList<>();
+					statusList.add(CodeDefaultLC.RELEASED.getValue());
+					statusList.add(CodeDefaultLC.DISABLE.getValue());
+					statusList.add(CodeDefaultLC.TASK_BACK.getValue());
+					R<BtmTypeVO>  r= btmTypeClient.getDetail(libCodeClassify.getBtmTypeId());
+					BtmTypeVO btmTypeVO =r.getData();
+					String tableName=btmTypeVO.getTableName();
+
+					StringBuffer sb=new StringBuffer();
+					sb.append(" select * from  ");
+					sb.append(tableName);
+					sb.append(" where 1=1");
+					propertyVOS.stream().forEach(propertyVO -> {
+						sb.append( " and  "+propertyVO.getFiledName()+"='"+propertyVO.getFiledValue()+"'");
+					});
+					sb.append(" and islastr=1 and islastv=1" );
+					sb.append(" and codeclsfid in (" + VciBaseUtil.toInSql(oidCodeclassifyDOMap.keySet().toArray(new String[0])) +")");
+					sb.append(" and Lcstatus in (" + VciBaseUtil.toInSql(statusList.toArray(new String[]{})) +")");
+					List<Map<String,String>>  newDataList= commonsMapper.queryByOnlySqlForMap(sb.toString());
+					List<ClientBusinessObject>clientBusinessObjects=new ArrayList<>();
+					newDataList.stream().forEach(stringStringMap -> {
+						ClientBusinessObject clientBusinessObject=new ClientBusinessObject();
+						DefaultAttrAssimtUtil.copplyDefaultAttrAssimt(stringStringMap,clientBusinessObject);
+						clientBusinessObjects.add(clientBusinessObject);
+					});
+
+					List<com.vci.ubcs.code.vo.webserviceModel.data.DataObjectVO> dataObjectVOS=new ArrayList<>();
+					if(!CollectionUtils.isEmpty(clientBusinessObjects)){
+						CodeClassifyTemplateVO templateVO = engineService.getUsedTemplateByClassifyOid(currentCodeClassify[0].getOid());
+						Map<String, CodeClassifyTemplateAttrVO> filedAttributeMap = templateVO.getAttributes().stream().filter(attribute -> attribute != null && StringUtils.isNotBlank(attribute.getId())).collect(Collectors.toList()).stream().collect(Collectors.toMap(s -> s.getId(), t -> t));
+
+						clientBusinessObjects.stream().forEach(cbo -> {
+							com.vci.ubcs.code.vo.webserviceModel.data.DataObjectVO dataObjectVO=new com.vci.ubcs.code.vo.webserviceModel.data.DataObjectVO();
+							dataObjectVO.setCode(cbo.getId());
+							dataObjectVO.setStatus(cbo.getLcStatus());
+							String codeclsfid=cbo.getAttributeValue("codeclsfid");
+							if(oidCodeclassifyDOMap.containsKey(codeclsfid)){
+								CodeClassifyVO codeClassifyVO=  oidCodeclassifyDOMap.get(codeclsfid);
+								dataObjectVO.setClassCode(codeClassifyVO.getId());
+							}
+							dataObjectVO.setLibrary(library);
+							String [] newQueryFileds=queryFileds.split(",");
+							List<PropertyVO> propertyVOList=new ArrayList<>();
+							for(String filed:newQueryFileds){
+								String value=cbo.getAttributeValue(filed);
+								if(filedAttributeMap.containsKey(filed)){
+									CodeClassifyTemplateAttrVO attrVO=  filedAttributeMap.get(filed);
+									PropertyVO propertyVO=new PropertyVO();
+									propertyVO.setFiledName(filed);
+									propertyVO.setFiledValue(value);
+									propertyVO.setOutname(attrVO.getName());
+									propertyVOList.add(propertyVO);
+								}
+							}
+							dataObjectVO.setPro(propertyVOList);
+							dataObjectVOS.add(dataObjectVO);
+						});
+						resultDataVO.setObject(dataObjectVOS);
+					}
+				}else{
+					errorid = "101";
+					msg = "鎺ュ彛鍙傛暟锛歝lassCode 鏈煡璇㈠埌瀵瑰簲鐨勫垎绫讳俊鎭�";
+					throw new Throwable(msg);
+				}
+			}else{
+				errorid = "101";
+				msg = "鎺ュ彛鍙傛暟锛歭ibrary 鏈煡璇㈠埌瀵瑰簲鐨勫簱鑺傜偣淇℃伅";
+			}
+			errorid = "0";
+			msg = "鏁版嵁鏌ヨ鎴愬姛";
+		}catch (Throwable e){
+			e.printStackTrace();;
+			msg="鏌ヨ鏁版嵁澶辫触:"+e.getMessage();
+		}finally {
+			resultDataVO.setErrorid(errorid);
+			resultDataVO.setMsg(msg);
+		}
+		ResultVO resultVO=new ResultVO();
+		resultVO.setData(resultDataVO);
+		if(dataType.equals("xml")){
+			//缁勭粐杩斿洖鎺ュ彛淇℃伅
+			XStream xStream = new XStream(new DomDriver());
+			xStream.processAnnotations(XMLResultSystemVO.class);
+			xStream.autodetectAnnotations(true);
+			resultStr = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" + xStream.toXML(resultDataVO);
+		}else{
+			Object object = JSONObject.toJSON(resultVO);
+			resultStr = object.toString();
+		}
+		try {    //璁板綍鏃ュ織
+			this.saveLogs(systemId, systemId, data, resultStr, issucess, msg, "queryClassify");
+		}catch (Throwable e){
+			e.printStackTrace();
+		}
+		log.info("杩斿洖鍙傛暟:"+resultStr);
+		return resultStr;
 	}
+
+
 
 	@Override
 	public String queryClassifyRule(String data, String dataType) throws Throwable {
@@ -521,18 +872,32 @@
 		}
 		return classifyVO;
 	}
+
+	private List<ClientBusinessObject> ChangeMapTOClientBusinessObjects(List<Map<String,String>> oldDataMap){
+		List<ClientBusinessObject> clientBusinessObjectList=new CopyOnWriteArrayList<>();
+		oldDataMap.parallelStream().forEach(dataMap->{
+			ClientBusinessObject clientBusinessObject=new ClientBusinessObject();
+			DefaultAttrAssimtUtil.copplyDefaultAttrAssimt(dataMap,clientBusinessObject);
+			dataMap.forEach((key,value)->{
+				clientBusinessObject.setAttributeValue(key,value);
+			});
+		});
+		return clientBusinessObjectList;
+	}
 	/***
 	 * 鏍规嵁绌垮叆鐨勫弬鏁颁俊鎭牎楠岀爜娈佃鍒�
 	 */
-	private List<CodeOrderSecDTO> getRuleCodeOrderSecDTOs(List<SectionVO> SectionVOList,CodeRuleVO ruleVO) throws Throwable{
+	private List<CodeOrderSecDTO> getRuleCodeOrderSecDTOs(List<SectionVO> SectionVOList,CodeRuleVO ruleVO,CodeClassifyFullInfoBO classifyFullInfo) throws Throwable{
 		List<CodeBasicSecVO>  codeBasicSecVOS= ruleVO.getSecVOList();
 		Map<String,String> sectionVOMap=new HashMap<>();
 		SectionVOList.stream().forEach(SectionVO->{
 			sectionVOMap.put(SectionVO.getName(),SectionVO.getValue());
 		});
+		Map<String,CodeClassifyVO> codeClassifyVOMap= classifyFullInfo.getParentClassifyVOs().stream().collect(Collectors.toMap(s -> s.getId(), t -> t,(o1, o2)->o2));
 		List<CodeOrderSecDTO> codeOrderSecDTOList=new ArrayList<>();
 		for(CodeBasicSecVO codeBasicSecVO: codeBasicSecVOS) {
 			String sectype = codeBasicSecVO.getSecType();
+			String classifySecOid= codeBasicSecVO.getOid();
 			if (!sectype.equals(CodeSecTypeEnum.CODE_SERIAL_SEC.getValue())) {
 				String name = codeBasicSecVO.getName();
 				String sectypeText = codeBasicSecVO.getSecTypeText();
@@ -543,6 +908,22 @@
 					CodeOrderSecDTO.setSecOid(codeBasicSecVO.getOid());
 					String sectypeValue = sectionVOMap.get(name);
 					log.info("鐮佹鍊�:"+sectypeValue);
+					CodeSecTypeEnum secType = CodeSecTypeEnum.forValue(sectype);
+					if(CODE_CLASSIFY_SEC.equals(secType)) {//濡傛灉鏄垎绫荤殑璇濓紝鍒欓渶瑕佸尮閰嶄紶杩囨潵鐨勫垎绫讳唬鍙蜂笌
+						//鍏堢畝绉版槸鍚︽湁鍏宠仈妯℃澘锛屾湁妯℃澘瑕佸厛鍒犻櫎
+						List<CodeClassifyValue> codeClassifyValueDOList = codeClassifyValueService.list(Wrappers.<CodeClassifyValue>query().lambda().eq(CodeClassifyValue::getCodeClassifySecOid,classifySecOid));
+
+						if (!CollectionUtils.isEmpty(codeClassifyValueDOList)) {
+							Map<String, CodeClassifyValue> codeClassifyValueDOMap = codeClassifyValueDOList.stream().collect(Collectors.toMap(s -> s.getId(), t -> t, (o1, o2) -> o2));
+							if(codeClassifyValueDOMap.containsKey(sectypeValue)){
+								CodeClassifyValue codeClassifyValue=   codeClassifyValueDOMap.get(sectypeValue);
+								sectypeValue=codeClassifyValue.getOid();
+							}else {
+								objerrorCode = "101";
+								throw new Throwable("浼犲叆鐨勫垎绫荤爜娈碉細銆�" + name + " 鍊硷細" + sectypeValue + "銆戯紝涓嶇鍚堝綋鍓嶅垎绫诲眰绾т唬鍙�");
+							}
+						}
+					}
 					CodeOrderSecDTO.setSecValue(sectypeValue);
 					codeOrderSecDTOList.add(CodeOrderSecDTO);
 				} else {
@@ -563,17 +944,24 @@
 		Map<String, String> attrMapConfigMap=new HashMap<>();
 		Map<String, String> propMaps=new HashMap<>();
 		try {
+			log.info("寮�濮嬭鍙栫郴缁熼厤缃枃浠� start");
 			Map<String, String> stringStringMap=attributeMapConfig.getSystem_attrmap();
+			log.info("闆嗘垚绯荤粺灞炴�ф槧灏勯厤缃枃浠舵潯鐩暟-銆�"+stringStringMap.size());
 			//stringStringMap.put("RLM","D:\\RLM.xml");
-			LibraryDO libraryDO= gennerAttrMapUtil.getNewInstance().gennerAttrMapBySystem(systemId,stringStringMap);
+			LibraryDO libraryDO=gennerAttrMapUtil.getNewInstance().gennerAttrMapBySystem(systemId,stringStringMap);
 			List<LibraryClsfDO> libraryClsfDOList=libraryDO.getClsf();
 			Map<String, List<ClsfAttrMappingDO>> libPropMaps = libraryClsfDOList.stream().collect(Collectors.toMap(LibraryClsfDO::getLibrary, LibraryClsfDO::getProp, (key1, key2) -> key2));
+			log.info("鏍规嵁鍙傛暟锛歭ibray锛�-銆�"+libray+"浠庨厤缃枃浠朵腑鎵惧搴斿睘鎬ф槧灏勯厤缃�");
 			if(libPropMaps.containsKey(libray)){
+				log.info("鏍规嵁鍙傛暟锛歭ibray锛�-銆�"+libray+"鍖归厤鍒扮浉搴旂殑灞炴�ф槧灏勪俊鎭�");
 				List<ClsfAttrMappingDO> clsfAttrMappingDOList=libPropMaps.get(libray);
 				propMaps = clsfAttrMappingDOList.stream().collect(Collectors.toMap(ClsfAttrMappingDO::getSourceKey, ClsfAttrMappingDO::getTargetKey, (key1, key2) -> key2));
+				log.info("鏍规嵁鍙傛暟锛歭ibray锛�-銆�"+libray+"鍖归厤鍒扮浉搴旂殑灞炴�ф槧灏勪俊鎭�,灞炴�ф槧灏勬潯鐩暟+"+clsfAttrMappingDOList.size());
 			}
+			log.info("鏍规嵁鍙傛暟锛歭ibray锛�-銆�"+libray+"浠庨厤缃枃浠朵腑鎵惧搴斿睘鎬ф槧灏勯厤缃� end ");
 		}catch (Throwable e){
 			objerrorCode="1";
+			e.printStackTrace();
 			throw new Throwable("MDM闆嗘垚灞炴�ч厤缃枃浠惰鍙栧け璐�");
 		}
 		LinkedList<String> rowNameList=new LinkedList<>();
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/DockingTaskWrapper.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/DockingTaskWrapper.java
new file mode 100644
index 0000000..377a698
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/DockingTaskWrapper.java
@@ -0,0 +1,66 @@
+package com.vci.ubcs.code.wrapper;
+
+import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
+import com.vci.ubcs.code.entity.DockingTask;
+import com.vci.ubcs.code.vo.pagemodel.DockingTaskVO;
+import org.springblade.core.mp.support.BaseEntityWrapper;
+import org.springblade.core.tool.utils.BeanUtil;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import java.util.Objects;
+
+public class DockingTaskWrapper extends BaseEntityWrapper<DockingTask, DockingTaskVO> {
+	public static DockingSystemWrapper build() {
+		return new DockingSystemWrapper();
+	}
+	@Override
+	public DockingTaskVO entityVO(DockingTask entity) {
+		DockingTaskVO vo = Objects.requireNonNull(BeanUtil.copy(entity, DockingTaskVO.class));
+		return vo;
+	}
+
+
+	/***
+	 * 鏁扮粍瀵硅薄杞崲
+	 * @param entitys
+	 * @return
+	 */
+	public List<DockingTaskVO> entityVOs(Collection<DockingTask> entitys) {
+		if(CollectionUtils.isEmpty(entitys)) {return new ArrayList<>();}
+		List<DockingTaskVO> vos=new ArrayList<>();
+		if(!CollectionUtils.isEmpty(entitys)) {
+			entitys.stream().forEach(vo -> {
+				vos.add(entityVO(vo));
+			});
+		}
+		return vos;
+	}
+
+	/***
+	 * 鏁扮粍瀵硅薄杞崲
+	 * @param vos
+	 * @return
+	 */
+	public List<DockingTask> voentitys(Collection<DockingTaskVO> vos) {
+		if(CollectionUtils.isEmpty(vos)) {return new ArrayList<>();}
+		List<DockingTask>entitys =new ArrayList<>();
+		if(!CollectionUtils.isEmpty(vos)) {
+			vos.stream().forEach(entity -> {
+				entitys.add(voentity(entity));
+			});
+		}
+		return entitys;
+	}
+
+	/***
+	 * 鏁扮粍瀵硅薄杞崲
+	 * @param vo
+	 * @return
+	 */
+	public DockingTask voentity( DockingTaskVO vo) {
+		DockingTask entity = Objects.requireNonNull(BeanUtil.copy(vo, DockingTask.class));
+		return entity;
+	}
+}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/DockingTaskMapper.xml b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/DockingTaskMapper.xml
new file mode 100644
index 0000000..675e7a7
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/DockingTaskMapper.xml
@@ -0,0 +1,48 @@
+<?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.vci.ubcs.code.mapper.DockingTaskMapper">
+    <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
+    <resultMap id="plDockingLogResultMap" type="com.vci.ubcs.code.entity.DockingTask">
+        <result column="OID" property="oid"/>
+        <result column="REVISIONOID" property="revisionOid"/>
+        <result column="NAMEOID" property="nameOid"/>
+        <result column="BTMNAME" property="btmname"/>
+        <result column="LASTR" property="lastR"/>
+        <result column="FIRSTR" property="firstR"/>
+        <result column="LASTV" property="lastV"/>
+        <result column="FIRSTV" property="firstV"/>
+        <result column="CREATOR" property="creator"/>
+        <result column="CREATETIME" property="createTime"/>
+        <result column="LASTMODIFIER" property="lastModifier"/>
+        <result column="LASTMODIFYTIME" property="lastModifyTime"/>
+        <result column="REVISIONRULE" property="revisionRule"/>
+        <result column="VERSIONRULE" property="versionRule"/>
+        <result column="REVISIONSEQ" property="revisionSeq"/>
+        <result column="REVISIONVALUE" property="revisionValue"/>
+        <result column="VERSIONSEQ" property="versionSeq"/>
+        <result column="VERSIONVALUE" property="versionValue"/>
+        <result column="LCTID" property="lctid"/>
+        <result column="LCSTATUS" property="lcStatus"/>
+        <result column="TS" property="ts"/>
+        <result column="ID" property="id"/>
+        <result column="NAME" property="name"/>
+        <result column="DESCRIPTION" property="description"/>
+        <result column="OWNER" property="owner"/>
+        <result column="COPYFROMVERSION" property="copyFromVersion"/>
+        <result column="SYSINFOOID" property="sysInfoOid"/>
+        <result column="SYSTEMOID" property="systemOid"/>
+        <result column="SYSINFOOID" property="sysInfoOid"/>
+        <result column="SYSTEMCODE" property="systemCode"/>
+        <result column="SYSTEMNAME" property="systemName"/>
+        <result column="CLASSIFYOID" property="classifyOid"/>
+        <result column="CLASSIFYID" property="classifyId"/>
+        <result column="CLASSIFYNAME" property="classifyName"/>
+        <result column="BTMOID" property="btmOid"/>
+        <result column="BTMID" property="btmId"/>
+        <result column="UNIQUECODE" property="uniqueCode"/>
+        <result column="SENDTYPE" property="sendType"/>
+        <result column="SENDFLAG" property="sendFlag"/>
+        <result column="DATAOID" property="dataOid"/>
+
+    </resultMap>
+</mapper>

--
Gitblit v1.9.3