Commit e3fda442 by 蘑菇🍄

fix

parent 671c48a7
...@@ -24,17 +24,17 @@ DELETE FROM `gic3.0`.tab_gic_member_address WHERE from_erp = 1 and enterpri ...@@ -24,17 +24,17 @@ DELETE FROM `gic3.0`.tab_gic_member_address WHERE from_erp = 1 and enterpri
-- 数据合并 -- 数据合并
insert into tab_gic_mall_order select * from `order_import_CROQUIS`.tab_gic_mall_order_copy; insert into tab_gic_mall_order select * from tab_gic_mall_order_copy;
insert into tab_gic_mall_order_item select * from `order_import_CROQUIS`.tab_gic_mall_order_item_copy; insert into tab_gic_mall_order_item select * from tab_gic_mall_order_item_copy;
insert into tab_gic_mall_order_logistics select * from `order_import_CROQUIS`.tab_gic_mall_order_logistics_copy; insert into tab_gic_mall_order_logistics select * from tab_gic_mall_order_logistics_copy;
insert into tab_gic_mall_order_process select * from `order_import_CROQUIS`.tab_gic_mall_order_process_copy; insert into tab_gic_mall_order_process select * from tab_gic_mall_order_process_copy;
insert into tab_gic_mall_order_refund_consult select * from `order_import_CROQUIS`.tab_gic_mall_order_refund_consult_copy; insert into tab_gic_mall_order_refund_consult select * from tab_gic_mall_order_refund_consult_copy;
insert into tab_gic_mall_order_refund select * from `order_import_CROQUIS`.tab_gic_mall_order_refund_copy; insert into tab_gic_mall_order_refund select * from tab_gic_mall_order_refund_copy;
insert into tab_gic_mall_order_refund_logistics select * from `order_import_CROQUIS`.tab_gic_mall_order_refund_logistics_copy; insert into tab_gic_mall_order_refund_logistics select * from tab_gic_mall_order_refund_logistics_copy;
insert into tab_gic_mall_collection select * from `order_import_CROQUIS`.tab_gic_mall_collection_copy; insert into tab_gic_mall_collection select * from tab_gic_mall_collection_copy;
insert into tab_gic_mall_evaluate select * from `order_import_CROQUIS`.tab_gic_mall_evaluate_copy; insert into tab_gic_mall_evaluate select * from tab_gic_mall_evaluate_copy;
insert into tab_gic_mall_order_batch_deliver_log select * from `order_import_CROQUIS`.tab_gic_mall_order_batch_deliver_log_copy; insert into tab_gic_mall_order_batch_deliver_log select * from tab_gic_mall_order_batch_deliver_log_copy;
insert into tab_gic_mall_shopping_cart select * from `order_import_CROQUIS`.tab_gic_mall_shopping_cart_copy; insert into tab_gic_mall_shopping_cart select * from tab_gic_mall_shopping_cart_copy;
insert into `gic3.0`.tab_gic_member_address select * from `gic3.0`.tab_gic_member_address_copy where enterprise_id= 'ff80808164f65d9501651798e0f8143d' ; insert into `gic3.0`.tab_gic_member_address select * from `gic3.0`.tab_gic_member_address_copy where enterprise_id= 'ff80808164f65d9501651798e0f8143d' ;
......
...@@ -59,6 +59,7 @@ update `order_tmp_import`.order_import A inner join(select county_id,full_name f ...@@ -59,6 +59,7 @@ update `order_tmp_import`.order_import A inner join(select county_id,full_name f
LEFT JOIN `gic3.0`.tab_gic_member_SAMO members_view on members_view.card_num = addr.member_number LEFT JOIN `gic3.0`.tab_gic_member_SAMO 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 LEFT JOIN `gic3.0`.tab_gic_member_sms s on s.phone_number = addr.buyer_moile
WHERE s.enterprise_id = 'ff80808164f65d9501651798e0f8143d' WHERE s.enterprise_id = 'ff80808164f65d9501651798e0f8143d'
and addr.enterprise_id= 'ff80808164f65d9501651798e0f8143d'
GROUP BY addr.member_number,addr.address GROUP BY addr.member_number,addr.address
; ;
......
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