diff --git a/src/main/resources/mapper/Archive_MasterMapper.xml b/src/main/resources/mapper/Archive_MasterMapper.xml index 9111944b..0f620ea4 100644 --- a/src/main/resources/mapper/Archive_MasterMapper.xml +++ b/src/main/resources/mapper/Archive_MasterMapper.xml @@ -285,11 +285,11 @@ 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,T1,COUNT(*) num from archive_other_ext group by zyh,jzh,T1) extDoctor + LEFT JOIN (select zyh,jzh,COUNT(*) num from archive_other_ext 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,T2,COUNT(*) num from archive_other_ext group by zyh,jzh,T2) extNurse + LEFT JOIN (select zyh,jzh,COUNT(*) num from archive_other_ext 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'