|
@@ -24,7 +24,7 @@
|
|
|
<!-- 通用查询结果列 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
id,create_time,create_user,update_time,update_user,
|
|
|
- storge_id, lock_status, goods_type, goods_id, num, unique_code, turn_task_no, feed_task_no,
|
|
|
+ storge_id, lock_status, goods_type, goods_id, num, unique_code, turn_task_no, feed_task_no,storgeNo,
|
|
|
categoryDesc,brandName,brandNo,specification,weight,spec_id,lockNum,availableNum
|
|
|
</sql>
|
|
|
|
|
@@ -69,8 +69,9 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getGoodsListBystorgeId" resultMap="BaseResultMap" parameterType="map">
|
|
|
- select a.*,b.categoryDesc,b.name as brandName,b.no as brandNo,b.specification,0 as lockNum,0 as availableNum from imcs_s_stock_info a
|
|
|
+ select a.*,b.categoryDesc,b.name as brandName,b.no as brandNo,b.specification,0 as lockNum,0 as availableNum,s.`no` storgeNo from imcs_s_stock_info a
|
|
|
left join view_stock_goods b on a.goods_id = b.id
|
|
|
+ left join imcs_s_storge s on a.storge_id = s.id
|
|
|
where 1=1
|
|
|
<if test="storgeId != null and storgeId != ''">
|
|
|
and a.storge_id = #{storgeId} and b.id is not null
|