From c2391438219138d6758bc526089c74169e143b12 Mon Sep 17 00:00:00 2001 From: tangw Date: Wed, 19 Nov 2025 15:13:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=BE=AE=E7=94=9F=E7=89=A9=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liswork/src/main/resources/mapper/LisWorkGermMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liswork/src/main/resources/mapper/LisWorkGermMapper.xml b/liswork/src/main/resources/mapper/LisWorkGermMapper.xml index df0f601..66457d1 100644 --- a/liswork/src/main/resources/mapper/LisWorkGermMapper.xml +++ b/liswork/src/main/resources/mapper/LisWorkGermMapper.xml @@ -9,8 +9,8 @@ - select a.*, + select a.*,m.ywmc, case when isnull(a.mic,'')!='' then isnull(c.micref,d.micref) when isnull(a.rad,'')!='' then isnull(c.radref,d.radref) else '' end as ckz,e.bz as cp_bz from lab_resultmed a join xm_info b on b.yq=a.yq and b.xmdh=a.xmdh + left join xm_med m on m.ywdh=a.ywdh left join com_dict e on e.zdlb='germclass' and e.zddh=b.germclass left join xm_meddetail c on b.germclass=c.xmdh and c.ywdh=a.ywdh left join xm_meddetail d on d.ywzmc = '细菌' and d.yq=a.yq and d.ywdh=a.ywdh - where jyrq = #{jyrq} and yq = #{yq} - and ybh = #{ybh} - and xmdh = #{xmdh} - and xh = #{xh} - and ywdh = #{ywdh} + where a.jyrq = #{jyrq} and a.yq = #{yq} + and a.ybh = #{ybh} + and a.xmdh = #{xmdh} + and a.xh = #{xh} + and a.ywdh = #{ywdh}