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/apply/service/impl/ApplyServiceImpl.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java b/src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java
index 18507d9..3449a4b 100644
--- a/src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java
+++ b/src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java
@@ -146,7 +146,7 @@
 						+"'" + apply1.getIsExam() + "'" + ");" +
 						"update blade_user set is_apply = " + "'" + user1.getIsApply() + "'" +"where id = " + "'" + user1.getId() + "'";
 					//FtpUtil.sqlFileUpload(s);
-					myAsyncService.FTP(s);
+					myAsyncService.dataSync(s);
 				}else {
 					if (user1.getIsApply()!=1) {
 						Apply apply1 = new Apply();
@@ -178,7 +178,7 @@
 							+"'" + apply1.getIsExam() + "'" + ");" +
 							"update blade_user set is_apply = " + "'" + user1.getIsApply() + "'" +"where id = " + "'" + user1.getId() + "'";
 						//FtpUtil.sqlFileUpload(s);
-						myAsyncService.FTP(s);
+						myAsyncService.dataSync(s);
 					}
 				}
 			}
@@ -471,7 +471,7 @@
 			String s1 =
 				"update sys_apply set is_exam = " + apply1.getIsExam() + " " +"where id = " + "'" + apply1.getId() + "'";
 			//FtpUtil.sqlFileUpload(s1);
-			myAsyncService.FTP(s1);
+			myAsyncService.dataSync(s1);
 		}
 		//模拟考
 		if (apply.getExamType()==2){
@@ -485,7 +485,7 @@
 			String s1 =
 				"update sys_training_registration set is_exam = " + trainingRegistration.getIsExam() + " " +"where id = " + "'" + trainingRegistration.getId() + "'";
 			//FtpUtil.sqlFileUpload(s1);
-			myAsyncService.FTP(s1);
+			myAsyncService.dataSync(s1);
 		}
 	}
 

--
Gitblit v1.9.3