fix:库区删除增加校验,解决删除报错问题

This commit is contained in:
zhangxuanming
2024-12-20 11:45:59 +08:00
parent ccdc77f67e
commit dde4bbbb1d
6 changed files with 49 additions and 14 deletions

View File

@@ -144,7 +144,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<delete id="deleteByLocationId" parameterType="Long">
delete form wm_storage_area where location_id = #{locationId}
delete from wm_storage_area where location_id = #{locationId}
</delete>
</mapper>

View File

@@ -57,6 +57,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectWmStorageLocationVo"/>
where location_name = #{locationName} and warehouse_id = #{warehouseId} limit 1
</select>
<select id="selectByLocationIds" resultType="com.ktg.mes.wm.domain.WmStorageLocation">
<include refid="selectWmStorageLocationVo"/>
where location_id in
<foreach collection="ids" item="item" separator="," open="(" close=")">
#{item}
</foreach>
</select>
<insert id="insertWmStorageLocation" parameterType="WmStorageLocation" useGeneratedKeys="true" keyProperty="locationId">
insert into wm_storage_location