From a491941cece9a90d72c9c6b0aab0e718e39dbd3c Mon Sep 17 00:00:00 2001
From: zhongrj <123456>
Date: Mon, 22 Aug 2022 15:54:22 +0800
Subject: [PATCH] 从业记录新增同步sql 修改,用户新增审查逻辑修改,外网部门只更新状态,不更新审查明细,内网状态和明细都更新
---
src/main/java/org/springblade/modules/location/controller/LiveLocationController.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/main/java/org/springblade/modules/location/controller/LiveLocationController.java b/src/main/java/org/springblade/modules/location/controller/LiveLocationController.java
index ed464e9..543a4a6 100644
--- a/src/main/java/org/springblade/modules/location/controller/LiveLocationController.java
+++ b/src/main/java/org/springblade/modules/location/controller/LiveLocationController.java
@@ -90,7 +90,7 @@
"'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(liveLocation.getRecordTime()) + "'" + "," +
"'" + liveLocation.getLocation() + "'" + ")";
//FtpUtil.sqlFileUpload(s1);
- myAsyncService.FTP(s1);
+ myAsyncService.dataSync(s1);
}
} else {
//更新
@@ -109,7 +109,7 @@
",location = " + "'" + liveLocation.getLocation() + "'" +
" " + "where id = " + "'" + liveLocation.getId() + "'";
//FtpUtil.sqlFileUpload(s1);
- myAsyncService.FTP(s1);
+ myAsyncService.dataSync(s1);
}
}
@@ -138,7 +138,7 @@
"'" + locus.getLongitude() + "'" + "," +
"'" + locus.getLatitude() + "'" + ")";
//FtpUtil.sqlFileUpload(s2);
- myAsyncService.FTP(s2);
+ myAsyncService.dataSync(s2);
if (save1) {
//返回数据
@@ -184,7 +184,7 @@
"'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(liveLocation.getRecordTime()) + "'" + "," +
"'" + liveLocation.getLocation() + "'" + ")";
//FtpUtil.sqlFileUpload(s1);
- myAsyncService.FTP(s1);
+ myAsyncService.dataSync(s1);
}
} else {
//更新
@@ -203,7 +203,7 @@
",location = " + "'" + liveLocation.getLocation() + "'" +
" " + "where id = " + "'" + liveLocation.getId() + "'";
//FtpUtil.sqlFileUpload(s1);
- myAsyncService.FTP(s1);
+ myAsyncService.dataSync(s1);
}
}
@@ -231,7 +231,7 @@
"'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(locus.getRecordTime()) + "'" + "," +
"'" + locus.getLongitude() + "'" + "," +
"'" + locus.getLatitude() + "'" + ")";
- myAsyncService.FTP(s2);
+ myAsyncService.dataSync(s2);
//FtpUtil.sqlFileUpload(s2);
if (save1) {
--
Gitblit v1.9.3