From aaf8c8a4e5a5c33985e36ecc4c61fc23cee1c77a Mon Sep 17 00:00:00 2001 From: haozq <1611483981@qq.com> Date: Mon, 17 Jun 2024 10:50:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/ConstructionQualityMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/ConstructionQualityMapper.xml b/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/ConstructionQualityMapper.xml index 48f1f4d..427bbc8 100644 --- a/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/ConstructionQualityMapper.xml +++ b/securitycontrol-model/securitycontrol-screen/src/main/resources/mapper/ConstructionQualityMapper.xml @@ -66,7 +66,7 @@ left join tb_device_detail tdd on tbd.device_id=tdd.device_id left join tb_device_value tdv on tdd.id=tdv.attribute_id left join tb_pro_bd tpb on tpb.id=tbd.bd_id - WHERE tpb.bid_code = #{bidCode} + WHERE tpb.bid_code = #{bidCode} and tbd.del_flag=0 and tbd.devic_type = 1906 AND tbd.device_id=#{deviceId} @@ -85,7 +85,7 @@ left join tb_his_device_value tdv on tdd.id=tdv.attribute_id left join tb_pro_bd tpb on tpb.id=tbd.bd_id WHERE - tbd.devic_type = 1906 and tdv.val is not null and tpb.bid_code = #{bidCode} + tbd.devic_type = 1906 and tdv.val is not null and tpb.bid_code = #{bidCode} and tbd.del_flag=0 AND tbd.device_name like concat('%',#{deviceName},'%')