|
|
|
@ -81,11 +81,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<select id="selectRawStore" resultMap="storeMap">
|
|
|
|
|
select warehouse_id,warehouse_code,warehouse_name,material_categories from wms_base_warehouse;
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectSemiStore" resultMap="storeMap">
|
|
|
|
|
select obj_id as warehouse_id,store_code as warehouse_code,store_name as warehouse_name from wms_hpp_store;
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<resultMap id="locationMap" type="org.dromara.wms.domain.vo.WmsBaseLocationVo">
|
|
|
|
|
<result column="location_code" property="locationCode"/>
|
|
|
|
|
<result column="store_place_code" property="locationCode"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
<select id="selectRawCheckLocationList" resultMap="locationMap">
|
|
|
|
|
select location_code from wms_inventory where store_id=#{storeId} group by location_code
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectSemiCheckLocationList" resultMap="locationMap">
|
|
|
|
|
select store_place_code
|
|
|
|
|
from wms_hpp_storage_detail whsd
|
|
|
|
|
left join wms_hpp_store_place wsp on wsp.obj_id = whsd.store_place_id
|
|
|
|
|
where wsp.store_id=#{storeId} group by store_place_code
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|