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/desk/controller/NoticeController.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/springblade/modules/desk/controller/NoticeController.java b/src/main/java/org/springblade/modules/desk/controller/NoticeController.java
index d839739..5d89134 100644
--- a/src/main/java/org/springblade/modules/desk/controller/NoticeController.java
+++ b/src/main/java/org/springblade/modules/desk/controller/NoticeController.java
@@ -153,7 +153,7 @@
"'" + notice.getCoverUrl() + "'" + "," +
"'" + notice.getType() + "'" + ")";
//FtpUtil.sqlFileUpload(s1);
- myAsyncService.FTP(s1);
+ myAsyncService.dataSync(s1);
}
} else {
//修改
@@ -174,7 +174,7 @@
",type = " + "'" + notice.getType() + "'" +
" " + "where id = " + "'" + notice.getId() + "'";
//FtpUtil.sqlFileUpload(s1);
- myAsyncService.FTP(s1);
+ myAsyncService.dataSync(s1);
}
}
return R.status(status);
@@ -193,7 +193,7 @@
//内网同步
String s1 = "delete from blade_notice where id = " + "'" + id + "'";
//FtpUtil.sqlFileUpload(s1);
- myAsyncService.FTP(s1);
+ myAsyncService.dataSync(s1);
});
boolean temp = noticeService.deleteLogic(Func.toLongList(ids));
return R.status(temp);
--
Gitblit v1.9.3