Commit 99d90107 by chizw

配置和数据库脚本

1 parent 86f31919
INSERT INTO scrm_entmicro.data_cube_template_config (template_id, template_name, template_url, must_upload, template_remark, update_description, del_flag, created_by, created_time, updated_by, updated_time) VALUES(24, '基盘数据表', 'https://img01.glsx.com.cn/upload/biz/基盘数据表20220704.xlsx', 0, '宝瀚宝马', NULL, 0, NULL, '2022-07-04 14:17:43', NULL, NULL); -- 宝瀚宝马魔方数据模板配置
INSERT INTO scrm_entmicro.data_cube_template_config (template_id, template_name, template_url, must_upload, template_remark, update_description, del_flag, created_by, created_time, updated_by, updated_time) VALUES(25, '销售明细表', 'https://img01.glsx.com.cn/upload/biz/销售明细表20220704.xlsx', 0, '宝瀚宝马', NULL, 0, NULL, '2022-07-04 14:17:43', NULL, NULL); INSERT INTO scrm_entmicro.data_cube_template_config (template_id, template_name, template_url, must_upload, template_remark, update_description, del_flag, created_by, created_time, updated_by, updated_time) VALUES(24, '基盘数据表', 'https://img01.glsx.com.cn/upload/biz/基盘数据(模板)20220711.xlsx', 0, '宝瀚宝马', NULL, 0, NULL, '2022-07-04 14:17:43', NULL, NULL);
INSERT INTO scrm_entmicro.data_cube_template_config (template_id, template_name, template_url, must_upload, template_remark, update_description, del_flag, created_by, created_time, updated_by, updated_time) VALUES(25, '销售明细表', 'https://img01.glsx.com.cn/upload/biz/销售明细(模板)20220711.xlsx', 0, '宝瀚宝马', NULL, 0, NULL, '2022-07-04 14:17:43', NULL, NULL);
INSERT INTO scrm_entmicro.data_cube_merchant_config (merchant_id, merchant_name, business_type, business_name, template_id, must_upload, template_remark, update_description, del_flag, created_by, created_time, updated_by, updated_time) VALUES(44211246, '宝瀚宝马', 1, '基盘', 24, 0, NULL, NULL, 0, NULL, '2022-07-04 14:17:43', NULL, NULL); INSERT INTO scrm_entmicro.data_cube_merchant_config (merchant_id, merchant_name, business_type, business_name, template_id, must_upload, template_remark, update_description, del_flag, created_by, created_time, updated_by, updated_time) VALUES(44211246, '宝瀚宝马', 1, '基盘', 24, 0, NULL, NULL, 0, NULL, '2022-07-04 14:17:43', NULL, NULL);
INSERT INTO scrm_entmicro.data_cube_merchant_config (merchant_id, merchant_name, business_type, business_name, template_id, must_upload, template_remark, update_description, del_flag, created_by, created_time, updated_by, updated_time) VALUES(44211246, '宝瀚宝马', 2, '销售明细', 25, 0, NULL, NULL, 0, NULL, '2022-07-04 14:17:43', NULL, NULL); INSERT INTO scrm_entmicro.data_cube_merchant_config (merchant_id, merchant_name, business_type, business_name, template_id, must_upload, template_remark, update_description, del_flag, created_by, created_time, updated_by, updated_time) VALUES(44211246, '宝瀚宝马', 2, '销售明细', 25, 0, NULL, NULL, 0, NULL, '2022-07-04 14:17:43', NULL, NULL);
-- 企微userId和openId映射表
CREATE TABLE `scrm_userid_openid_mapping` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`user_id` varchar(50) DEFAULT NULL COMMENT '用户userId',
`open_id` varchar(100) DEFAULT NULL COMMENT 'userId转换的openId',
`created_by` int(11) DEFAULT NULL COMMENT '创建人',
`created_time` datetime DEFAULT NULL COMMENT '添加时间',
`updated_by` int(11) DEFAULT NULL COMMENT '更新人',
`updated_time` datetime DEFAULT NULL COMMENT '更新时间',
`del_flag` tinyint(2) DEFAULT NULL COMMENT '是否删除:0=正常,-1=删除',
PRIMARY KEY (`id`),
KEY `index_user_id` (`user_id`),
KEY `index_open_id` (`open_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='企微userId和openId映射表';
ALTER TABLE scrm_entmicro.scrm_customer_merge ADD subscribe_offiaccount tinyint(2) DEFAULT '0' COMMENT '是否关注公众号 0=未关注 1=已关注';
-- 埋点表新增字段
ALTER TABLE scrm_aggregation.scrm_business_burying_point ADD user_phone int(11) NULL COMMENT '分享人手机号' AFTER customer_phone;
INSERT INTO scrm_aggregation.scrm_basic_config_detail (field_index, field_name, field_type, field_length, field_describe, field_rule, field_alias, remark, del_flag, created_by, created_time, updated_by, updated_time) VALUES(243, 'user_phone', 'int', 11, '分享人手机号', NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL);
INSERT INTO scrm_aggregation.scrm_model_field_mapping (model_name, field_index, union_rule, model_flag, model_value, oneid_flag, expand_flag, unique_flag, del_flag) VALUES('scrm_business_burying_point', 243, NULL, NULL, NULL, NULL, NULL, NULL, 0);
ALTER TABLE scrm_aggregation.scrm_data_burying_point MODIFY COLUMN entry_id varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT '入口id';
update scrm_basic_config_detail sbcd set sbcd.field_length = 255 where sbcd.field_index = 176;
-- yelq
-- 广汇修改套餐模型oneid_belong
UPDATE `scrm_basic_config` SET oneid_belong=2 WHERE model_name='scrm_combo_basic_info';
-- licy
INSERT INTO `scrm_aggregation`.`scrm_model_field_mapping` (`model_name`, `field_index`) VALUES ('scrm_sale_basic_info', '151');
\ No newline at end of file \ No newline at end of file
# 广汇公众号 app_id & app_secret
wechat_official_account_app_id=wx83557c32338771b4
wechat_official_account_app_secret=4ae9f49ae6fc27a6fee6bbb3f04d4c6b
# 开启记录用户关注公众号状态定时任务
scrm_subscribe_job_enabled=false
# 扫描关注公众号的商户号,用","分隔,为空时默认扫描全部商户号
scrm_subscribe_merchantId_scan=
## xiongzs
## rpc-scrm-entmicro-container 广联
drac.url.link.gl=http://wxlink.glsx.com.cn/?uuid=
## rpc-scrm-entmicro-container 广汇
drac.url.link.gh=https://scrm.cgacar.com/wxlink/?uuid=
-- 新增是否登录小程序字段
ALTER TABLE `scrm_entmicro`.`scrm_customer_merge` ADD COLUMN `is_login_applet` TINYINT(2) DEFAULT 0 NULL COMMENT '是否登录小程序 0=否 1=是';
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!