| | |
| | | FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserNameOut, ftpPasswordOut, ftpPath, "/", "ns"+response1+".json", in1); |
| | | MysqlCenlint.deletess("ns"+response1+".json"); |
| | | } |
| | | |
| | | /** |
| | | * 管理员新增保安员并生成保安员证编号 |
| | | * @param obj |
| | | */ |
| | | public static void objectFileUploadPaperList(Object obj) { |
| | | String json1 = JSON.toJSONString(obj); |
| | | String response1 = String.valueOf((new Date()).getTime()); |
| | | OutJson.createJsonFile(json1, localPath, "np"+response1); |
| | | FileInputStream in1 = null; |
| | | try { |
| | | in1 = new FileInputStream(new File(localPath + "np"+response1+".json")); |
| | | } catch (FileNotFoundException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserNameOut, ftpPasswordOut, ftpPath, "/", "np"+response1+".json", in1); |
| | | MysqlCenlint.deletess("np"+response1+".json"); |
| | | } |
| | | } |