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

diff --git a/src/main/java/org/springblade/modules/accreditation/controller/AccreditationRecordsController.java b/src/main/java/org/springblade/modules/accreditation/controller/AccreditationRecordsController.java
index 9a2010d..9b6f5e7 100644
--- a/src/main/java/org/springblade/modules/accreditation/controller/AccreditationRecordsController.java
+++ b/src/main/java/org/springblade/modules/accreditation/controller/AccreditationRecordsController.java
@@ -103,7 +103,7 @@
 			",update_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(user.getUpdateTime()) + "'" +
 			" " + "where id = " + "'" + user.getId() + "'";
 		//FtpUtil.sqlFileUpload(s);
-		myAsyncService.FTP(s);
+		myAsyncService.dataSync(s);
 		return R.data(save);
 	}
 
@@ -159,7 +159,7 @@
 						",update_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(user.getUpdateTime()) + "" +
 						"where id = " + "'" + user.getId() + "'";
 				//FtpUtil.sqlFileUpload(s);
-				myAsyncService.FTP(s);
+				myAsyncService.dataSync(s);
 			}else {
 				//内网同步
 				String s =
@@ -169,7 +169,7 @@
 						",audit_user = " + accreditationRecords.getAuditUser() + " " +
 						"where id = " + "'" + accreditationRecords.getId() + "'";
 				//FtpUtil.sqlFileUpload(s);
-				myAsyncService.FTP(s);
+				myAsyncService.dataSync(s);
 			}
 		}else {
 			//内网同步
@@ -180,7 +180,7 @@
 					",audit_user = " + accreditationRecords.getAuditUser() + " " +
 					"where id = " + "'" + accreditationRecords.getId() + "'";
 			//FtpUtil.sqlFileUpload(s);
-			myAsyncService.FTP(s);
+			myAsyncService.dataSync(s);
 		}
 		//返回
 		return R.status(b);
@@ -223,7 +223,7 @@
 							",update_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(user.getUpdateTime()) + "" +
 							"where id = " + "'" + user.getId() + "'";
 					//FtpUtil.sqlFileUpload(s);
-					myAsyncService.FTP(s);
+					myAsyncService.dataSync(s);
 				}else {
 					//内网同步
 					String s =
@@ -233,7 +233,7 @@
 							",audit_user = " + accreditationRecords.getAuditUser() + " " +
 							"where id = " + "'" + accreditationRecords.getId() + "'";
 					//FtpUtil.sqlFileUpload(s);
-					myAsyncService.FTP(s);
+					myAsyncService.dataSync(s);
 				}
 			}else {
 				//内网同步
@@ -244,7 +244,7 @@
 						",audit_user = " + accreditationRecords.getAuditUser() + " " +
 						"where id = " + "'" + accreditationRecords.getId() + "'";
 				//FtpUtil.sqlFileUpload(s);
-				myAsyncService.FTP(s);
+				myAsyncService.dataSync(s);
 			}
 		});
 		//返回

--
Gitblit v1.9.3