|
|
|
@ -141,7 +141,7 @@ public class FontShowRecordController {
|
|
|
|
if (StringUtils.isNotBlank(inpatientNo) || StringUtils.isNotBlank(idCard)) {
|
|
|
|
if (StringUtils.isNotBlank(inpatientNo) || StringUtils.isNotBlank(idCard)) {
|
|
|
|
int commomMaster = commomMapper.selectAllMaster(inpatientNo, idCard);
|
|
|
|
int commomMaster = commomMapper.selectAllMaster(inpatientNo, idCard);
|
|
|
|
int commom = commomMapper.isExistInpatientOrAdmissIdOridCard(inpatientNo, idCard, null, null);
|
|
|
|
int commom = commomMapper.isExistInpatientOrAdmissIdOridCard(inpatientNo, idCard, null, null);
|
|
|
|
if (commom == 0 && commomMaster==0) {
|
|
|
|
if (commom == 0 && commomMaster == 0) {
|
|
|
|
model.addAttribute("msg", "病案不存在!");
|
|
|
|
model.addAttribute("msg", "病案不存在!");
|
|
|
|
return "font/msg";
|
|
|
|
return "font/msg";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -708,11 +708,7 @@ public class FontShowRecordController {
|
|
|
|
String pdfName = "档案管理PDF";
|
|
|
|
String pdfName = "档案管理PDF";
|
|
|
|
//根据图片路径转换pdf
|
|
|
|
//根据图片路径转换pdf
|
|
|
|
EmrPdfWaterSet emrPdfWaterSet = pdfWaterSetMapper.selectByPrimaryKey(1);
|
|
|
|
EmrPdfWaterSet emrPdfWaterSet = pdfWaterSetMapper.selectByPrimaryKey(1);
|
|
|
|
//UserEffective为1是开启用户信息水印
|
|
|
|
|
|
|
|
Short userEffective = emrPdfWaterSet.getUserEffective();
|
|
|
|
|
|
|
|
if (userEffective == 1) {
|
|
|
|
|
|
|
|
img2PdfUtil.imageToPdfUserEffective(response, scanPages, pdfName, emrPdfWaterSet);
|
|
|
|
img2PdfUtil.imageToPdfUserEffective(response, scanPages, pdfName, emrPdfWaterSet);
|
|
|
|
}
|
|
|
|
|
|
|
|
//移除缓存
|
|
|
|
//移除缓存
|
|
|
|
commomService.CACHE_MAP.clear();
|
|
|
|
commomService.CACHE_MAP.clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|