|
@@ -127,10 +127,10 @@
|
|
|
<insert id="addAskGoodsVitrual">
|
|
|
insert into tld_ask_goods_vitrual(unique_code, supplier_id, serial, wllb_code, produc_date, ask_goods_id, type,
|
|
|
storage_location_code, num, user_id, department, attribute, account_sleeve,
|
|
|
- storage_location_code_rk, wbs)
|
|
|
+ storage_location_code_rk, wbs, entry_number)
|
|
|
values (#{uniqueCode}, #{supplierId}, #{serial}, #{wllbCode}, #{producDate}, #{askGoodsId}, #{type},
|
|
|
#{storageLocationCode}, #{num}, #{userId}, #{department}, #{attribute}, #{companyNumber},
|
|
|
- #{storageLocationCodeRk}, #{wbs})
|
|
|
+ #{storageLocationCodeRk}, #{wbs}, #{entryNumber})
|
|
|
</insert>
|
|
|
<!-- 查询指定库存内容 -->
|
|
|
<select id="getInventory" resultType="com.tld.model.Inventory">
|
|
@@ -276,7 +276,8 @@
|
|
|
department,
|
|
|
account_sleeve,
|
|
|
wbs,
|
|
|
- storage_location_code_rk
|
|
|
+ storage_location_code_rk,
|
|
|
+ entry_number
|
|
|
from tld_ask_goods_vitrual
|
|
|
where unique_code = #{uniqueCode}
|
|
|
and type = #{type}
|
|
@@ -327,6 +328,9 @@
|
|
|
from tld_ask_goods
|
|
|
where ask_goods_id = #{askGoodsId}
|
|
|
and material_id = #{materialId}
|
|
|
+ <if test="entryNumber != null and entryNumber != ''">
|
|
|
+ and entry_number = #{entryNumber}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
<!-- 新增返回gs数据字表信息 -->
|
|
|
<insert id="addReturnGsRemoval">
|
|
@@ -558,7 +562,8 @@
|
|
|
department,
|
|
|
account_sleeve,
|
|
|
wbs,
|
|
|
- attribute
|
|
|
+ attribute,
|
|
|
+ entry_number
|
|
|
from tld_ask_goods_vitrual
|
|
|
where unique_code = #{uniqueCode}
|
|
|
and type = #{type}
|
|
@@ -1188,7 +1193,7 @@
|
|
|
a.storage_location_code as storageLocationCode,
|
|
|
b.warehouse_where as warehouseWhere
|
|
|
FROM tld_return_gs_warehousing a
|
|
|
- JOIN tld_storage_location b ON a.storage_location_code = b.storage_location_code
|
|
|
+ JOIN tld_storage_location b ON a.storage_location_code = b.storage_location_code
|
|
|
WHERE a.storage_code = #{removalCode}
|
|
|
group by b.warehouse_where
|
|
|
</select>
|