| | |
| | | import java.io.*; |
| | | import java.net.SocketException; |
| | | import java.util.Date; |
| | | import java.util.Map; |
| | | |
| | | import static org.springblade.common.config.FtpConfig.*; |
| | | |
| | | /** |
| | |
| | | MysqlCenlint.deletess("o"+response1+".json"); |
| | | } |
| | | |
| | | public static void objectFileUploadList(Map<String, Object> map) { |
| | | String json1 = JSON.toJSONString(map); |
| | | String response1 = String.valueOf((new Date()).getTime()); |
| | | OutJson.createJsonFile(json1, localPath, "ol"+response1); |
| | | FileInputStream in1 = null; |
| | | try { |
| | | in1 = new FileInputStream(new File(localPath + "ol"+response1+".json")); |
| | | } catch (FileNotFoundException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserName, ftpPassword, ftpPath, "/", "ol"+response1+".json", in1); |
| | | MysqlCenlint.deletess("ol"+response1+".json"); |
| | | } |
| | | } |