|
@@ -1600,6 +1600,11 @@ public class MzChargeDetailController {
|
|
|
if (mzPrescriptionVo.getSerialNo().startsWith("clnicId_")) {
|
|
|
Long clnicId = Long.valueOf(mzPrescriptionVo.getSerialNo().replace("clnicId_", ""));
|
|
|
clinic = clinicService.queryById(clnicId);
|
|
|
+ if(clinic==null){
|
|
|
+ resultMap.put("code", -1);
|
|
|
+ resultMap.put("message", "未查询到历史就诊记录,clinicId="+clnicId);
|
|
|
+ return resultMap;
|
|
|
+ }
|
|
|
mzPrescriptionVo.setDoctorCode(tokenUser.getUserIdCode());
|
|
|
mzPrescriptionVo.setVisitDeptCode(clinic.getDeptCode());
|
|
|
mzPrescriptionVo.setSerialNo(null);
|