diff --git a/src/main/resources/mapper/ArchiveCallbackInfoMapper.xml b/src/main/resources/mapper/ArchiveCallbackInfoMapper.xml index 8194d10..dfde057 100644 --- a/src/main/resources/mapper/ArchiveCallbackInfoMapper.xml +++ b/src/main/resources/mapper/ArchiveCallbackInfoMapper.xml @@ -116,7 +116,7 @@ delete from t_basic where patient_id = #{patientId}; delete from t_operate where patient_id = #{patientId}; delete from t_admiss_thing where patient_id = #{patientId}; - delete from archive_archived where patient_id = #{patientId}; + delete from archive_archived where patient_id = (select patient_id from archive_master where id = #{patientId}); end \ No newline at end of file