From bf93d530532a5910dae6676d23e13aed607baef9 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 23 Aug 2021 08:40:26 +0800
Subject: [PATCH] 数据同步修改
---
src/main/java/org/springblade/modules/FTP/MysqlCenlint.java | 29 ++++++++++++++++-------------
1 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/src/main/java/org/springblade/modules/FTP/MysqlCenlint.java b/src/main/java/org/springblade/modules/FTP/MysqlCenlint.java
index 2d5c09f..5d58fd8 100644
--- a/src/main/java/org/springblade/modules/FTP/MysqlCenlint.java
+++ b/src/main/java/org/springblade/modules/FTP/MysqlCenlint.java
@@ -7,6 +7,9 @@
import java.sql.PreparedStatement;
import java.sql.SQLException;
+import static org.springblade.common.constant.FtpConstant.localPath;
+import static org.springblade.common.constant.FtpConstant.sql_connect_dev;
+
public class MysqlCenlint {
/**
@@ -18,7 +21,7 @@
int ColumnCount;
//int RowCount;
String driver = "com.mysql.jdbc.Driver";
- String url = "jdbc:mysql://223.82.109.183:2083/zhba"; //换成要连接的数据库信息
+ String url = sql_connect_dev; //换成要连接的数据库信息
String user = "root";
String password = "zhba0728";
Class.forName ( driver );
@@ -47,7 +50,7 @@
int ColumnCount;
//int RowCount;
String driver = "com.mysql.jdbc.Driver";
- String url = "jdbc:mysql://223.82.109.183:2083/zhba"; //换成要连接的数据库信息
+ String url = sql_connect_dev; //换成要连接的数据库信息
String user = "root";
String password = "zhba0728";
Class.forName ( driver );
@@ -76,7 +79,7 @@
int ColumnCount;
//int RowCount;
String driver = "com.mysql.jdbc.Driver";
- String url = "jdbc:mysql://223.82.109.183:2083/zhba"; //换成要连接的数据库信息
+ String url = sql_connect_dev; //换成要连接的数据库信息
String user = "root";
String password = "zhba0728";
Class.forName ( driver );
@@ -96,17 +99,17 @@
}
}
- /**
- * 删除本地文件
- */
- public static void deletes(String fileName){
- File file = new File("D:\\"+fileName);
- if (file.isFile() && file.exists()) {
- file.delete();
- }
- }
+// /**
+// * 删除本地文件
+// */
+// public static void deletes(String fileName){
+// File file = new File("D:\\"+fileName);
+// if (file.isFile() && file.exists()) {
+// file.delete();
+// }
+// }
public static void deletess(String fileName){
- File file = new File("D:\\anbao\\"+fileName);
+ File file = new File(localPath+fileName);
if (file.isFile() && file.exists()) {
file.delete();
}
--
Gitblit v1.9.3