From b95d793ec84c2b5ead749500b213a070062f7a91 Mon Sep 17 00:00:00 2001 From: xuhx <1216720373@qq.com> Date: Tue, 7 Sep 2021 17:11:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E7=BA=B8=E5=8C=96=E5=BD=92=E6=A1=A3?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/Archive_MasterMapper.xml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/resources/mapper/Archive_MasterMapper.xml b/src/main/resources/mapper/Archive_MasterMapper.xml index 0f620ea4..ae4b7071 100644 --- a/src/main/resources/mapper/Archive_MasterMapper.xml +++ b/src/main/resources/mapper/Archive_MasterMapper.xml @@ -285,14 +285,12 @@ on m.id=sNurse.archive_detail_id LEFT JOIN (select MasterID,COUNT(*) num from archive_printInfo group by MasterID) printTable on m.id=printTable.MasterID - LEFT JOIN (select zyh,jzh,COUNT(*) num from archive_other_ext group by zyh,jzh) extDoctor + LEFT JOIN (select zyh,jzh,COUNT(*) num from archive_other_ext where T1!='1801-02-03 00:00:00.000' group by zyh,jzh) extDoctor on m.inp_no=extDoctor.zyh and m.visit_id=extDoctor.jzh - and extDoctor.T1!='1801-02-03 00:00:00.000' - LEFT JOIN (select zyh,jzh,COUNT(*) num from archive_other_ext group by zyh,jzh) extNurse + LEFT JOIN (select zyh,jzh,COUNT(*) num from archive_other_ext where T2!='1801-02-03 00:00:00.000' group by zyh,jzh) extNurse on m.inp_no=extNurse.zyh and m.visit_id=extNurse.jzh - and extNurse.T2!='1801-02-03 00:00:00.000' where 1=1 and ArchiveState in('归档中','提交','主任退回') and patindex('%B%',m.inp_no) = 0