| | |
| | | + "'" + 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); |