智慧保安后台管理-外网-验收版本
tangzy
2021-12-06 cc057177b2fb17aee9a173a6adbabdc578fd74c7
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,11 +99,17 @@
      }
   }
   /**
    * 删除本地文件
    */
   public  static  void delete(){
      File file = new File("D:\\anbao\\sql.json");
//   /**
//    * 删除本地文件
//    */
//   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(localPath+fileName);
      if (file.isFile() && file.exists()) {
         file.delete();
      }