Commit 6f314455 by zhouhaibao

feat(database): 添加门店上架审批和分账相关数据表结构

- 新增门店上架审批场景关联表 dj_car_life_store_approve_scene
- 新增门店上架分账基础规则表 dj_car_life_storeapp_base_rule
- 新增门店上架分账分配规则表 dj_car_life_storeapp_distribution_rule
- 新增门店上架分账规则自动分账配置表 dj_car_life_storeapp_division_rule_auto
- 新增门店上架费用类目规则表 dj_car_life_storeapp_expense_category_rule
- 新增门店上架品类分组表 dj_car_life_storeapp_goods_type_group
- 新增门店上架商品品类组关系表 dj_car_life_storeapp_goods_type_group_relation
- 新增门店上架兜底配置表 dj_car_life_storeapp_guarantee
- 新增门店上架流量方关系表 dj_car_life_storeapp_merchant_ref
- 新增门店上架指标配置表 dj_car_life_storeapp_metric_config
- 新增门店上架人员成本占比规则配置表 dj_car_life_storeapp_personnel_rate_rule
- 在门店审批表中添加运营专员审核处理标识字段
- 在门店流量方表中添加基础场景编码等多个人员成本相关字段
- 初始化门店审批场景数据和人员成本占比规则配置数据
1 parent 7e9bd5bf
...@@ -6,6 +6,291 @@ ...@@ -6,6 +6,291 @@
### 叶立庆 -----------------end--------------------- ### 叶立庆 -----------------end---------------------
### 周海宝 -----------------start------------------- ### 周海宝 -----------------start-------------------
-- dj_smartcarlife.dj_car_life_store_approve_scene definition
CREATE TABLE `dj_car_life_store_approve_scene` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`business_code` varchar(64) NOT NULL COMMENT '业务编码(审批单编号)',
`scene_type` int(11) DEFAULT NULL COMMENT '场景类型',
`base_scene_code` varchar(64) NOT NULL COMMENT '基础场景编码',
`created_by` varchar(64) DEFAULT NULL COMMENT '创建人',
`created_date` datetime DEFAULT NULL COMMENT '创建时间',
`deleted_flag` char(1) DEFAULT 'N',
PRIMARY KEY (`id`),
KEY `idx_business_code` (`business_code`),
KEY `idx_base_scene_code` (`base_scene_code`)
) ENGINE=InnoDB AUTO_INCREMENT=157 DEFAULT CHARSET=utf8mb4 COMMENT='门店上架审批场景关联表';
-- dj_smartcarlife.dj_car_life_storeapp_base_rule definition
CREATE TABLE `dj_car_life_storeapp_base_rule` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`business_code` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '单据编号',
`base_scene_code` varchar(64) DEFAULT NULL COMMENT '基础场景编码',
`shop_merchant_auto_divide` char(1) NOT NULL COMMENT '流量方是否线上自动分账',
`shop_merchant_divide_target` tinyint(2) DEFAULT NULL COMMENT '流量方线上分账对象',
`partner_merchant_auto_divide` char(1) NOT NULL COMMENT '服务商是否线上自动分账',
`partner_merchant_divide_target` tinyint(2) DEFAULT NULL COMMENT '服务商线上分账对象',
`partner_merchant2_auto_divide` char(1) NOT NULL COMMENT '服务商2是否线上自动分账',
`partner_merchant2_divide_target` tinyint(2) DEFAULT NULL COMMENT '服务商2线上分账对象',
`other_fee_divide_target` tinyint(2) DEFAULT NULL COMMENT '其他费用线上分账对象',
`first_line_sunshine_online_points_flag` char(1) NOT NULL COMMENT '一线阳光是否开启线上积分',
`first_line_sunshine2_online_points_flag` char(1) NOT NULL COMMENT '一线阳光2是否开启线上积分',
`market_fee_front` char(1) DEFAULT NULL COMMENT '管理层市场费是否前置',
`sunshine_front` char(1) DEFAULT NULL COMMENT '一线阳光是否前置',
`reality_shop_merchant_id` int(11) DEFAULT NULL COMMENT '实际分账4S店商户号',
`reality_shop_merchant_name` varchar(128) DEFAULT NULL COMMENT '实际分账4S店商户名称',
`reality_shop_user_type` int(11) DEFAULT NULL COMMENT '实际分账4S店商户用户类型',
`reality_shop_level` tinyint(4) NOT NULL DEFAULT '1' COMMENT '流量方分配对象级别(1:门店;2:上级)',
`created_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '创建人',
`created_date` datetime NOT NULL COMMENT '创建时间',
`updated_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '修改人',
`updated_date` datetime NOT NULL COMMENT '修改时间',
`deleted_flag` char(1) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '删除标示(D:已删除;N:未删除)',
PRIMARY KEY (`id`),
KEY `idx_business_code` (`business_code`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COMMENT='门店上架分账基础规则';
-- dj_smartcarlife.dj_car_life_storeapp_distribution_rule definition
CREATE TABLE `dj_car_life_storeapp_distribution_rule` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`business_code` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '单据编号',
`base_scene_code` varchar(64) DEFAULT NULL COMMENT '基础场景编码',
`goods_type_group_id` int(11) NOT NULL COMMENT '商品品类分组id',
`rule_type` tinyint(4) NOT NULL DEFAULT '2' COMMENT '分账规则类型(1-费用归属设置,2-实际分账设置)',
`target_merchant_type` tinyint(4) NOT NULL COMMENT '分配对象类型(1:平台方;2:服务商;3:4s店; 5:服务商2)',
`target_merchant_level` tinyint(4) NOT NULL DEFAULT '1' COMMENT '分配对象类型(1:门店;2:上级)',
`expense_category_id` int(11) NOT NULL COMMENT '费用类目id',
`expense_category_name` varchar(32) NOT NULL COMMENT '费用类目名',
`created_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '创建人',
`created_date` datetime NOT NULL COMMENT '创建时间',
`updated_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '修改人',
`updated_date` datetime NOT NULL COMMENT '修改时间',
`deleted_flag` char(1) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '删除标示(D:已删除;N:未删除)',
PRIMARY KEY (`id`),
KEY `idx_gg` (`business_code`,`goods_type_group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1179 DEFAULT CHARSET=utf8 COMMENT='门店上架分账分配规则';
-- dj_smartcarlife.dj_car_life_storeapp_division_rule_auto definition
CREATE TABLE `dj_car_life_storeapp_division_rule_auto` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`business_code` varchar(24) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '单据编号',
`base_scene_code` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '基础场景编码',
`payment_channel_id` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '支付渠道id',
`payment_channel_name` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '支付渠道名称',
`division_type` tinyint(2) DEFAULT '1' COMMENT '分账方式(1线下对账,2线上分账)',
`auto_flag` char(1) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '自动分账标识(Y是,N否)',
`settle_time_type` tinyint(2) DEFAULT NULL COMMENT '分账时间方式(1:T+1,2:每月)',
`settle_time` tinyint(2) DEFAULT NULL COMMENT '分账时间每月几号',
`created_by` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '创建人',
`created_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_by` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '修改人',
`updated_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`deleted_flag` char(1) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '删除标示(D:已删除;N:未删除)',
PRIMARY KEY (`id`),
KEY `idx_dp` (`business_code`,`payment_channel_id`)
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='门店上架分账规则自动分账配置';
-- dj_smartcarlife.dj_car_life_storeapp_expense_category_rule definition
CREATE TABLE `dj_car_life_storeapp_expense_category_rule` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`business_code` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '单据编号',
`base_scene_code` varchar(64) DEFAULT NULL COMMENT '基础场景编码',
`goods_type_group_id` int(11) NOT NULL COMMENT '商品品类分组id',
`expense_category_id` int(11) NOT NULL COMMENT '费用类目id',
`expense_category_name` varchar(32) NOT NULL COMMENT '费用类目名',
`calculate_mode` tinyint(4) NOT NULL COMMENT '计算模式(1:按照品类计算 2:按整单计算)',
`expense_category_calculate_type` tinyint(4) NOT NULL COMMENT '计算方式(根据应用对象不同可取值与含义不同)',
`expense_category_value` decimal(11,2) DEFAULT NULL COMMENT '费用类目计算值(%/元)',
`created_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '创建人',
`created_date` datetime NOT NULL COMMENT '创建时间',
`updated_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '修改人',
`updated_date` datetime NOT NULL COMMENT '修改时间',
`deleted_flag` char(1) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '删除标示(D:已删除;N:未删除)',
PRIMARY KEY (`id`),
KEY `idx_gg` (`business_code`,`goods_type_group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=961 DEFAULT CHARSET=utf8 COMMENT='门店上架费用类目规则';
-- dj_smartcarlife.dj_car_life_storeapp_goods_type_group definition
CREATE TABLE `dj_car_life_storeapp_goods_type_group` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`business_code` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '单据编号',
`base_scene_code` varchar(64) DEFAULT NULL COMMENT '基础场景编码',
`group_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '品类分组类型(1全部品类2品类集合)',
`rule_type` tinyint(2) NOT NULL COMMENT '规则类型(1:财务;3:对账)',
`category_type` tinyint(2) DEFAULT NULL COMMENT '分类品类(1:按商品分类;2:按具体商品;3:按商品套餐)',
`created_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '创建人',
`created_date` datetime NOT NULL COMMENT '创建时间',
`updated_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '修改人',
`updated_date` datetime NOT NULL COMMENT '修改时间',
`deleted_flag` char(1) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '删除标示(D:已删除;N:未删除)',
`relation_div_id` int(11) DEFAULT NULL COMMENT '对账关联的分账id',
`traffic_settlement_mode` varchar(255) DEFAULT NULL COMMENT '流量结算模式',
PRIMARY KEY (`id`),
KEY `idx_business_code` (`business_code`,`rule_type`)
) ENGINE=InnoDB AUTO_INCREMENT=239 DEFAULT CHARSET=utf8 COMMENT='门店上架品类分组';
-- dj_smartcarlife.dj_car_life_storeapp_goods_type_group_relation definition
CREATE TABLE `dj_car_life_storeapp_goods_type_group_relation` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`business_code` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '单据编号',
`base_scene_code` varchar(64) DEFAULT NULL COMMENT '基础场景编码',
`goods_type_group_id` int(11) DEFAULT NULL COMMENT '商品品类分组id',
`upgrade_goods_id` int(11) DEFAULT NULL COMMENT '升级商品主键ID',
`merchant_goods_code` varchar(32) DEFAULT NULL COMMENT '商户商品编码',
`upgrade_commodity_code` varchar(32) DEFAULT NULL COMMENT '商品ID',
`upgrade_goods_name` varchar(256) DEFAULT NULL COMMENT '升级商品名称',
`goods_type` int(11) DEFAULT NULL COMMENT '商品品类',
`goods_type_name` varchar(32) DEFAULT NULL COMMENT '商品品类名',
`package_code` varchar(32) DEFAULT NULL COMMENT '套餐编码',
`package_name` varchar(64) DEFAULT NULL COMMENT '套餐名称',
`created_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '创建人',
`created_date` datetime NOT NULL COMMENT '创建时间',
`updated_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '修改人',
`updated_date` datetime NOT NULL COMMENT '修改时间',
`deleted_flag` char(1) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '删除标示(D:已删除;N:未删除)',
PRIMARY KEY (`id`),
KEY `idx_goods_type_group_id` (`goods_type_group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=239 DEFAULT CHARSET=utf8 COMMENT='门店上架商品品类组关系';
-- dj_smartcarlife.dj_car_life_storeapp_guarantee definition
CREATE TABLE `dj_car_life_storeapp_guarantee` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`business_code` varchar(64) NOT NULL COMMENT '业务编码(审批单编号)',
`party_id` bigint(20) DEFAULT NULL COMMENT '关联流量方ID',
`base_scene_code` varchar(64) DEFAULT NULL COMMENT '基础场景编码',
`guarantee_index` varchar(128) DEFAULT NULL COMMENT '兜底指标',
`guarantee_standard` decimal(10,4) DEFAULT NULL COMMENT '兜底标准',
`compensation_mode` int(11) DEFAULT NULL COMMENT '赔付标准:0-无,1-固定模式,2-阶梯模式',
`fixed_compensation` decimal(12,4) DEFAULT NULL COMMENT '固定模式赔付金额',
`ladder_conditions` text COMMENT '阶梯模式条件(JSON格式)',
`created_by` varchar(64) DEFAULT NULL COMMENT '创建人',
`created_date` datetime DEFAULT NULL COMMENT '创建时间',
`updated_by` varchar(64) DEFAULT NULL COMMENT '修改人',
`updated_date` datetime DEFAULT NULL COMMENT '更新时间',
`deleted_flag` varchar(1) DEFAULT 'N' COMMENT '删除标识: N-正常, D-已删除',
PRIMARY KEY (`id`),
KEY `idx_business_code` (`business_code`),
KEY `idx_party_id` (`party_id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COMMENT='门店上架兜底配置表';
-- dj_smartcarlife.dj_car_life_storeapp_merchant_ref definition
CREATE TABLE `dj_car_life_storeapp_merchant_ref` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`business_code` varchar(24) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '单据编号',
`base_scene_code` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '基础场景编码',
`merchant_id` int(11) NOT NULL COMMENT '流量方商户号',
`merchant_name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '流量方商户名称',
`parent_merchant_id` int(11) NOT NULL COMMENT '流量方上级商户',
`parent_merchant_name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '流量方上级商户号',
`contracting_merchant_id` int(11) NOT NULL COMMENT '签约主体商户号',
`contracting_merchant_name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '签约主体商户名称',
`yq_merchant_id` int(11) NOT NULL COMMENT '园区店商户号',
`yq_merchant_name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '园区店商户名称',
`partner_merchant_id` int(11) DEFAULT NULL COMMENT '服务商商户号',
`partner_merchant_name` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '服务商商户名称',
`partner_merchant_id2` int(11) DEFAULT NULL COMMENT '服务商2商户号',
`partner_merchant_name2` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '服务商2商户名称',
`parent_partner_merchant_id` int(11) DEFAULT NULL COMMENT '上级服务商商户号',
`parent_partner_merchant_name` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '上级服务商商户名称',
`operation_mode` tinyint(4) DEFAULT NULL COMMENT '运营模式 1-直营 0-非直营',
`province_code` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '省区域编码',
`province_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '省区域名称',
`city_code` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '市区域编码',
`city_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '市区域名称',
`settle_rule_id` int(11) DEFAULT NULL COMMENT '财务规则id(审核通过后,入业务库回写)',
`division_rule_id` int(11) DEFAULT NULL COMMENT '分账规则id(审核通过后,入业务库回写)',
`reconciliation_rule_id` int(11) DEFAULT NULL COMMENT '对账规则(审核通过后,入业务库回写)',
`created_by` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '创建人',
`created_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_by` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '修改人',
`updated_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`deleted_flag` char(1) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'N' COMMENT '删除标识(D:已删除;N:未删除)',
PRIMARY KEY (`id`),
KEY `idx_business_code` (`business_code`)
) ENGINE=InnoDB AUTO_INCREMENT=82 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='门店上架流量方关系表';
-- dj_smartcarlife.dj_car_life_storeapp_metric_config definition
CREATE TABLE `dj_car_life_storeapp_metric_config` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`business_type` int(11) NOT NULL COMMENT '业务类型(1-延保,2-权益,3-轻改)',
`business_type_name` varchar(50) NOT NULL COMMENT '业务类型名称',
`metric_code` varchar(50) NOT NULL COMMENT '指标编码',
`metric_name` varchar(100) NOT NULL COMMENT '指标名称',
`data_type` tinyint(1) NOT NULL COMMENT '数据类型(1-比例,2-数值)',
`data_type_name` varchar(20) NOT NULL COMMENT '数据类型名称',
`sort_order` int(11) DEFAULT '0' COMMENT '排序号',
`status` varchar(1) DEFAULT 'Y' COMMENT '状态(Y-启用,N-禁用)',
`created_by` varchar(50) DEFAULT NULL COMMENT '创建人',
`created_date` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_by` varchar(50) DEFAULT NULL COMMENT '修改人',
`updated_date` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`deleted_flag` varchar(1) DEFAULT 'N' COMMENT '删除标识(N-正常,D-已删除)',
PRIMARY KEY (`id`),
KEY `idx_business_type` (`business_type`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COMMENT='门店上架指标配置表';
-- dj_smartcarlife.dj_car_life_storeapp_personnel_rate_rule definition
CREATE TABLE `dj_car_life_storeapp_personnel_rate_rule` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`base_scene_code` varchar(6) DEFAULT NULL COMMENT '基础场景编码:100101-精品升级, 100102-次新车升配, 100103-售后众筹, 110101-售前会员权益升级, 110102-售后会员权益升级, 110201-售前延保, 110202-售后延保',
`brand_group_code` varchar(64) DEFAULT NULL COMMENT '品牌组编码,为空时表示该场景的默认值',
`brand_group_name` varchar(128) DEFAULT NULL COMMENT '品牌组名称',
`brand_list` varchar(256) DEFAULT NULL COMMENT '品牌ID列表(逗号分隔),如:1,2,3',
`exclude_brand_list` varchar(256) DEFAULT NULL COMMENT '排除品牌ID列表(逗号分隔)',
`personnel_cost_rate` decimal(8,4) DEFAULT NULL COMMENT '人员成本占比 (%)',
`priority` int(11) DEFAULT NULL COMMENT '规则优先级(数字越小优先级越高)',
`rule_desc` varchar(512) DEFAULT NULL COMMENT '规则描述',
`enabled` int(11) DEFAULT '1' COMMENT '是否启用:0-否,1-是',
`created_by` varchar(64) DEFAULT NULL COMMENT '创建人',
`created_date` datetime DEFAULT NULL COMMENT '创建时间',
`updated_by` varchar(64) DEFAULT NULL COMMENT '修改人',
`updated_date` datetime DEFAULT NULL COMMENT '更新时间',
`deleted_flag` char(1) DEFAULT 'N' COMMENT '删除标识: N-正常, D-已删除',
PRIMARY KEY (`id`),
KEY `idx_base_scene_code` (`base_scene_code`)
) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8mb4 COMMENT='门店上架人员成本占比规则配置表';
ALTER TABLE dj_smartcarlife.dj_car_life_store_crebus_approve ADD operator_review_processed int(11) DEFAULT 0 NULL COMMENT '运营专员审核已处理标识: 0-未处理, 1-已处理';
ALTER TABLE dj_smartcarlife.dj_car_life_store_crebus_approve ADD upd_step int(11) NULL COMMENT '编辑的步骤 1.流量方 2.分账 3.对账';
ALTER TABLE `dj_car_life_storeapp_listra_party` ADD COLUMN `base_scene_code` varchar(64) DEFAULT NULL COMMENT '基础场景编码' AFTER `deleted_flag`;
ALTER TABLE `dj_car_life_storeapp_listra_party` ADD INDEX `idx_base_scene_code` (`base_scene_code`);
ALTER TABLE `dj_car_life_storeapp_listra_party` ADD COLUMN `personnel_cost_rate` DECIMAL(8,4) DEFAULT NULL COMMENT '人员成本占比 (%)' AFTER `base_scene_code`;
ALTER TABLE `dj_car_life_storeapp_listra_party` ADD COLUMN `renovation_equipment_cost` DECIMAL(12,2) DEFAULT NULL COMMENT '装修、设备总投入' AFTER `personnel_cost_rate`;
ALTER TABLE `dj_car_life_storeapp_listra_party` ADD COLUMN `estimated_gross_margin` DECIMAL(8,4) DEFAULT NULL COMMENT '预估毛利率 (%)' AFTER `renovation_equipment_cost`;
ALTER TABLE `dj_car_life_storeapp_listra_party` ADD COLUMN `has_guarantee` INT DEFAULT 0 COMMENT '是否存在兜底:0-否,1-是' AFTER `estimated_gross_margin`;
ALTER TABLE `dj_car_life_storeapp_listra_party` ADD COLUMN `monthly_settlement_date` VARCHAR(20) DEFAULT NULL COMMENT '月度结算日期' AFTER `has_guarantee`;
ALTER TABLE `dj_car_life_storeapp_listra_party` ADD COLUMN `estimated_delivery_count_per_month` INT DEFAULT NULL COMMENT '预估交付数/月' AFTER `monthly_settlement_date`;
ALTER TABLE `dj_car_life_storeapp_listra_party` ADD COLUMN `other_cost_per_month` DECIMAL(12,2) DEFAULT NULL COMMENT '其他费用/月(房租、水电、耗材等)' AFTER `estimated_delivery_count_per_month`;
### 周海宝 -----------------end--------------------- ### 周海宝 -----------------end---------------------
......
...@@ -4,6 +4,206 @@ ...@@ -4,6 +4,206 @@
### 周海宝 -----------------start------------------- ### 周海宝 -----------------start-------------------
INSERT INTO `dj_car_life_store_approve_scene` (`business_code`, `scene_type`, `base_scene_code`, `created_by`, `created_date`, `deleted_flag`)
SELECT
`business_code`,
`scene_type`,
`base_scene_code`,
`created_by`,
`created_date`,
0
FROM `dj_car_life_store_crebus_approve`
WHERE `base_scene_code` IS NOT NULL AND `base_scene_code` != '';
UPDATE `dj_car_life_storeapp_listra_party` tpd
JOIN `dj_car_life_store_crebus_approve` main
ON tpd.`business_code` = main.`business_code`
SET tpd.`base_scene_code` = main.`base_scene_code`
WHERE tpd.`base_scene_code` IS NULL;
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('100101', 'JPSJ_HMZX_AITOWJ', '鸿蒙智行/AITO问界', '1,2,3,4,5,6', '', 18.0000, 1, '门店主营品牌同时存在AITO问界和LUXEED智界/MAEXTRO尊界/SAIC尚界/STELATO享界中任意一个或多个', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('100101', 'JPSJ_HMZX', '鸿蒙智行', '1,2,3,4', '5,6', 20.0000, 2, '门店主营品牌存在LUXEED智界/MAEXTRO尊界/SAIC尚界/STELATO享界中任意一个或多个,且不存在AITO问界', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('100101', 'JPSJ_AITOWJ', 'AITO问界', '5,6', '1,2,3,4', 15.0000, 3, '门店主营品牌存在AITO问界中任意一个或多个,且不存在LUXEED智界/MAEXTRO尊界/SAIC尚界/STELATO享界', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('100101', NULL, '其他品牌', '', '', 22.0000, 10, '精品升级场景其他品牌默认值', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('100102', NULL, '次新车升配默认值', '', '', NULL, 1, '次新车升配场景默认值为空', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('100103', NULL, '售后众筹默认值', '', '', NULL, 1, '售后众筹场景默认值为空', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110101', NULL, '售前权益默认值', '', '', 13.6000, 1, '售前会员权益升级场景默认人员成本占比', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110102', NULL, '售后权益默认值', '', '', 13.6000, 1, '售后会员权益升级场景默认人员成本占比', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_WJ', '问界', '5,6', '1,2,3,4', 3.5000, 1, '门店主营品牌存在AITO问界,且不存在LUXEED智界/MAEXTRO尊界/SAIC尚界/STELATO享界', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_ZJXJZJSJ', '智界+享界+尊界+尚界', '1,2,3,4', '5,6', 6.0000, 2, '门店主营品牌存在LUXEED智界/MAEXTRO尊界/SAIC尚界/STELATO享界,且不存在AITO问界', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_HMXT', '鸿蒙体系', '1,2,3,4,5,6', '', 4.0000, 3, '门店主营品牌同时存在AITO问界和LUXEED智界/MAEXTRO尊界/SAIC尚界/STELATO享界', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_GAXM', '广爱项目', '7,8,9,10,11', '', 13.0000, 4, '门店主营品牌ID包含广汽本田/广汽丰田/广汽传祺/广汽埃安/雷克萨斯任一个', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_AWT', '阿维塔', '12', '', 14.0000, 5, '门店一级主营品牌ID包含阿维塔', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_BJEH', '北汽极狐', '13', '', 13.0000, 6, '门店一级主营品牌ID包含ARCFOX极狐', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_BYD', '比亚迪', '14', '', 13.0000, 7, '门店一级主营品牌ID包含比亚迪', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_AUDI', '奥迪', '15', '', 18.0000, 8, '门店一级主营品牌ID包含奥迪', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_JK', '极氪', '16', '', 6.0000, 9, '门店一级主营品牌ID包含极氪', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_BENZ', '奔驰', '17', '', 13.0000, 10, '门店一级主营品牌ID包含奔驰', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_ZJQC', '智己', '18', '', 8.6000, 11, '门店一级主营品牌ID包含智己汽车', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_SMART', 'smart', '19', '', 16.0000, 12, '门店一级主营品牌ID包含smart', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_LPQC', '零跑', '20', '', 8.5000, 13, '门店一级主营品牌ID包含零跑汽车', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_TS_FCB', '腾势/方程豹', '21,22', '', 8.0000, 14, '门店一级主营品牌ID包含腾势或方程豹', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_LTQC', '岚图', '23', '', 4.5000, 15, '门店一级主营品牌ID包含岚图汽车', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_TANK', '坦克', '24', '', 12.0000, 16, '门店一级主营品牌ID包含坦克', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', 'YB_BUICK', '别克', '25', '', 14.0000, 17, '门店一级主营品牌ID包含别克', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110201', NULL, '其他', '', '', NULL, 100, '售前延保场景其他品牌,人员成本占比为空', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_WJ', '问界', '5,6', '1,2,3,4', 3.5000, 1, '门店主营品牌存在AITO问界,且不存在LUXEED智界/MAEXTRO尊界/SAIC尚界/STELATO享界', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_ZJXJZJSJ', '智界+享界+尊界+尚界', '1,2,3,4', '5,6', 6.0000, 2, '门店主营品牌存在LUXEED智界/MAEXTRO尊界/SAIC尚界/STELATO享界,且不存在AITO问界', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_HMXT', '鸿蒙体系', '1,2,3,4,5,6', '', 4.0000, 3, '门店主营品牌同时存在AITO问界和LUXEED智界/MAEXTRO尊界/SAIC尚界/STELATO享界', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_GAXM', '广爱项目', '7,8,9,10,11', '', 13.0000, 4, '门店主营品牌ID包含广汽本田/广汽丰田/广汽传祺/广汽埃安/雷克萨斯任一个', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_AWT', '阿维塔', '12', '', 14.0000, 5, '门店一级主营品牌ID包含阿维塔', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_BJEH', '北汽极狐', '13', '', 13.0000, 6, '门店一级主营品牌ID包含ARCFOX极狐', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_BYD', '比亚迪', '14', '', 13.0000, 7, '门店一级主营品牌ID包含比亚迪', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_AUDI', '奥迪', '15', '', 18.0000, 8, '门店一级主营品牌ID包含奥迪', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_JK', '极氪', '16', '', 6.0000, 9, '门店一级主营品牌ID包含极氪', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_BENZ', '奔驰', '17', '', 13.0000, 10, '门店一级主营品牌ID包含奔驰', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_ZJQC', '智己', '18', '', 8.6000, 11, '门店一级主营品牌ID包含智己汽车', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_SMART', 'smart', '19', '', 16.0000, 12, '门店一级主营品牌ID包含smart', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_LPQC', '零跑', '20', '', 8.5000, 13, '门店一级主营品牌ID包含零跑汽车', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_TS_FCB', '腾势/方程豹', '21,22', '', 8.0000, 14, '门店一级主营品牌ID包含腾势或方程豹', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_LTQC', '岚图', '23', '', 4.5000, 15, '门店一级主营品牌ID包含岚图汽车', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_TANK', '坦克', '24', '', 12.0000, 16, '门店一级主营品牌ID包含坦克', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', 'YB_BUICK', '别克', '25', '', 14.0000, 17, '门店一级主营品牌ID包含别克', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_personnel_rate_rule
(base_scene_code, brand_group_code, brand_group_name, brand_list, exclude_brand_list, personnel_cost_rate, priority, rule_desc, enabled, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES('110202', NULL, '其他', '', '', NULL, 100, '售后延保场景其他品牌,人员成本占比为空', 1, 'system', '2026-07-08 20:37:44', NULL, NULL, 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(1, '延保', 'WR_RATE_001', '整车延保渗透率', 1, '比例', 1, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(1, '延保', 'WR_RATE_002', '安心包渗透率', 1, '比例', 2, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(1, '延保', 'WR_RATE_003', '电池渗透率', 1, '比例', 3, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(1, '延保', 'WR_RATE_004', '轮胎渗透率', 1, '比例', 4, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(1, '延保', 'WR_CONV_001', '整车延保触客转化率', 1, '比例', 5, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(1, '延保', 'WR_CONV_002', '安心包触客转化率', 1, '比例', 6, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(1, '延保', 'WR_CONV_003', '电池触客转化率', 1, '比例', 7, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(1, '延保', 'WR_CONV_004', '轮胎触客转化率', 1, '比例', 8, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(2, '权益', 'BE_CONV_001', '触客转化率', 1, '比例', 1, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(3, '轻改', 'LM_PROFIT_001', '单车利润', 2, '数值', 1, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(3, '轻改', 'LM_COST_001', '车窗膜单车采购成本', 2, '数值', 2, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(3, '轻改', 'LM_COST_002', '车身膜单车采购成本', 2, '数值', 3, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(3, '轻改', 'LM_COST_003', '精品附件单车采购成本', 2, '数值', 4, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(3, '轻改', 'LM_ECO_001', '车窗膜生态系数', 2, '数值', 5, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(3, '轻改', 'LM_ECO_002', '车身膜生态系数', 2, '数值', 6, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
INSERT INTO dj_car_life_storeapp_metric_config
(business_type, business_type_name, metric_code, metric_name, data_type, data_type_name, sort_order, status, created_by, created_date, updated_by, updated_date, deleted_flag)
VALUES(3, '轻改', 'LM_ECO_003', '精品附件生态系数', 2, '数值', 7, 'Y', 'system', '2026-07-14 15:56:29', 'system', '2026-07-14 15:56:29', 'N');
### 周海宝 -----------------end--------------------- ### 周海宝 -----------------end---------------------
### 周立明 -----------------start------------------- ### 周立明 -----------------start-------------------
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!