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
450d5420
authored
Jun 27, 2024
by
larosa
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
tmp sql
parent
0ccc9f5f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
data.txt → data.md
tmp.sql
data.
txt
→
data.
md
View file @
450d5420
File moved
tmp.sql
0 → 100644
View file @
450d5420
--先使用 lie_scm_order 这个来源
--下面的步骤是在获取 kingdee_sales_order_no
select
purchase_item_id
from
lie_scm_order
;
--获取 purchase_item_id 这一步获取的purchase_item_id 假定为 purchase_item_id_from_scm_order ;
select
purchase_item_id
,
frq_id
from
lie_purchase_items
where
purchase_item_id
=
'purchase_item_id_from_scm_order'
;
--这一步获取 frq_id, 假定为frq_id_from_purchase_items ;
select
erp_sn
from
lie_frq
where
frq_id
=
'frq_id_from_purchase_items'
;
--获取到erp_sn作为 kingdee_sales_order_no;
------------------
--下面的步骤是为了获取purchase_sn
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'
;
-----------------
insert
into
lie_shipping_intermediate_data
(
source_type
,
--lie_stock_in_items == 1 / lie_scm_order == 2
source_id
,
-- ???? 来源id是什么
kingdee_sales_order_no
,
purchase_sn
,
kingdee_purchase_order_no
,
)
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