| | |
| | | FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserName, ftpPassword, ftpPath, "/", "nt"+response1+".json", in1); |
| | | MysqlCenlint.deletess("nt"+response1+".json"); |
| | | } |
| | | |
| | | /** |
| | | * 向外网发送保安员证编号位数数据 |
| | | * @param map1 |
| | | */ |
| | | public static void objectFileUploadSecurityNumberCount(Object obj){ |
| | | String json1 = JSON.toJSONString(obj); |
| | | String response1 = String.valueOf((new Date()).getTime()); |
| | | OutJson.createJsonFile(json1, localPath, "ns"+response1); |
| | | FileInputStream in1 = null; |
| | | try { |
| | | in1 = new FileInputStream(new File(localPath + "ns"+response1+".json")); |
| | | } catch (FileNotFoundException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserName, ftpPassword, ftpPath, "/", "ns"+response1+".json", in1); |
| | | MysqlCenlint.deletess("ns"+response1+".json"); |
| | | } |
| | | } |