|
|
|
@ -487,6 +487,24 @@ public class inHospitalController {
|
|
|
|
|
*/
|
|
|
|
|
@ResponseBody
|
|
|
|
|
@RequestMapping(value = "/getPdfById")
|
|
|
|
|
public String getPdfById(HttpServletResponse response, HttpServletRequest request, @Param("id") String idStr) throws Exception {
|
|
|
|
|
//组织分类id集合
|
|
|
|
|
if(StringUtils.isNotBlank(idStr)){
|
|
|
|
|
List<String> srcFileList = null;
|
|
|
|
|
try {
|
|
|
|
|
srcFileList = archiveDetailService.getPdfUrlByMasterOrId(null,null,null,idStr);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
if(!CollectionUtils.isEmpty(srcFileList)){
|
|
|
|
|
//设置进缓存
|
|
|
|
|
String key = SessionContant.setPdfUrl(idStr, idStr, srcFileList, request);
|
|
|
|
|
return key;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
public String getPdfById(HttpServletResponse response, HttpServletRequest request, @Param("id") String idStr) throws Exception {
|
|
|
|
|
request.setCharacterEncoding("utf-8");
|
|
|
|
|
response.setCharacterEncoding("utf-8");
|
|
|
|
@ -540,6 +558,7 @@ public class inHospitalController {
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
@RequestMapping(value = "/delPdf")
|
|
|
|
|