Administrator
2021-08-22 55f5f479c21fd43cb4ab1217e31f2f2de25cd293
src/main/java/org/springblade/modules/information/controller/InformationController.java
@@ -199,14 +199,8 @@
         + "'" + dept.getTenantId() + "'" + "," + "'" + information.getEnterprisename() + "'" + "," + "'" + dept.getAncestors() + "'" + "," + "'" + dept.getDeptCategory() + "'" + ")";
      Object o = s;
      String json = JSON.toJSONString(o);
      long l = System.currentTimeMillis();
      //new日期对
      Date date = new Date(l);
      //转换提日期输出格式
      SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
      System.out.println(dateFormat.format(date));
      String response = dateFormat.format(date).replaceAll("[[\\s-:punct:]]", "");
      String response = String.valueOf((new Date()).getTime());
      OutJson.createJsonFile(json, "d:/", "w"+response);
      FileInputStream in = new FileInputStream(new File("D:\\" + "w"+response+".json"));
      FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserName, ftpPassword, "anbao/", "/",  "w"+response+".json", in);