Administrator
2022-06-06 b6820f509709e4499ceffec0664959027e7df37f
src/main/java/org/springblade/modules/FTP/FtpUtil.java
@@ -350,15 +350,15 @@
   public static void sqlFileUpload(String obj){
      String json1 = JSON.toJSONString(obj);
      String response1 = String.valueOf((new Date()).getTime());
      OutJson.createJsonFile(json1, localPath, "nsql"+response1);
      OutJson.createJsonFile(json1, localPath, "nq"+response1);
      FileInputStream in1 = null;
      try {
         in1 = new FileInputStream(new File(localPath + "nsql"+response1+".json"));
         in1 = new FileInputStream(new File(localPath + "nq"+response1+".json"));
      } catch (FileNotFoundException e) {
         e.printStackTrace();
      }
      FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserNameOut, ftpPasswordOut, ftpPath, "/",  "nsql"+response1+".json", in1);
      MysqlCenlint.deletess("nsql"+response1+".json");
      FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserNameOut, ftpPasswordOut, ftpPath, "/",  "nq"+response1+".json", in1);
      MysqlCenlint.deletess("nq"+response1+".json");
   }
   /**
@@ -368,16 +368,16 @@
   public static void objectFileUpload(Object obj){
      String json1 = JSON.toJSONString(obj);
      String response1 = String.valueOf((new Date()).getTime());
      OutJson.createJsonFile(json1, localPath, "n"+response1);
      OutJson.createJsonFile(json1, localPath, "ni"+response1);
      FileInputStream in1 = null;
      try {
         in1 = new FileInputStream(new File(localPath + "n"+response1+".json"));
         in1 = new FileInputStream(new File(localPath + "ni"+response1+".json"));
      } catch (FileNotFoundException e) {
         e.printStackTrace();
      }
      FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserNameOut, ftpPasswordOut, ftpPath, "/",  "n"+response1+".json", in1);
      FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserNameOut, ftpPasswordOut, ftpPath, "/",  "ni"+response1+".json", in1);
      System.out.println("用户新增,向外网推送数据结束.................");
      MysqlCenlint.deletess("n"+response1+".json");
      MysqlCenlint.deletess("ni"+response1+".json");
   }
@@ -419,7 +419,7 @@
   /**
    * 向外网发送保安员证编号位数数据
    * @param map1
    * @param obj
    */
   public static void objectFileUploadSecurityNumberCount(Object obj){
      String json1 = JSON.toJSONString(obj);