仓库、库区、库位添加按编码查找功能

This commit is contained in:
JinLu.Yin
2022-09-10 10:15:23 +08:00
parent ebb565df6b
commit c23a068666
13 changed files with 177 additions and 23 deletions

View File

@@ -49,6 +49,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectWmStorageAreaVo"/>
where area_id = #{areaId}
</select>
<select id="selectWmStorageAreaByAreaCode" parameterType="String" resultMap="WmStorageAreaResult">
<include refid="selectWmStorageAreaVo"/>
where area_code = #{areaCode}
</select>
<insert id="insertWmStorageArea" parameterType="WmStorageArea" useGeneratedKeys="true" keyProperty="areaId">
insert into wm_storage_area

View File

@@ -42,6 +42,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where location_id = #{locationId}
</select>
<select id="selectWmStorageLocationByLocationCode" parameterType="String" resultMap="WmStorageLocationResult">
<include refid="selectWmStorageLocationVo"/>
where location_code = #{locationCode} limit 1
</select>
<select id="checkLocationCodeUnique" parameterType="WmStorageLocation" resultMap="WmStorageLocationResult">
<include refid="selectWmStorageLocationVo"/>
where location_code = #{locationCode} and warehouse_id = #{warehouseId} limit 1

View File

@@ -75,6 +75,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where warehouse_id = #{warehouseId}
</select>
<select id="selectWmWarehouseByWarehouseCode" parameterType="String" resultMap="WmWarehouseResult">
<include refid="selectWmWarehouseVo"/>
where warehouse_code = #{warehouseCode} limit 1
</select>
<select id="checkWarehouseCodeUnique" parameterType="WmWarehouse" resultMap="WmWarehouseResult">
<include refid="selectWmWarehouseVo"/>
where warehouse_code = #{warehouseCode} limit 1