Commit 9c055055 by larosa

add tmp.sql

parent 450d5420
Showing with 26 additions and 2 deletions
......@@ -7,9 +7,9 @@ select purchase_item_id, frq_id from lie_purchase_items where purchase_item_id =
select erp_sn from lie_frq where frq_id = 'frq_id_from_purchase_items'; --获取到erp_sn作为 kingdee_sales_order_no;
------------------
--下面的步骤是为了获取purchase_sn
--下面的步骤是为了获取purchase_sn 还有 kingdee_purchase_order_no, company_id, company_name
select purchase_id from lie_scm_order; --获取到 purchase_id_from_scm_order;
select purchase_sn from lie_purchase_order where purchase_id = 'purchase_id_from_scm_order' ;
select purchase_sn, erp_purchase_sn, company_id, company_name from lie_purchase_order where purchase_id = 'purchase_id_from_scm_order' ;
-----------------
......@@ -20,5 +20,29 @@ insert into lie_shipping_intermediate_data
kingdee_sales_order_no,
purchase_sn,
kingdee_purchase_order_no,
goods_id,
goods_sn,
goods_name,
brand_id,
brand_name,
company_id,
company_name,
supplier_id,
supplier_name,
warehouse_receipt_sn,
in_qty,
out_qty, --这个字段在 lie_scm_order没找到 ???
stock_in_status,
create_name,
shipping_id,
create_uid,
shipment_number,
shipping_name,
create_time,
update_time,
purchase_uid,
purchase_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