From ae8155db378912410fdc2ff9f4a2880c6482f21f Mon Sep 17 00:00:00 2001 From: wulin Date: Sun, 27 Sep 2020 17:41:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E4=B8=AD?= =?UTF-8?q?=E5=8F=91=E7=8E=B0=E7=9A=84=E8=A7=84=E6=A0=BC=E7=AD=89bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/equipment/EquipmentInfoMapper.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/resources/mapper/equipment/EquipmentInfoMapper.xml b/src/main/resources/mapper/equipment/EquipmentInfoMapper.xml index 5ad34d5f..c8b8699c 100644 --- a/src/main/resources/mapper/equipment/EquipmentInfoMapper.xml +++ b/src/main/resources/mapper/equipment/EquipmentInfoMapper.xml @@ -293,16 +293,16 @@ select ifnull(count(*),0) from equipment_info where is_delete = 0 and count =#{num} and depart_id is not null and depart_id > 0 - - update equipment_info set type = #{type} where type_id=#{id} + + update equipment_info set type = #{type} where type_id=#{id} and is_delete=0 - - update equipment_info set brand_name = #{brand} where type_id=#{id} + + update equipment_info set brand_name = #{brand} where brand_id=#{id} and is_delete=0 - - update equipment_info set spec_type = #{specs} where type_id=#{id} + + update equipment_info set spec_type = #{specs} where specs_id=#{id} and is_delete=0