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