Commit 8f4e87ca by 岳巧源

add tmp sql

parent 02290dcb
Showing with 18 additions and 2 deletions
......@@ -45,11 +45,27 @@ insert into lie_shipping_intermediate_data
)
values
();
----------------------------------------------------------
------------------------------------------------------------下面的步骤是从lie_stock_in 还有 lie_stock_in_items 中取数据
select stock_in_id from lie_stock_in where stock_in_type in (1, 2); --从lie_stock_in中获取 stock_in_id; 假定为 stock_in_id_from_stock_in;
select frq_id, purchase_id from lie_stock_in_items where stock_in_id = 'stock_in_id_from_stock_in'; ----获取到 frq_id_from_stock_in_items;
--获取到 purchase_id_from_stock_in_items;
-- kingdee_sales_order_no的获取
select erp_sn from lie_frq where frq_id = 'frq_id_from_stock_in_items';
-----------------------------------------purchase_sn的获取
select purchase_sn, erp_purchase_sn from lie_purchase_order where purchase_id = 'purchase_id_from_stock_in_items';
----------------------------------------------------
--下面的步骤是从lie_stock_in 还有 lie_stock_in_items 中取数据
insert into lie_shipping_intermediate_data
(
source_type, -- 1
source_id, --此字段暂不清楚
kingdee_sales_order_no,
purchase_sn,
kingdee_purchase_order_no,
goods_id,
goods_sn,
goods_name,
)
values
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment