|
@@ -118,8 +118,8 @@
|
|
|
a.entry_number,
|
|
|
e.wllb_class,
|
|
|
b.sqrq
|
|
|
- FROM tld_ask_goods a
|
|
|
- JOIN tld_ask_goods_f b ON a.ask_goods_id = b.ask_goods_id
|
|
|
+ FROM tld_invite a
|
|
|
+ JOIN tld_invite_f b ON a.ask_goods_id = b.ask_goods_id
|
|
|
LEFT JOIN tld_department c ON b.department = c.code
|
|
|
JOIN tld_material e ON a.material_id = e.tld_id
|
|
|
WHERE (a.num + 0) <![CDATA[>]]> (
|
|
@@ -1472,7 +1472,7 @@
|
|
|
<!--出库错误信息回调-->
|
|
|
<select id="getOutgoingReturnError" resultType="com.tld.model.Error">
|
|
|
select id,url,error_info,data_val,scrq,type,transmission_type from tld_error
|
|
|
- where transmission_type = '3'
|
|
|
+ where transmission_type = '1'
|
|
|
and type = '出库回传'
|
|
|
</select>
|
|
|
<!--查询销售出库导入数据-->
|
|
@@ -1540,6 +1540,44 @@
|
|
|
where transmission_type = '1'
|
|
|
and type = '移库'
|
|
|
</select>
|
|
|
+ <!--移库跑数据-->
|
|
|
+ <select id="shiftingParkingReturn" resultType="com.tld.model.WarehouseTransfer">
|
|
|
+ select id,warehouse_transfer_id,warehouse_transfer_code,ask_goods_warehouse_id,warehouse_transfer_type,scrq from tld_return_warehouse_transfer
|
|
|
+ </select>
|
|
|
+ <!--查询非生产领料-->
|
|
|
+ <select id="getAskGoodsMaterialNot" resultType="com.tld.model.AskGoods">
|
|
|
+ SELECT a.ask_goods_id,
|
|
|
+ a.material_id,
|
|
|
+ a.num,
|
|
|
+ IFNULL(a.out_num, 0) AS out_num,
|
|
|
+ e.NAME AS materialName,
|
|
|
+ e.CODE AS materialCode,
|
|
|
+ e.part_type as partType,
|
|
|
+ b.ask_goods_code,
|
|
|
+ b.company_number,
|
|
|
+ b.sqrq,
|
|
|
+ c.name,
|
|
|
+ c.code,
|
|
|
+ c.id AS departmentId,
|
|
|
+ a.production_code,
|
|
|
+ a.wbs,
|
|
|
+ a.entry_number,
|
|
|
+ e.wllb_class
|
|
|
+ FROM tld_invite a
|
|
|
+ JOIN tld_invite_f b ON a.ask_goods_id = b.ask_goods_id
|
|
|
+ LEFT JOIN tld_department c ON b.department = c.code
|
|
|
+ JOIN tld_material e ON a.material_id = e.tld_id
|
|
|
+ WHERE (a.num + 0) <![CDATA[>]]> (
|
|
|
+ IFNULL(a.out_num, 0) + 0)
|
|
|
+ and e.part_type != '半成品' and e.part_type != '产成品'
|
|
|
+ and a.ask_goods_id = #{askGoodsId} and e.code in (select material_id from tld_user_material where user_id = #{userId})
|
|
|
+ </select>
|
|
|
+ <!--其它入库错误信息回调-->
|
|
|
+ <select id="otherWarehousingReturnError" resultType="com.tld.model.Error">
|
|
|
+ select id,url,error_info,data_val,scrq,type,transmission_type from tld_error
|
|
|
+ where transmission_type = '1'
|
|
|
+ and type = '其它入库'
|
|
|
+ </select>
|
|
|
<!-- 修改数据传输状态 -->
|
|
|
<update id="updateRemoval">
|
|
|
update tld_removal set transmission_type = "1" where storage_code = #{removalCode}
|