From 9fb299879e55d52b7d1839dc30769ee1337a1c25 Mon Sep 17 00:00:00 2001 From: zengwh <81383286@qq.com> Date: Tue, 15 Mar 2022 12:37:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=88=E5=AE=A1=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/Archive_MasterMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/Archive_MasterMapper.xml b/src/main/resources/mapper/Archive_MasterMapper.xml index 09ef72dd..cceed73d 100644 --- a/src/main/resources/mapper/Archive_MasterMapper.xml +++ b/src/main/resources/mapper/Archive_MasterMapper.xml @@ -420,8 +420,8 @@ on emr_fault_detail.archive_detail_id = m.ID LEFT JOIN(select archive_detail_id,count(*) numb from emr_fault_detail where 1=1 and back_flag in ('2','6') GROUP BY archive_detail_id) sNurse on m.id=sNurse.archive_detail_id - left join Archive_Master_Following amf - on m.id=amf.master_id and amf.following_type=9 + left join (select distinct master_id,following_type from Archive_Master_Following where following_type=9) amf + on m.id=amf.master_id LEFT JOIN(select archive_detail_id,count(*) numb from emr_fault_detail where 1=1 and back_flag is not null GROUP BY archive_detail_id) s on m.id=s.archive_detail_id LEFT JOIN archive_other ao