|
|
|
@ -52,13 +52,16 @@ public class FontController {
|
|
|
|
|
* 提供第三方按多个分段id和记账号查询病历pdf
|
|
|
|
|
* */
|
|
|
|
|
@RequestMapping("showRecordByPatientId")
|
|
|
|
|
public String showRecordByPatientId(String assortIds, String patientId, Model model){
|
|
|
|
|
public String showRecordByPatientId(String assortIds,String patientId,String visitId, Model model){
|
|
|
|
|
if(StringUtils.isBlank(assortIds)){
|
|
|
|
|
return retrunErrorPage(model,"病案分类Id不能为空!");
|
|
|
|
|
}
|
|
|
|
|
if(StringUtils.isBlank(patientId)){
|
|
|
|
|
return retrunErrorPage(model,"记账号不能为空!");
|
|
|
|
|
}
|
|
|
|
|
if(StringUtils.isBlank(visitId)){
|
|
|
|
|
return retrunErrorPage(model,"住院次数不能为空!");
|
|
|
|
|
}
|
|
|
|
|
List<Archive_Master> list = new ArrayList<>();
|
|
|
|
|
//判断工号是否存在
|
|
|
|
|
try {
|
|
|
|
@ -74,11 +77,9 @@ public class FontController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//判断记账号是否存在
|
|
|
|
|
Archive_Master master = new Archive_Master();
|
|
|
|
|
master.setPatientId(patientId);
|
|
|
|
|
list = archiveMasterService.selectByObject(master);
|
|
|
|
|
list = archiveMasterService.selectByObject(patientId,visitId);
|
|
|
|
|
if(null == list || list.isEmpty()){
|
|
|
|
|
return retrunErrorPage(model,"记账号不存在!");
|
|
|
|
|
return retrunErrorPage(model,"病历不存在!");
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
ExceptionPrintUtil.printException(e);
|
|
|
|
|