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/record/controller/RecordController.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/org/springblade/modules/record/controller/RecordController.java b/src/main/java/org/springblade/modules/record/controller/RecordController.java
index 479004c..dc5f8eb 100644
--- a/src/main/java/org/springblade/modules/record/controller/RecordController.java
+++ b/src/main/java/org/springblade/modules/record/controller/RecordController.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");
@@ -160,7 +160,7 @@
"," + "'" + record.getStorage() + "'" +
"," + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(record.getOvertime()) + "'"
+ ")";
- myAsyncService.FTP(s);
+ myAsyncService.dataSync(s);
}
return R.success("成功");
}
@@ -281,7 +281,7 @@
"," + "'" + information.getContacts() + "'" +
"," + "'" + information.getContactscell() + "'" +
"," + "'" + information.getCreateUserId() + "'" + ")";
- myAsyncService.FTP(s);
+ myAsyncService.dataSync(s);
String ss = "insert into blade_dept(id,parent_id,tenant_id,dept_name,ancestors,dept_category,is_deleted) values(" + "'" + dept.getId() + "'" + "," + "'" + dept.getParentId() + "'" + ","
+ "'" + dept.getTenantId() + "'" +
"," + "'" + information.getEnterprisename() + "'" +
@@ -362,7 +362,7 @@
",stime = " + "'" + record.getStime() + "'" +
",xtime = " + "'" + record.getXtime() + "'" +
" " + "where id = " + "'" + record.getId() + "'";
- myAsyncService.FTP(s1);
+ myAsyncService.dataSync(s1);
} else {
String s1 = "update sys_record set type = " + "'" + record.getType() + "'" +
",papprove = " + "'" + record.getPapprove() + "'" +
@@ -375,7 +375,7 @@
",stime = " + "'" + record.getStime() + "'" +
",xtime = " + "'" + record.getXtime() + "'" +
" " + "where id = " + "'" + record.getId() + "'";
- myAsyncService.FTP(s1);
+ myAsyncService.dataSync(s1);
}
return R.status(recordService.saveOrUpdate(record));
}
--
Gitblit v1.9.3