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
c27ad1c8
Commit
c27ad1c8
authored
Dec 01, 2018
by
蘑菇🍄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format
parent
3de2c5ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
4 deletions
+34
-4
合并清理.sql
jnby-pomme/合并清理.sql
+34
-4
No files found.
jnby-pomme/合并清理.sql
View file @
c27ad1c8
-- 数据
合并
-- 数据
合并
...
...
@@ -47,10 +47,41 @@ DELETE FROM tab_gic_mall_collection WHERE from_erp = 1;
DELETE
FROM
tab_gic_mall_evaluate
WHERE
from_erp
=
1
;
DELETE
FROM
tab_gic_mall_order_batch_deliver_log
WHERE
from_erp
=
1
;
DELETE
FROM
`3.0`
.
tab_gic_member_address_copy
WHERE
from_erp
=
1
;
DELETE
FROM
tab_gic_mall_shopping_cart
WHERE
from_erp
=
1
;
DELETE
FROM
tab_gic_mall_order
WHERE
member_id
=
'ff808081671d4dd501673a76508d32ce'
AND
enterprise_id
=
'ff8080816170e8990161f6736b4c6033'
and
from_erp
=
1
;
DELETE
FROM
tab_gic_mall_order_item
WHERE
member_id
=
'ff808081671d4dd501673a76508d32ce'
AND
enterprise_id
=
'ff8080816170e8990161f6736b4c6033'
and
from_erp
=
1
;
\ No newline at end of file
DELETE
FROM
tab_gic_mall_order_item
WHERE
member_id
=
'ff808081671d4dd501673a76508d32ce'
AND
enterprise_id
=
'ff8080816170e8990161f6736b4c6033'
and
from_erp
=
1
;
-- 合并单个人的数据
-- WX20067920 ,WX20023230
INSERT
INTO
tab_gic_mall_order_item
SELECT
*
FROM
tab_gic_mall_order_item_copy
WHERE
member_id
in
(
'ff80808165b4c5070165c20bbe331701'
,
'ff8080816760179c0167634621677b03'
);
INSERT
INTO
tab_gic_mall_order
SELECT
*
FROM
tab_gic_mall_order_copy
WHERE
member_id
in
(
'ff80808165b4c5070165c20bbe331701'
,
'ff8080816760179c0167634621677b03'
);
INSERT
INTO
tab_gic_mall_shopping_cart
SELECT
*
FROM
tab_gic_mall_shopping_cart_copy
WHERE
member_id
in
(
'ff80808165b4c5070165c20bbe331701'
,
'ff8080816760179c0167634621677b03'
);
INSERT
INTO
tab_gic_mall_collection
SELECT
*
FROM
tab_gic_mall_collection_copy
WHERE
member_id
in
(
'ff80808165b4c5070165c20bbe331701'
,
'ff8080816760179c0167634621677b03'
);
insert
into
`gic3.0`
.
tab_gic_member_address
SELECT
*
from
`gic3.0`
.
tab_gic_member_address_copy
WHERE
member_id
in
(
'ff80808165b4c5070165c20bbe331701'
,
'ff8080816760179c0167634621677b03'
);
insert
into
tab_gic_mall_evaluate
SELECT
*
from
tab_gic_mall_evaluate_copy
where
member_id
in
(
'ff80808165b4c5070165c20bbe331701'
,
'ff8080816760179c0167634621677b03'
);
insert
into
tab_gic_mall_order_logistics
SELECT
*
from
tab_gic_mall_order_logistics_copy
where
member_id
in
(
'ff80808165b4c5070165c20bbe331701'
,
'ff8080816760179c0167634621677b03'
);
insert
into
tab_gic_mall_order_refund
SELECT
*
from
tab_gic_mall_order_refund_copy
where
member_id
in
(
'ff80808165b4c5070165c20bbe331701'
,
'ff8080816760179c0167634621677b03'
);
insert
into
tab_gic_mall_order_process
SELECT
*
from
tab_gic_mall_order_process_copy
WHERE
member_id
in
(
'ff80808165b4c5070165c20bbe331701'
,
'ff8080816760179c0167634621677b03'
);
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
(
'ff80808165b4c5070165c20bbe331701'
,
'ff8080816760179c0167634621677b03'
)
);
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
(
'ff80808165b4c5070165c20bbe331701'
,
'ff8080816760179c0167634621677b03'
)
);
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