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
dbc9abb2
Commit
dbc9abb2
authored
Jan 04, 2019
by
蘑菇🍄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ff808081680f541901681309c4915322
parent
071963eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
导入指定的会员.sql
jnby-by-jnby/导入指定的会员.sql
+25
-25
No files found.
jnby-by-jnby/导入指定的会员.sql
View file @
dbc9abb2
DELETE
A
FROM
tab_gic_mall_order_batch_deliver_log
A
LEFT
JOIN
tab_gic_mall_order
B
ON
A
.
order_id
=
B
.
order_id
WHERE
B
.
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
B
.
member_id
=
'ff8080816
71d4dd501673a76508d32ce
'
and
A
.
from_erp
=
1
;
WHERE
B
.
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
B
.
member_id
=
'ff8080816
80f541901681309c4915322
'
and
A
.
from_erp
=
1
;
DELETE
A
FROM
tab_gic_mall_order_refund_consult
A
LEFT
JOIN
tab_gic_mall_order_refund
B
ON
A
.
order_refund_id
=
B
.
order_refund_id
WHERE
B
.
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
B
.
member_id
=
'ff8080816
71d4dd501673a76508d32ce
'
and
A
.
from_erp
=
1
;
WHERE
B
.
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
B
.
member_id
=
'ff8080816
80f541901681309c4915322
'
and
A
.
from_erp
=
1
;
DELETE
A
FROM
tab_gic_mall_order_refund_logistics
A
LEFT
JOIN
tab_gic_mall_order_refund
B
ON
A
.
mall_order_id
=
B
.
order_id
WHERE
B
.
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
B
.
member_id
=
'ff8080816
71d4dd501673a76508d32ce
'
and
A
.
from_erp
=
1
;
WHERE
B
.
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
B
.
member_id
=
'ff8080816
80f541901681309c4915322
'
and
A
.
from_erp
=
1
;
DELETE
FROM
tab_gic_mall_order
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
71d4dd501673a76508d32ce
'
;
DELETE
FROM
tab_gic_mall_order_item
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
71d4dd501673a76508d32ce
'
;
DELETE
FROM
tab_gic_mall_order_logistics
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
71d4dd501673a76508d32ce
'
;
DELETE
FROM
tab_gic_mall_order_process
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
71d4dd501673a76508d32ce
'
;
DELETE
FROM
tab_gic_mall_order_refund
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
71d4dd501673a76508d32ce
'
;
DELETE
FROM
tab_gic_mall_collection
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
71d4dd501673a76508d32ce
'
;
DELETE
FROM
tab_gic_mall_evaluate
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
71d4dd501673a76508d32ce
'
;
DELETE
FROM
`gic3.0`
.
tab_gic_member_address
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
71d4dd501673a76508d32ce
'
;
DELETE
FROM
tab_gic_mall_shopping_cart
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
71d4dd501673a76508d32ce
'
;
DELETE
FROM
tab_gic_mall_order
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
80f541901681309c4915322
'
;
DELETE
FROM
tab_gic_mall_order_item
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
80f541901681309c4915322
'
;
DELETE
FROM
tab_gic_mall_order_logistics
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
80f541901681309c4915322
'
;
DELETE
FROM
tab_gic_mall_order_process
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
80f541901681309c4915322
'
;
DELETE
FROM
tab_gic_mall_order_refund
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
80f541901681309c4915322
'
;
DELETE
FROM
tab_gic_mall_collection
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
80f541901681309c4915322
'
;
DELETE
FROM
tab_gic_mall_evaluate
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
80f541901681309c4915322
'
;
DELETE
FROM
`gic3.0`
.
tab_gic_member_address
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
80f541901681309c4915322
'
;
DELETE
FROM
tab_gic_mall_shopping_cart
WHERE
from_erp
=
1
and
enterprise_id
=
'ff8080816170e2970161f63d4ee75b38'
and
member_id
=
'ff8080816
80f541901681309c4915322
'
;
...
...
@@ -29,33 +29,33 @@ DELETE FROM tab_gic_mall_shopping_cart WHERE from_erp = 1 and enterpri
-- 合并单个人的数据
-- WX20062935
INSERT
INTO
tab_gic_mall_order_item
SELECT
*
FROM
tab_gic_mall_order_item_copy
WHERE
member_id
in
(
'ff8080816
73c614601673ed9718f3366
'
);
INSERT
INTO
tab_gic_mall_order
SELECT
*
FROM
tab_gic_mall_order_copy
WHERE
member_id
in
(
'ff8080816
73c614601673ed9718f3366
'
);
INSERT
INTO
tab_gic_mall_shopping_cart
SELECT
*
FROM
tab_gic_mall_shopping_cart_copy
WHERE
member_id
in
(
'ff8080816
73c614601673ed9718f3366
'
);
INSERT
INTO
tab_gic_mall_collection
SELECT
*
FROM
tab_gic_mall_collection_copy
WHERE
member_id
in
(
'ff8080816
73c614601673ed9718f3366
'
);
insert
into
`gic3.0`
.
tab_gic_member_address
SELECT
*
FROM
`gic3.0`
.
tab_gic_member_address_copy
WHERE
member_id
in
(
'ff8080816
73c614601673ed9718f3366
'
);
insert
into
tab_gic_mall_evaluate
SELECT
*
FROM
tab_gic_mall_evaluate_copy
WHERE
member_id
in
(
'ff8080816
73c614601673ed9718f3366
'
);
insert
into
tab_gic_mall_order_logistics
SELECT
*
FROM
tab_gic_mall_order_logistics_copy
WHERE
member_id
in
(
'ff8080816
73c614601673ed9718f3366
'
);
INSERT
INTO
tab_gic_mall_order_item
SELECT
*
FROM
tab_gic_mall_order_item_copy
WHERE
member_id
in
(
'ff8080816
80f541901681309c4915322
'
);
INSERT
INTO
tab_gic_mall_order
SELECT
*
FROM
tab_gic_mall_order_copy
WHERE
member_id
in
(
'ff8080816
80f541901681309c4915322
'
);
INSERT
INTO
tab_gic_mall_shopping_cart
SELECT
*
FROM
tab_gic_mall_shopping_cart_copy
WHERE
member_id
in
(
'ff8080816
80f541901681309c4915322
'
);
INSERT
INTO
tab_gic_mall_collection
SELECT
*
FROM
tab_gic_mall_collection_copy
WHERE
member_id
in
(
'ff8080816
80f541901681309c4915322
'
);
insert
into
`gic3.0`
.
tab_gic_member_address
SELECT
*
FROM
`gic3.0`
.
tab_gic_member_address_copy
WHERE
member_id
in
(
'ff8080816
80f541901681309c4915322
'
);
insert
into
tab_gic_mall_evaluate
SELECT
*
FROM
tab_gic_mall_evaluate_copy
WHERE
member_id
in
(
'ff8080816
80f541901681309c4915322
'
);
insert
into
tab_gic_mall_order_logistics
SELECT
*
FROM
tab_gic_mall_order_logistics_copy
WHERE
member_id
in
(
'ff8080816
80f541901681309c4915322
'
);
insert
into
tab_gic_mall_order_refund
SELECT
*
FROM
tab_gic_mall_order_refund_copy
WHERE
member_id
in
(
'ff8080816
73c614601673ed9718f3366
'
);
insert
into
tab_gic_mall_order_process
SELECT
*
FROM
tab_gic_mall_order_process_copy
WHERE
member_id
in
(
'ff8080816
73c614601673ed9718f3366
'
);
insert
into
tab_gic_mall_order_refund
SELECT
*
FROM
tab_gic_mall_order_refund_copy
WHERE
member_id
in
(
'ff8080816
80f541901681309c4915322
'
);
insert
into
tab_gic_mall_order_process
SELECT
*
FROM
tab_gic_mall_order_process_copy
WHERE
member_id
in
(
'ff8080816
80f541901681309c4915322
'
);
INSERT
INTO
tab_gic_mall_order_refund_consult
SELECT
*
FROM
tab_gic_mall_order_refund_consult_copy
WHERE
order_refund_id
in
(
SELECT
order_refund_id
FROM
tab_gic_mall_order_refund_copy
WHERE
member_id
in
(
'ff8080816
73c614601673ed9718f3366
'
)
SELECT
order_refund_id
FROM
tab_gic_mall_order_refund_copy
WHERE
member_id
in
(
'ff8080816
80f541901681309c4915322
'
)
);
INSERT
INTO
tab_gic_mall_order_refund_logistics
SELECT
*
FROM
tab_gic_mall_order_refund_logistics_copy
WHERE
mall_order_id
in
(
SELECT
order_id
FROM
tab_gic_mall_order_refund_copy
WHERE
member_id
in
(
'ff8080816
73c614601673ed9718f3366
'
)
SELECT
order_id
FROM
tab_gic_mall_order_refund_copy
WHERE
member_id
in
(
'ff8080816
80f541901681309c4915322
'
)
);
INSERT
INTO
tab_gic_mall_order_batch_deliver_log
SELECT
*
FROM
tab_gic_mall_order_batch_deliver_log_copy
WHERE
order_id
in
(
SELECT
order_id
FROM
tab_gic_mall_order
WHERE
member_id
in
(
'ff8080816
73c614601673ed9718f3366
'
)
SELECT
order_id
FROM
tab_gic_mall_order
WHERE
member_id
in
(
'ff8080816
80f541901681309c4915322
'
)
);
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