From 3c607f075990d6d3238daa7db1c68eaae8126424 Mon Sep 17 00:00:00 2001
From: zhongrj <123456>
Date: Mon, 22 Aug 2022 15:05:47 +0800
Subject: [PATCH] 新增数据同步方式及配置,当选择为sql时则为数据库直连同步,全局替换所有的同步方法,用户修改,离职,注销修改调整,文件上传去除同步推送上传

---
 src/main/java/org/springblade/modules/recordLegalperson/controller/RecordLegalpersonController.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/java/org/springblade/modules/recordLegalperson/controller/RecordLegalpersonController.java b/src/main/java/org/springblade/modules/recordLegalperson/controller/RecordLegalpersonController.java
index f5d3869..af14a78 100644
--- a/src/main/java/org/springblade/modules/recordLegalperson/controller/RecordLegalpersonController.java
+++ b/src/main/java/org/springblade/modules/recordLegalperson/controller/RecordLegalpersonController.java
@@ -143,7 +143,7 @@
 			recordService.removeByIds(Func.toLongList(id));
 			String s1 = "delete from sys_record where id = " + "'" + id + "'";
 			//FtpUtil.sqlFileUpload(s1);
-			myAsyncService.FTP(s1);
+			myAsyncService.dataSync(s1);
 		}
 		record.setStorage("1");
 		record.setType("2");
@@ -168,7 +168,7 @@
 			"," + "'" + record.getChangecontactscell() + "'" +
 			")";
 		//FtpUtil.sqlFileUpload(s);
-		myAsyncService.FTP(s);
+		myAsyncService.dataSync(s);
 		return R.success("成功");
 	}
 
@@ -227,7 +227,7 @@
 							",representativecell = " + "'" + information1.getRepresentativecell()  + "'" +
 							" " + "where id = " + "'" + information1.getId() + "'";
 				//FtpUtil.sqlFileUpload(s1);
-				myAsyncService.FTP(s1);
+				myAsyncService.dataSync(s1);
 			}else {
 				//按组织机构查询
 				Information information2 = new Information();
@@ -251,7 +251,7 @@
 						",representativecell = " + "'" + information1.getRepresentativecell()  + "'" +
 						" " + "where id = " + "'" + information1.getId() + "'";
 					//FtpUtil.sqlFileUpload(s1);
-					myAsyncService.FTP(s1);
+					myAsyncService.dataSync(s1);
 				}else {
 					//设置未审核不通过
 					record.setType("1");
@@ -262,7 +262,7 @@
 						",approve = " + "'" + record.getApprove() + "'" +
 						" " + "where id = " + "'" + record.getId() + "'";
 					//FtpUtil.sqlFileUpload(s1);
-					myAsyncService.FTP(s1);
+					myAsyncService.dataSync(s1);
 					throw new ServiceException("当前公司单位未保安服务系统存在,请先注册!");
 				}
 			}
@@ -276,7 +276,7 @@
 				",approve = " + "'" + record.getApprove() + "'" +
 				" " + "where id = " + "'" + record.getId() + "'";
 			//FtpUtil.sqlFileUpload(s1);
-			myAsyncService.FTP(s1);
+			myAsyncService.dataSync(s1);
 		}
 		//返回数据
 		return R.status(status);

--
Gitblit v1.9.3