| | |
| | | public void downLoadDataBase(@RequestBody PartnerDockingInfo partnerDockingInfo, HttpServletResponse response) { |
| | | String dbSql = partnerDockingInfoService.createSQL(partnerDockingInfo); |
| | | |
| | | if ((dbSql == null) ||(dbSql.isEmpty())) { |
| | | log.error("创建私有云数据库脚本出错!"); |
| | | } else { |
| | | |
| | | OutputStream out = null; |
| | | InputStream fileInputStream = null; |
| | | try { |
| | |
| | | response.setContentType("application/x-msdownload"); |
| | | response.addHeader("Content-Length", "" + arr.length); |
| | | response.addHeader("Content-Disposition", "attachment; filename=\"" + partnerDockingInfo.getHospitalName()+partnerDockingInfo.getDepartmentName() + ".sql\""); |
| | | |
| | | |
| | | |
| | | out = response.getOutputStream(); |
| | |
| | | } |
| | | } |
| | | } |
| | | } |