From 71ae352be9c09e8d7019a0bc3a6dc5e1a1d6e350 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Sun, 22 Aug 2021 14:16:47 +0800
Subject: [PATCH] 1.ftp
---
src/main/java/org/springblade/modules/information/controller/InformationController.java | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/src/main/java/org/springblade/modules/information/controller/InformationController.java b/src/main/java/org/springblade/modules/information/controller/InformationController.java
index a63b1bd..bde8cda 100644
--- a/src/main/java/org/springblade/modules/information/controller/InformationController.java
+++ b/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);
--
Gitblit v1.9.3