Commit 05131cd5 by 蘑菇🍄

注释~

parent d126831e
......@@ -3,19 +3,19 @@
alter table tab_gic_mall_order add from_erp int(1) default 0 COMMENT '是否导入';
alter table tab_gic_mall_order add erp_order_id varchar(32) default null COMMENT 'erp_order_id';
ALTER TABLE tab_gic_mall_order add from_erp int(1) default 0 COMMENT '是否导入';
ALTER TABLE tab_gic_mall_order add erp_order_id varchar(32) default null COMMENT 'erp_order_id';
alter table tab_gic_mall_order_item add from_erp int(1) default 0 COMMENT '是否导入';
alter table tab_gic_mall_order_logistics add from_erp int(1) default 0 COMMENT '是否导入';
alter table tab_gic_mall_order_process add from_erp int(1) default 0 COMMENT '是否导入';
alter table tab_gic_mall_order_refund_consult add from_erp int(1) default 0 COMMENT '是否导入';
alter table tab_gic_mall_order_refund add from_erp int(1) default 0 COMMENT '是否导入';
alter table tab_gic_mall_order_refund_logistics add from_erp int(1) default 0 COMMENT '是否导入';
alter table tab_gic_mall_collection 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_order_batch_deliver_log add from_erp int(1) default 0 COMMENT '是否导入';
ALTER TABLE tab_gic_mall_order_item add from_erp int(1) default 0 COMMENT '是否导入';
ALTER TABLE tab_gic_mall_order_logistics add from_erp int(1) default 0 COMMENT '是否导入';
ALTER TABLE tab_gic_mall_order_process add from_erp int(1) default 0 COMMENT '是否导入';
ALTER TABLE tab_gic_mall_order_refund_consult add from_erp int(1) default 0 COMMENT '是否导入';
ALTER TABLE tab_gic_mall_order_refund add from_erp int(1) default 0 COMMENT '是否导入';
ALTER TABLE tab_gic_mall_order_refund_logistics add from_erp int(1) default 0 COMMENT '是否导入';
ALTER TABLE tab_gic_mall_collection 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_order_batch_deliver_log 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_item_copy LIKE tab_gic_mall_order_item;
......@@ -28,6 +28,6 @@ CREATE TABLE tab_gic_mall_collection_copy LIKE tab_gic_mall_collecti
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_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;
\ No newline at end of file
......@@ -31,7 +31,7 @@ update order_import A inner join(select county_id,full_name from `gic3.0`.tab_gi
;
-- 把没有的地址保存起来
INSERT INTO `gic3.0`.`tab_gic_member_address_copy`
INSERT INTO `gic3_test`.`tab_gic_member_address_copy`
(
`member_address_id`, `member_id`, `member_personal_id`, `is_default`, `address_type`
, `address`
......@@ -49,7 +49,7 @@ FROM order_member_address addr
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
GROUP BY addr.member_number,addr.address_info
GROUP BY addr.member_number,addr.address
;
......@@ -247,7 +247,7 @@ FROM order_process_import p
FROM order_refund_import r
left join tab_gic_mall_order_copy o on o.erp_order_id = r.erp_order_id
left join tab_gic_mall_order_item_copy item on item.order_item_number = r.order_item_number
left join `gic3_test`.tab_gic_member_pommedeterre members_view on members_view.card_num = r.member_card_no
left join `gic3_test`. members_view on members_view.card_num = r.member_card_no
WHERE o.order_id is not NULL
group by r.order_item_number
;
......@@ -336,7 +336,7 @@ group by co.card_no,co.mall_pro_code
--购物车
-- 购物车
INSERT INTO `tab_gic_mall_shopping_cart_copy` (
`shopping_cart_id`, `member_id`, `enterprise_id`, `brand_id`
, `mall_pro_id`, `mall_pro_name`, `mall_pro_sku_id`, `mall_pro_sku_attr`
......
......@@ -49,7 +49,7 @@ FROM order_member_address addr
left join `gic3.0`.tab_gic_member_pommedeterre 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
GROUP BY addr.member_number,addr.address_info
GROUP BY addr.member_number,addr.address
;
......@@ -336,7 +336,7 @@ group by co.card_no,co.mall_pro_code
--购物车
-- 购物车
INSERT INTO `tab_gic_mall_shopping_cart_copy` (
`shopping_cart_id`, `member_id`, `enterprise_id`, `brand_id`
, `mall_pro_id`, `mall_pro_name`, `mall_pro_sku_id`, `mall_pro_sku_attr`
......
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