Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
my-awesome-project
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9c055055
authored
Jun 27, 2024
by
larosa
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add tmp.sql
parent
450d5420
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
tmp.sql
tmp.sql
View file @
9c055055
...
...
@@ -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
();
----------------------------------------------------------
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment