| | |
| | | */ |
| | | public static void objectFileUploadListUserId(Map<String, Object> map){ |
| | | String json1 = JSON.toJSONString(map); |
| | | System.out.println("json1 = " + json1); |
| | | String response1 = String.valueOf((new Date()).getTime()); |
| | | OutJson.createJsonFile(json1, localPath, "t"+response1); |
| | | FileInputStream in1 = null; |
| | |
| | | FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserName, ftpPassword, ftpPath, "/", "t"+response1+".json", in1); |
| | | MysqlCenlint.deletess("t"+response1+".json"); |
| | | } |
| | | |
| | | /** |
| | | * 查询保安员证编号位数 |
| | | * @param map |
| | | */ |
| | | public static void getSecurityNumberBit(Map<String, Object> map) { |
| | | String json1 = JSON.toJSONString(map); |
| | | String response1 = String.valueOf((new Date()).getTime()); |
| | | OutJson.createJsonFile(json1, localPath, "s"+response1); |
| | | FileInputStream in1 = null; |
| | | try { |
| | | in1 = new FileInputStream(new File(localPath + "s"+response1+".json")); |
| | | } catch (FileNotFoundException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserName, ftpPassword, ftpPath, "/", "s"+response1+".json", in1); |
| | | MysqlCenlint.deletess("s"+response1+".json"); |
| | | } |
| | | } |