Commit c27ad1c8 by 蘑菇🍄

format

parent 3de2c5ee
-- 数据合并
-- 数据合并
......@@ -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')
);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment