仓库、库区、库位添加按编码查找功能
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user