| | |
| | | FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserName, ftpPassword, ftpPath, "/", "e"+response1+".json", in1); |
| | | MysqlCenlint.deletess("e"+response1+".json"); |
| | | } |
| | | |
| | | /** |
| | | * 管理员导入保安人员并创建保安证编号 |
| | | * @param map |
| | | */ |
| | | public static void getSecurityPaperAndUserImport(Map<String, Object> map) { |
| | | String json = JSON.toJSONString(map); |
| | | String response = String.valueOf((new Date()).getTime()); |
| | | OutJson.createJsonFile(json, localPath, "p"+response); |
| | | FileInputStream in = null; |
| | | try { |
| | | in = new FileInputStream(new File(localPath + "p"+response+".json")); |
| | | } catch (FileNotFoundException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserName, ftpPassword, ftpPath, "/", "p"+response+".json", in); |
| | | MysqlCenlint.deletess("p"+response+".json"); |
| | | } |
| | | } |