fix:库区删除增加校验,解决删除报错问题
This commit is contained in:
@@ -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>
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user