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
fb9f252e
Commit
fb9f252e
authored
Dec 01, 2018
by
蘑菇🍄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地址推定状态
parent
05131cd5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
导入前准备.sql
jnby-pomme/导入前准备.sql
+3
-3
数据组装dev.sql
jnby-pomme/数据组装dev.sql
+2
-2
No files found.
jnby-pomme/导入前准备.sql
View file @
fb9f252e
...
@@ -16,6 +16,7 @@ ALTER TABLE tab_gic_mall_collection add from_erp i
...
@@ -16,6 +16,7 @@ ALTER TABLE tab_gic_mall_collection add from_erp i
ALTER
TABLE
tab_gic_mall_evaluate
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_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_batch_deliver_log
add
from_erp
int
(
1
)
default
0
COMMENT
'是否导入'
;
ALTER
TABLE
`gic3.0`
.
tab_gic_member_address
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_copy
LIKE
tab_gic_mall_order
;
CREATE
TABLE
tab_gic_mall_order_item_copy
LIKE
tab_gic_mall_order_item
;
CREATE
TABLE
tab_gic_mall_order_item_copy
LIKE
tab_gic_mall_order_item
;
...
@@ -26,8 +27,7 @@ CREATE TABLE tab_gic_mall_order_refund_copy LIKE tab_gic_mall_order_re
...
@@ -26,8 +27,7 @@ CREATE TABLE tab_gic_mall_order_refund_copy LIKE tab_gic_mall_order_re
CREATE
TABLE
tab_gic_mall_order_refund_logistics_copy
LIKE
tab_gic_mall_order_refund_logistics
;
CREATE
TABLE
tab_gic_mall_order_refund_logistics_copy
LIKE
tab_gic_mall_order_refund_logistics
;
CREATE
TABLE
tab_gic_mall_collection_copy
LIKE
tab_gic_mall_collection
;
CREATE
TABLE
tab_gic_mall_collection_copy
LIKE
tab_gic_mall_collection
;
CREATE
TABLE
tab_gic_mall_evaluate_copy
LIKE
tab_gic_mall_evaluate
;
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_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
;
CREATE
TABLE
`gic3
.0`
.
tab_gic_member_address_copy
LIKE
`gic3.0
`
.
tab_gic_member_address
;
jnby-pomme/数据组装dev.sql
View file @
fb9f252e
...
@@ -44,7 +44,7 @@ update order_import A inner join(select county_id,full_name from `gic3.0`.tab_gi
...
@@ -44,7 +44,7 @@ update order_import A inner join(select county_id,full_name from `gic3.0`.tab_gi
,
addr
.
address
,
addr
.
address
,
addr
.
county_id
,
null
as
longitude
,
null
as
latitude
,
now
()
as
create_time
,
now
()
as
update_time
,
1
as
status
,
addr
.
county_id
,
null
as
longitude
,
null
as
latitude
,
now
()
as
create_time
,
now
()
as
update_time
,
1
as
status
,
members_view
.
enterprise_id
,
addr
.
buyer_name
,
addr
.
buyer_moile
as
phone_number
,
members_view
.
enterprise_id
,
addr
.
buyer_name
,
addr
.
buyer_moile
as
phone_number
,
null
as
nationcode
,
members_view
.
clique_id
,
members_view
.
clique_member_id
,
-
1
as
ecommerce_buyer_id
,
s
.
unsubscribe
as
subscribe_status
,
null
as
nationcode
,
members_view
.
clique_id
,
members_view
.
clique_member_id
,
-
1
as
ecommerce_buyer_id
,
IF
(
IFNULL
(
count
(
s
.
unsubscribe
=
1
),
0
)
>
0
,
1
,
0
)
as
subscribe_status
FROM
order_member_address
addr
FROM
order_member_address
addr
left
join
`gic3_test`
.
members_view
on
members_view
.
card_num
=
addr
.
member_number
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
left
join
`gic3_test`
.
tab_gic_member_sms
s
on
s
.
phone_number
=
addr
.
buyer_moile
...
...
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