修复测试中发现的规格等bug

This commit is contained in:
wulin 2020-09-27 17:41:25 +08:00
parent a18edeef4e
commit ae8155db37

View File

@ -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
</select>
<update id="updateCoverEquipmentInfoByTypeId" parameterType="java.lang.Long">
update equipment_info set type = #{type} where type_id=#{id}
<update id="updateCoverEquipmentInfoByTypeId" >
update equipment_info set type = #{type} where type_id=#{id} and is_delete=0
</update>
<update id="updateCoverEquipmentInfoByBrandId" parameterType="java.lang.Long">
update equipment_info set brand_name = #{brand} where type_id=#{id}
<update id="updateCoverEquipmentInfoByBrandId" >
update equipment_info set brand_name = #{brand} where brand_id=#{id} and is_delete=0
</update>
<update id="updateCoverEquipmentInfoBySpecsId" parameterType="java.lang.Long">
update equipment_info set spec_type = #{specs} where type_id=#{id}
<update id="updateCoverEquipmentInfoBySpecsId" >
update equipment_info set spec_type = #{specs} where specs_id=#{id} and is_delete=0
</update>
</mapper>