Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
script
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚闰伍
script
Commits
071963eb
Commit
071963eb
authored
Jan 04, 2019
by
蘑菇🍄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp_order_id
parent
4677a9c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
数据组装pro.sql
jnby-by-jnby/数据组装pro.sql
+4
-4
No files found.
jnby-by-jnby/数据组装pro.sql
View file @
071963eb
...
...
@@ -72,7 +72,7 @@ update order_import A inner join(select county_id,full_name from `gic3.0`.tab_gi
,
`order_process_id`
,
`order_step`
,
`enterprise_id`
,
`brand_id`
,
`member_id`
,
`mall_pro_all_price`
,
`actual_freight`
,
`mall_order_freight`
,
`discount_amount`
,
`discount_amount_info`
,
`actual_freight`
,
`mall_order_freight`
,
`discount_amount`
,
`discount_amount_info`
,
`amount_payable_info`
,
`pay_amount`
,
`pay_type`
,
`coupon_card_log_id`
,
`coupon_card_code`
,
`get_points`
,
`use_points`
,
`clerk_id`
,
`store_id`
,
`address_id`
,
`address_info`
,
`area_id`
...
...
@@ -187,7 +187,7 @@ INSERT INTO `tab_gic_mall_order_logistics_copy`
,
o
.
`clique_member_id`
,
0
as
weight
,
item
.
order_item_id
,
logis
.
send_num
,
IFNULL
(
item
.
mall_pro_number
,
0
)
as
`order_item_sum_num`
,
1
as
from_erp
FROM
order_logistics_import
logis
left
join
tab_gic_mall_order_copy
o
on
o
.
order_number
=
logis
.
order_number
left
join
tab_gic_mall_order_copy
o
on
o
.
erp_order_id
=
logis
.
erp_order_id
left
join
tab_gic_mall_order_item_copy
item
on
item
.
pro_code
=
logis
.
mall_pro_code
left
join
`gic3.0`
.
tab_gic_logistics_company
logistics
on
logis
.
logistics_company_name
LIKE
CONCAT
(
'%'
,
logistics
.
logistics_company_name
,
'%'
)
...
...
@@ -217,7 +217,7 @@ FROM order_logistics_import logis
,
0
as
weight
,
item
.
order_item_id
,
1
as
from_erp
FROM
order_refund_logistics_import
logis
left
join
tab_gic_mall_order_copy
o
on
o
.
order_number
=
logis
.
order_number
left
join
tab_gic_mall_order_copy
o
on
o
.
erp_order_id
=
logis
.
erp_order_id
left
join
tab_gic_mall_order_item_copy
item
on
item
.
pro_code
=
logis
.
mall_pro_code
left
join
`gic3.0`
.
tab_gic_logistics_company
logistics
on
logis
.
logistics_company_name
LIKE
CONCAT
(
'%'
,
logistics
.
logistics_company_name
,
'%'
)
GROUP
BY
logis
.
courier_number
...
...
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