ソースを参照

web端泵信息管理列表删除手术信息绑定失效bug修复

wangzl 2 ヶ月 前
コミット
880984ff5d

+ 1 - 2
tr-modules/tr-module-smartFollowUp/src/main/resources/mapper/smart/BizDeviceMapper.xml

@@ -112,9 +112,8 @@
         biz_device bd
         JOIN biz_infusion_history bih ON bd.infusion_id = bih.id
         left JOIN biz_infusion_clinic bic ON bih.id = bic.infusion_id
-        left JOIN biz_clinic_room bcr ON bic.clinic_id = bcr.id
+        left JOIN biz_clinic_room bcr ON bic.clinic_id = bcr.id  and bcr.deleted = 0
         <where>
-            and bcr.deleted = 0
             <if test="query.deviceType != null and query.deviceType != ''">
                 and bih.device_type = #{query.deviceType}
             </if>