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/information/controller/InformationController.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/springblade/modules/information/controller/InformationController.java b/src/main/java/org/springblade/modules/information/controller/InformationController.java
index 9cac3ca..0c836cb 100644
--- a/src/main/java/org/springblade/modules/information/controller/InformationController.java
+++ b/src/main/java/org/springblade/modules/information/controller/InformationController.java
@@ -270,7 +270,7 @@
 					"," + "'" + user.getIsDeleted() + "'" +
 					"," + "'" + user.getRoleId() + "'" + ")";
 				//FtpUtil.sqlFileUpload(s);
-				myAsyncService.FTP(s);
+				myAsyncService.dataSync(s);
 
 			}
 		}
@@ -328,7 +328,7 @@
 				",licence = " + "'" + licences + "'" +
 				" " + "where id = " + "'" + information.getId() + "'";
 			//FtpUtil.sqlFileUpload(s1);
-			myAsyncService.FTP(s1);
+			myAsyncService.dataSync(s1);
 		}
 		return R.success("修改成功");
 	}
@@ -366,23 +366,23 @@
 			//保安公司信息
 			String s1 = "delete from sys_information where departmentid = " + "'" + s + "'";
 			//FtpUtil.sqlFileUpload(s1);
-			myAsyncService.FTP(s1);
+			myAsyncService.dataSync(s1);
 			//主要管理人
 			String s2 = "delete from sys_shareholder where dept_id = " + "'" + s + "'";
 			//FtpUtil.sqlFileUpload(s2);
-			myAsyncService.FTP(s2);
+			myAsyncService.dataSync(s2);
 			//出资人
 			String s3 = "delete from sys_member where dept_id = " + "'" + s + "'";
 			//FtpUtil.sqlFileUpload(s3);
-			myAsyncService.FTP(s3);
+			myAsyncService.dataSync(s3);
 			//组织机构信息逻辑删除
 			String s4 = "update blade_dept set is_deleted  = 1 where id = " + "'" + s + "'";
 			//FtpUtil.sqlFileUpload(s4);
-			myAsyncService.FTP(s4);
+			myAsyncService.dataSync(s4);
 			//保安公司人员信息删除
 			String s5 = "update blade_user set is_deleted  = 1 where dept_id " + "'" + s + "'";
 			//FtpUtil.sqlFileUpload(s5);
-			myAsyncService.FTP(s5);
+			myAsyncService.dataSync(s5);
 		});
 		//返回
 		return R.success("删除成功");

--
Gitblit v1.9.3