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
05131cd5
Commit
05131cd5
authored
Dec 01, 2018
by
蘑菇🍄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释~
parent
d126831e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
24 deletions
+24
-24
导入前准备.sql
jnby-pomme/导入前准备.sql
+16
-16
数据组装dev.sql
jnby-pomme/数据组装dev.sql
+5
-5
数据组装pro1201.sql
jnby-pomme/数据组装pro1201.sql
+3
-3
No files found.
jnby-pomme/导入前准备.sql
View file @
05131cd5
...
...
@@ -3,19 +3,19 @@
alter
table
tab_gic_mall_order
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
alter
table
tab_gic_mall_order
add
erp_order_id
varchar
(
32
)
default
null
COMMENT
'erp_order_id'
;
alter
table
tab_gic_mall_order_item
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
alter
table
tab_gic_mall_order_logistics
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
alter
table
tab_gic_mall_order_process
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
alter
table
tab_gic_mall_order_refund_consult
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
alter
table
tab_gic_mall_order_refund
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
alter
table
tab_gic_mall_order_refund_logistics
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
alter
table
tab_gic_mall_collection
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
alter
table
tab_gic_mall_evaluate
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
alter
table
tab_gic_mall_shopping_cart
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
alter
table
tab_gic_mall_order_batch_deliver_log
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
ALTER
TABLE
tab_gic_mall_order
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
ALTER
TABLE
tab_gic_mall_order
add
erp_order_id
varchar
(
32
)
default
null
COMMENT
'erp_order_id'
;
ALTER
TABLE
tab_gic_mall_order_item
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
ALTER
TABLE
tab_gic_mall_order_logistics
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
ALTER
TABLE
tab_gic_mall_order_process
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
ALTER
TABLE
tab_gic_mall_order_refund_consult
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
ALTER
TABLE
tab_gic_mall_order_refund
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
ALTER
TABLE
tab_gic_mall_order_refund_logistics
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
ALTER
TABLE
tab_gic_mall_collection
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
ALTER
TABLE
tab_gic_mall_evaluate
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
ALTER
TABLE
tab_gic_mall_shopping_cart
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
ALTER
TABLE
tab_gic_mall_order_batch_deliver_log
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
CREATE
TABLE
tab_gic_mall_order_copy
LIKE
tab_gic_mall_order
;
CREATE
TABLE
tab_gic_mall_order_item_copy
LIKE
tab_gic_mall_order_item
;
...
...
@@ -28,6 +28,6 @@ CREATE TABLE tab_gic_mall_collection_copy LIKE tab_gic_mall_collecti
CREATE
TABLE
tab_gic_mall_evaluate_copy
LIKE
tab_gic_mall_evaluate
;
CREATE
TABLE
tab_gic_member_address_copy
LIKE
`gic3.0`
.
tab_gic_member_address
CREATE
TABLE
tab_gic_mall_shopping_cart_copy
LIKE
tab_gic_mall_shopping_cart
;
CREATE
TABLE
tab_gic_mall_order_batch_deliver_log_copy
LIKE
tab_gic_mall_order_batch_deliver_log
CREATE
TABLE
tab_gic_mall_order_batch_deliver_log_copy
LIKE
tab_gic_mall_order_batch_deliver_log
;
CREATE
TABLE
`gic3_test`
.
tab_gic_member_address_copy
LIKE
`gic3_test`
.
tab_gic_member_address
;
jnby-pomme/数据组装dev.sql
View file @
05131cd5
...
...
@@ -31,7 +31,7 @@ update order_import A inner join(select county_id,full_name from `gic3.0`.tab_gi
;
-- 把没有的地址保存起来
INSERT
INTO
`gic3
.0
`
.
`tab_gic_member_address_copy`
INSERT
INTO
`gic3
_test
`
.
`tab_gic_member_address_copy`
(
`member_address_id`
,
`member_id`
,
`member_personal_id`
,
`is_default`
,
`address_type`
,
`address`
...
...
@@ -49,7 +49,7 @@ FROM order_member_address addr
left
join
`gic3_test`
.
members_view
on
members_view
.
card_num
=
addr
.
member_number
left
join
`gic3_test`
.
tab_gic_member_sms
s
on
s
.
phone_number
=
addr
.
buyer_moile
GROUP
BY
addr
.
member_number
,
addr
.
address
_info
GROUP
BY
addr
.
member_number
,
addr
.
address
;
...
...
@@ -247,7 +247,7 @@ FROM order_process_import p
FROM
order_refund_import
r
left
join
tab_gic_mall_order_copy
o
on
o
.
erp_order_id
=
r
.
erp_order_id
left
join
tab_gic_mall_order_item_copy
item
on
item
.
order_item_number
=
r
.
order_item_number
left
join
`gic3_test`
.
tab_gic_member_pommedeterre
members_view
on
members_view
.
card_num
=
r
.
member_card_no
left
join
`gic3_test`
.
members_view
on
members_view
.
card_num
=
r
.
member_card_no
WHERE
o
.
order_id
is
not
NULL
group
by
r
.
order_item_number
;
...
...
@@ -336,7 +336,7 @@ group by co.card_no,co.mall_pro_code
--购物车
--
购物车
INSERT
INTO
`tab_gic_mall_shopping_cart_copy`
(
`shopping_cart_id`
,
`member_id`
,
`enterprise_id`
,
`brand_id`
,
`mall_pro_id`
,
`mall_pro_name`
,
`mall_pro_sku_id`
,
`mall_pro_sku_attr`
...
...
jnby-pomme/数据组装pro1201.sql
View file @
05131cd5
...
...
@@ -49,7 +49,7 @@ FROM order_member_address addr
left
join
`gic3.0`
.
tab_gic_member_pommedeterre
members_view
on
members_view
.
card_num
=
addr
.
member_number
left
join
`gic3.0`
.
tab_gic_member_sms
s
on
s
.
phone_number
=
addr
.
buyer_moile
GROUP
BY
addr
.
member_number
,
addr
.
address
_info
GROUP
BY
addr
.
member_number
,
addr
.
address
;
...
...
@@ -336,7 +336,7 @@ group by co.card_no,co.mall_pro_code
--购物车
--
购物车
INSERT
INTO
`tab_gic_mall_shopping_cart_copy`
(
`shopping_cart_id`
,
`member_id`
,
`enterprise_id`
,
`brand_id`
,
`mall_pro_id`
,
`mall_pro_name`
,
`mall_pro_sku_id`
,
`mall_pro_sku_attr`
...
...
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