修改预住院患者删除。

This commit is contained in:
haown 2024-04-19 14:54:02 +08:00
parent 76809ff2f5
commit 8985512315

View File

@ -143,11 +143,13 @@ public class PatientPreHospitalizationServiceImpl implements IPatientPreHospital
setPreHospitalizationInfoNull(patientInfo);
} else {
// 将患者信息更改为就诊信息
Long patientId = patientInfo.getId();
BeanUtils.copyBeanProp(patientInfo, patientVisitRecord);
patientInfo.setPatientVisitRecordId(patientVisitRecord.getId());
patientVisitRecordService.setPatientType(patientInfo, patientVisitRecord);
patientInfo.setId(patientId);
}
patientInfoService.updatePatientInfo(patientInfo);
patientInfoMapper.updatePatientInfo(patientInfo);
}
return preHospitalizationMapper.deleteByIds(ids);
}