仓库信息优化

This commit is contained in:
sxu 2024-11-04 16:06:31 +08:00
parent 793482f8ca
commit d8283918da
2 changed files with 3 additions and 2 deletions

View File

@ -109,11 +109,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<delete id="deleteWhHouseInfoByHouseId" parameterType="Long">
update wh_house_info set del_flag = '2' where house_id = #{houseId}
delete from wh_house_info where house_id = #{houseId}
</delete>
<delete id="deleteWhHouseInfoByHouseIds" parameterType="String">
update wh_house_info set del_flag = '2' where house_id in
delete from wh_house_info where house_id in
<foreach item="houseId" collection="array" open="(" separator="," close=")">
#{houseId}
</foreach>

View File

@ -122,5 +122,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join ma_type mt1 on mt.parent_id = mt1.type_id
left join ma_type mt2 on mt1.parent_id = mt2.type_id
right join wh_house_info mhi on mhs.house_id = mhi.house_id
where mhi.del_flag=0
</select>
</mapper>