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
8f4e87ca
authored
Jun 28, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add tmp sql
parent
02290dcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
tmp.sql
tmp.sql
View file @
8f4e87ca
...
...
@@ -45,12 +45,28 @@ 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
();
\ No newline at end of file
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