Commit da5ac184 by 范富荣
2 parents a032fcab 9d88a2a2
Showing 51 changed files with 1644 additions and 101 deletions
## 5.8.0版本code review:
改动代码:
rop-dj-smartcarlife:
- 轻改短课程
- dj.api.smartcarlife.servicecenter.short.course.config.submit 轻改短课程配置-提交
- dj.api.smartcarlife.servicecenter.short.course.config.get 轻改短课程配置-查询
- dj.api.smartcarlife.servicecenter.short.course.phone.import 轻改短课程配置-手机号导入
- dj.api.smartcarlife.servicecenter.short.course.phone.template.export 轻改短课程配置-手机号导入模板导出
- dj.api.smartcarlife.servicecenter.short.course.task.page 轻改短课程配置-学习任务列表
- dj.api.smartcarlife.servicecenter.short.course.task.page.export 轻改短课程配置-学习任务列表导出
- dj.api.smartcarlife.servicecenter.short.course.task.punish.update 轻改短课程配置-短课程任务处罚开关修改
- dj.api.smartcarlife.servicecenter.short.course.task.detail.get 轻改短课程配置-短课程任务详情
- rop-dj-car-boutique
- 报价单订单改造
- dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add 新建车损报价单【改造】
- dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update 修改车损报价单信息【改造】
- dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update 修改车损报价单客户基本信息【改造】
- dj.api.smartcarlife.quotation.correct 标记错误订单(补录新订单)【改造】
- dj.api.smartcarlife.vehicle.damage.upgrade.quotation.additional.recording 新建车损报价单-补录订单【改造】
- dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add.defeat.order 新建车损报价单-战败订单【改造】
- dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id 查询报价单基本录入信息【改造】
- dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page 报价单分页列表【改造】
- dj.api.smartcarlife.vehicle.damage.upgrade.for.pad.page 报价单分页列表(pad端使用)【改造】
- dj.api.smartcarlife.quotationGoods.list 根据商户号商品id获取可选升级商品列表
- dj.api.smartcarlife.selectOrderGoods.list 根据商户号获取可选商品列表
- rop-dj-pad:
- dj.pad.api.staff.light.short.course.task.detail 学习中心-轻改短课程任务详情
- dj.pad.api.staff.light.short.course.detail.finishReview 学习中心-轻改短课程任务明细复盘状态修改
- dj.api.pad.learning.center.study.permission 限制录单弹窗
- D+智享车生活:
- 人员管理-驻店管理:
- 列表、导出、编辑员工、编辑员工-同步北森、编辑员工-新增门店账号、编辑员工-启用|禁用账号、编辑员工-提交、分配门店、北森账号初始化嘀加驻店账号、驻店账号激活流程
影响的功能:
- D+智享车生活
- 轻改短课程
- 轻改短课程配置-提交
- 轻改短课程配置-查询
- 轻改短课程配置-手机号导入
- 轻改短课程配置-手机号导入模板导出
- 轻改短课程配置-学习任务列表
- 轻改短课程配置-学习任务列表导出
- 轻改短课程配置-短课程任务处罚开关修改
- 轻改短课程配置-短课程任务详情
- 生意助手员工版
- 新建车损报价单
- 修改车损报价单
- 修改车损报价单客户基本信息
- 标记错误订单
- 战败订单
- 查询报价单基本录入信息
- 报价单分页列表
- 根据商户号获取可选商品列表
- 展业助手
- 新建车损报价单
- 修改车损报价单
- 修改车损报价单客户基本信息
- 标记错误订单
- 战败订单
- 查询报价单基本录入信息
- 报价单分页列表
- 根据商户号获取可选商品列表
- 学习中心-轻改短课程任务详情
- 学习中心-轻改短课程任务明细复盘状态修改
- 限制录单弹窗
-----------------------------------------
#### review前:
![img.png](img.png)
#### review后:
![img_1.png](img_1.png)
review是否通过:通过
## 5.8.0版本code review:
改动代码:
- rop-dj-smartcarlife
- 商品库-产品管理
- 添加产品 dj.api.smartcarlife.productManager.add
- sku、spu新增字段
- 编辑产品 dj.api.smartcarlife.productManager.update
- sku、spu新增字段
- 根据基础商品Id查询商品 dj.api.basegoods.get.byId
- 新增字段回显
- 商品库-产品清单
- 新增编辑产品清单 dj.api.smartcarlife.productTemplate.addOrUpdate
- dj.api.smartcarlife.map.districts.provinceCity 查询地图行政区域省市二级树结构
- 影响功能点:
- D+智享车生活
- 商品库-产品管理
- 添加产品 dj.api.smartcarlife.productManager.add
- sku、spu新增字段
- 编辑产品 dj.api.smartcarlife.productManager.update
- sku、spu新增字段
- 根据基础商品Id查询商品 dj.api.basegoods.get.byId
- 新增字段回显
- 产品清单
- 新增编辑产品清单 dj.api.smartcarlife.productTemplate.addOrUpdate
- dj.api.smartcarlife.map.districts.provinceCity 查询地图行政区域省市二级树结构
-----------------------------------------
#### review前:
![img.png](img.png)
#### review后:
![img_1.png](img_1.png)
review是否通过:通过
...@@ -329,7 +329,7 @@ CREATE TABLE `dj_car_life_goods_listing_expense_category_rule` ( ...@@ -329,7 +329,7 @@ CREATE TABLE `dj_car_life_goods_listing_expense_category_rule` (
`expense_category_name` varchar(32) NOT NULL COMMENT '费用类目名', `expense_category_name` varchar(32) NOT NULL COMMENT '费用类目名',
`calculate_mode` tinyint(4) NOT NULL COMMENT '计算模式(1:按照品类计算 2:按整单计算)', `calculate_mode` tinyint(4) NOT NULL COMMENT '计算模式(1:按照品类计算 2:按整单计算)',
`expense_category_calculate_type` tinyint(4) NOT NULL COMMENT '计算方式(根据应用对象不同可取值与含义不同)', `expense_category_calculate_type` tinyint(4) NOT NULL COMMENT '计算方式(根据应用对象不同可取值与含义不同)',
`expense_category_value` decimal(11,2) NOT NULL COMMENT '费用类目计算值(%/元)', `expense_category_value` decimal(11,2) NULL COMMENT '费用类目计算值(%/元)',
`created_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '创建人', `created_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '创建人',
`created_date` datetime NOT NULL COMMENT '创建时间', `created_date` datetime NOT NULL COMMENT '创建时间',
`updated_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '修改人', `updated_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '修改人',
...@@ -416,6 +416,10 @@ ALTER TABLE dj_car_life_goods_type_group_relation ...@@ -416,6 +416,10 @@ ALTER TABLE dj_car_life_goods_type_group_relation
ALTER TABLE dj_car_life_rule_test_good ALTER TABLE dj_car_life_rule_test_good
ADD COLUMN base_scene_code VARCHAR(32) COMMENT '基础场景编码' AFTER scene_type; ADD COLUMN base_scene_code VARCHAR(32) COMMENT '基础场景编码' AFTER scene_type;
# 添加索引,历史数据处理需要查询
CREATE INDEX idx_division_rule_group_lookup
ON dj_car_life_merchant_goods_type_group_division_rule(division_rule_id, goods_type_group_id, deleted_flag);
### 林冲 -----------------end---------------------- ### 林冲 -----------------end----------------------
### 潘诗林 -----------------start------------------- ### 潘诗林 -----------------start-------------------
......
...@@ -32,8 +32,7 @@ CREATE TABLE `sale_close_store_record` ( ...@@ -32,8 +32,7 @@ CREATE TABLE `sale_close_store_record` (
`expected_operation_date` datetime DEFAULT NULL COMMENT '展业时间快照', `expected_operation_date` datetime DEFAULT NULL COMMENT '展业时间快照',
`business_types` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务类型编码快照', `business_types` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务类型编码快照',
`cooperation_mode` tinyint(4) DEFAULT NULL COMMENT '合作模式快照', `cooperation_mode` tinyint(4) DEFAULT NULL COMMENT '合作模式快照',
`main_brands` text COLLATE utf8mb4_unicode_ci COMMENT '主营品牌快照', `main_brands` text COLLATE utf8mb4_unicode_ci COMMENT '展示品牌名称 (取二级品牌)',
`sub_brands` text COLLATE utf8mb4_unicode_ci COMMENT '二级品牌快照',
`main_brand_ids` text COLLATE utf8mb4_unicode_ci COMMENT '主营品牌一级ID快照', `main_brand_ids` text COLLATE utf8mb4_unicode_ci COMMENT '主营品牌一级ID快照',
`sub_brand_ids` text COLLATE utf8mb4_unicode_ci COMMENT '二级品牌ID快照', `sub_brand_ids` text COLLATE utf8mb4_unicode_ci COMMENT '二级品牌ID快照',
`province_id` int(8) DEFAULT NULL COMMENT '省份ID快照', `province_id` int(8) DEFAULT NULL COMMENT '省份ID快照',
......
This diff could not be displayed because it is too large.
...@@ -54,23 +54,3 @@ UPDATE dj_car_life_vd_quotation t1 ...@@ -54,23 +54,3 @@ UPDATE dj_car_life_vd_quotation t1
INNER JOIN dj_car_life_goods_order t2 ON t1.pay_id = t2.order_code INNER JOIN dj_car_life_goods_order t2 ON t1.pay_id = t2.order_code
SET t1.base_scene_code = t2.base_scene_code SET t1.base_scene_code = t2.base_scene_code
WHERE t1.pay_id IS NOT NULL and t2.scene_type=0; WHERE t1.pay_id IS NOT NULL and t2.scene_type=0;
\ No newline at end of file \ No newline at end of file
### 刷商品子订单商品编码、商品id、套餐编码 (会员权益 延保 售后)
UPDATE `dj_car_life_goods_sub_order` s
LEFT JOIN `dj_car_life_goods_order` o ON o.order_code = s.order_code AND o.deleted_flag = 'N'
LEFT JOIN `dj_car_life_goods_order_customer` c ON c.order_code = s.order_code AND c.deleted_flag = 'N'
LEFT JOIN `dj_car_life_merchant_goods_info` mg ON mg.merchant_goods_code = CONCAT(s.merchant_goods_code, 'D') AND mg.deleted_flag = 'N'
SET
s.merchant_goods_code = CONCAT(s.merchant_goods_code, 'D'),
s.merchant_goods_id = mg.id,
s.package_code = mg.package_code
WHERE s.base_goods_type IN (
SELECT category_type
FROM `dj_car_life_goods_category_configuration`
WHERE category_name IN ('整车延保','安心包','轮胎','电池延保','原厂权益')
)
AND s.deleted_flag = 'N'
AND o.scene_type = 0
AND o.business_type = 2
AND c.sales_type = 1;
\ No newline at end of file \ No newline at end of file
-- 标签包含 '1'(轻改) 的员工,合并为一条 INSERT 语句:轻改》精品升级 -- 标签包含 '1'(轻改) 的员工,INSERT 语句:轻改》精品升级
select concat( select concat(
'INSERT INTO dj_car_life_staff_account_scene (account_record_id, base_scene_code, scene_type) VALUES ', 'INSERT INTO dj_car_life_staff_account_scene (account_record_id, base_scene_code, scene_type) VALUES (', id, ', ''100101'', 1);'
GROUP_CONCAT(
concat('(', id, ', ''100101'', 1)')
SEPARATOR ', '
),
';'
) AS insert_sql ) AS insert_sql
FROM dj_smartcarlife.dj_car_life_staff_account_record FROM dj_smartcarlife.dj_car_life_staff_account_record
where deleted_flag != 'D' where deleted_flag != 'D'
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
```properties ```properties
# 【新增】嘀加驻店员工业务场景所属业务大类与账户中心员工标签映射关系:轻改→精品升级("1":"1");权益→会员权益升级("2":"0") # 【新增】嘀加驻店员工业务场景所属业务大类与账户中心员工标签映射关系:轻改→精品升级("1":"1");权益→会员权益升级("2":"0")
scene.staff.label.map={"1":"1","2":"0"} scene.staff.label.map={"1":"1","2":"0"}
# 【新增】账户中心新建账号-场景初始化,账户中心员工标签与初始化场景编码映射
account.center.staff.scene.init.map={"1":"100101","0":"110101,110102,110201,110202"}
# 指标默认品牌传参 # 指标默认品牌传参
dj.smartcarlife.data.default.brandIds=-1,-2,2695,-4 dj.smartcarlife.data.default.brandIds=-1,-2,2695,-4
...@@ -16,6 +18,8 @@ dj.smartcarlife.data.default.brandIds=-1,-2,2695,-4 ...@@ -16,6 +18,8 @@ dj.smartcarlife.data.default.brandIds=-1,-2,2695,-4
```properties ```properties
# 【新增】嘀加驻店员工业务场景所属业务大类与账户中心员工标签映射关系:轻改→精品升级("1":"1");权益→会员权益升级("2":"0") # 【新增】嘀加驻店员工业务场景所属业务大类与账户中心员工标签映射关系:轻改→精品升级("1":"1");权益→会员权益升级("2":"0")
scene.staff.label.map={"1":"1","2":"0"} scene.staff.label.map={"1":"1","2":"0"}
# 【新增】账户中心新建账号-场景初始化,账户中心员工标签与初始化场景编码映射
account.center.staff.scene.init.map={"1":"100101","0":"110101,110102,110201,110202"}
# 指标默认品牌传参 # 指标默认品牌传参
dj.smartcarlife.data.default.brandIds=-1,-2,2695,-4 dj.smartcarlife.data.default.brandIds=-1,-2,2695,-4
...@@ -25,6 +29,8 @@ dj.smartcarlife.data.default.brandIds=-1,-2,2695,-4 ...@@ -25,6 +29,8 @@ dj.smartcarlife.data.default.brandIds=-1,-2,2695,-4
```properties ```properties
# 【新增】嘀加驻店员工业务场景所属业务大类与账户中心员工标签映射关系:轻改→精品升级("1":"1");权益→会员权益升级("2":"0") # 【新增】嘀加驻店员工业务场景所属业务大类与账户中心员工标签映射关系:轻改→精品升级("1":"1");权益→会员权益升级("2":"0")
scene.staff.label.map={"1":"1","2":"0"} scene.staff.label.map={"1":"1","2":"0"}
# 【新增】账户中心新建账号-场景初始化,账户中心员工标签与初始化场景编码映射
account.center.staff.scene.init.map={"1":"100101","0":"110101,110102,110201,110202"}
``` ```
### 线上环境 ### 线上环境
...@@ -32,6 +38,8 @@ scene.staff.label.map={"1":"1","2":"0"} ...@@ -32,6 +38,8 @@ scene.staff.label.map={"1":"1","2":"0"}
```properties ```properties
# 【新增】嘀加驻店员工业务场景所属业务大类与账户中心员工标签映射关系:轻改→精品升级("1":"1");权益→会员权益升级("2":"0") # 【新增】嘀加驻店员工业务场景所属业务大类与账户中心员工标签映射关系:轻改→精品升级("1":"1");权益→会员权益升级("2":"0")
scene.staff.label.map={"1":"1","2":"0"} scene.staff.label.map={"1":"1","2":"0"}
# 【新增】账户中心新建账号-场景初始化,账户中心员工标签与初始化场景编码映射
account.center.staff.scene.init.map={"1":"100101","0":"110101,110102,110201,110202"}
``` ```
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
| http://192.168.3.233:8090/dj/rpc-dj-smartcarlife-job.git | v5.8.0 | rpc-dj-smartcarlife-job | 谢海旭 | | | | | http://192.168.3.233:8090/dj/rpc-dj-smartcarlife-job.git | v5.8.0 | rpc-dj-smartcarlife-job | 谢海旭 | | | |
| http://192.168.3.233:8090/dj/rpc-riskmanage.git | v5.8.0 | rpc-dj-riskmanage | 谢海旭 | | | | | http://192.168.3.233:8090/dj/rpc-riskmanage.git | v5.8.0 | rpc-dj-riskmanage | 谢海旭 | | | |
| http://192.168.3.233:8090/dj/rop-dj-staff.git | v5.8.0 | rop-dj-staff | 谢海旭 | | | | | http://192.168.3.233:8090/dj/rop-dj-staff.git | v5.8.0 | rop-dj-staff | 谢海旭 | | | |
| http://192.168.3.233:8090/dj/rpc-staff.git 【二轮新增项目】 | v5.8.0 | rpc-dj-staff | 叶立庆 | | | |
| http://192.168.3.233:8090/dj/rpc-mindworkplate.git | v5.8.0 | rpc-dj-mindworkplate | 庞善天 | | | | | http://192.168.3.233:8090/dj/rpc-mindworkplate.git | v5.8.0 | rpc-dj-mindworkplate | 庞善天 | | | |
| http://192.168.3.233:8090/dj/rop-dj-pad.git | v5.8.0 | rop-dj-pad | 庞善天 | | | | | http://192.168.3.233:8090/dj/rop-dj-pad.git | v5.8.0 | rop-dj-pad | 庞善天 | | | |
| http://192.168.3.233:8090/dj/rop-dj-sale.git | v5.8.0 | rop-dj-sale | 张富康 | | | | | http://192.168.3.233:8090/dj/rop-dj-sale.git | v5.8.0 | rop-dj-sale | 张富康 | | | |
...@@ -44,7 +45,9 @@ ...@@ -44,7 +45,9 @@
#### 第一轮提测 #### 第一轮提测
#### 变更内容 #### 变更内容
rop-dj-smartcarlife: rop-dj-smartcarlife:
- dj.api.smartcarlife.staffBaseInfo.beiSenJobPost.page 北森岗位分页查询 - dj.api.smartcarlife.staffBaseInfo.beiSenJobPost.page 北森岗位分页查询
- dj.api.smartcarlife.staffBaseInfo.beiSenEmployee.page 北森员工信息分页查询 - dj.api.smartcarlife.staffBaseInfo.beiSenEmployee.page 北森员工信息分页查询
- dj.api.smartcarlife.staffBaseInfo.account.disable 园区店账号禁用/启用切换 - dj.api.smartcarlife.staffBaseInfo.account.disable 园区店账号禁用/启用切换
...@@ -91,26 +94,27 @@ rop-dj-smartcarlife: ...@@ -91,26 +94,27 @@ rop-dj-smartcarlife:
- dj.api.smartcarlife.servicecenter.short.course.task.punish.update 轻改短课程配置-短课程任务处罚开关修改 - dj.api.smartcarlife.servicecenter.short.course.task.punish.update 轻改短课程配置-短课程任务处罚开关修改
- dj.api.smartcarlife.servicecenter.short.course.task.detail.get 轻改短课程配置-短课程任务详情 - dj.api.smartcarlife.servicecenter.short.course.task.detail.get 轻改短课程配置-短课程任务详情
rpc-dj-smartcarlife: rpc-dj-smartcarlife:
- cn.com.glsx.dj.smartcarlife.remote.StaffBaseInfoRemote#assignStaffMerchant 员工基础账号分配门店 - cn.com.glsx.dj.smartcarlife.remote.StaffBaseInfoRemote#assignStaffMerchant 员工基础账号分配门店
- cn.com.glsx.dj.smartcarlife.service.merchantPerformanceConfig.StaffBaseInfoService#updateStaffDetailInfo 驻店员工详情信息修改 - cn.com.glsx.dj.smartcarlife.service.merchantPerformanceConfig.StaffBaseInfoService#updateStaffDetailInfo 驻店员工详情信息修改
rpc-dj-riskmanage: rpc-dj-riskmanage:
- cn.com.glsx.dj.riskmanage.mapper.beisen.BeiSenJobPostMapper#beiSenJobPostPage 北森岗位分页查询 - cn.com.glsx.dj.riskmanage.mapper.beisen.BeiSenJobPostMapper#beiSenJobPostPage 北森岗位分页查询
rpc-dj-smartcarlife-job: rpc-dj-smartcarlife-job:
- ActivateAssignedStaffWithOrderJob 检查已分配门店员工订单激活状态 - ActivateAssignedStaffWithOrderJob 检查已分配门店员工订单激活状态
- InitBeisenStaffAccountJob 初始化北森在职员工嘀加账号 - InitBeisenStaffAccountJob 初始化北森在职员工嘀加账号
- SyncBeisenDimissionStatusJob 同步北森员工离职状态 - SyncBeisenDimissionStatusJob 同步北森员工离职状态
platform-merchants-container: platform-merchants-container:
- cn.com.glsx.merchants.remote.MerchantStaffRemote#getBeisenUserByUserId 通过北森 userId 查询北森员工详情 - cn.com.glsx.merchants.remote.MerchantStaffRemote#getBeisenUserByUserId 通过北森 userId 查询北森员工详情
- cn.com.glsx.merchants.remote.MerchantUserRemote#selectNewBeisenEmployeeInfo 获取新入职北森员工信息 - cn.com.glsx.merchants.remote.MerchantUserRemote#selectNewBeisenEmployeeInfo 获取新入职北森员工信息
- rop-dj-smartcarlife - rop-dj-smartcarlife
- 商品库-产品管理 - 商品库-产品管理
- 添加产品 dj.api.smartcarlife.productManager.add - 添加产品 dj.api.smartcarlife.productManager.add
...@@ -134,38 +138,56 @@ platform-merchants-container: ...@@ -134,38 +138,56 @@ platform-merchants-container:
- 财务分账、对账规则查询相关 - 财务分账、对账规则查询相关
- dj.api.smartcarlife.divisionRuleEffectRecord.listHistoryRecord 历史记录-财务分账规则 - dj.api.smartcarlife.divisionRuleEffectRecord.listHistoryRecord 历史记录-财务分账规则
- 增加baseSceneCode字段 cn.com.glsx.dj.smartcarlife.request.smartcarlife.merchantSettleDistributeRule.ListHistoryRecordRequest - 增加baseSceneCode字段
- 修改 cn.com.glsx.dj.smartcarlife.controller.smartCarLife.DivisionRuleEffectRecordController#listHistoryRecord 优先使用 baseSceneCode 查询 cn.com.glsx.dj.smartcarlife.request.smartcarlife.merchantSettleDistributeRule.ListHistoryRecordRequest
- 修改 cn.com.glsx.dj.smartcarlife.controller.smartCarLife.DivisionRuleEffectRecordController#listHistoryRecord
优先使用 baseSceneCode 查询
- dj.api.smartcarlife.reconciliationRuleEffectRecord.listHistoryRecord 历史记录-对账规则 - dj.api.smartcarlife.reconciliationRuleEffectRecord.listHistoryRecord 历史记录-对账规则
- 增加baseSceneCode字段 cn.com.glsx.dj.smartcarlife.request.smartcarlife.DivisionRuleEffectRecordHistoryRequest - 增加baseSceneCode字段 cn.com.glsx.dj.smartcarlife.request.smartcarlife.DivisionRuleEffectRecordHistoryRequest
- 修改 cn.com.glsx.dj.smartcarlife.controller.smartCarLife.DivisionRuleEffectRecordController#listReconciliationHistoryRecord 优先使用 baseSceneCode 查询 - 修改
cn.com.glsx.dj.smartcarlife.controller.smartCarLife.DivisionRuleEffectRecordController#listReconciliationHistoryRecord
优先使用 baseSceneCode 查询
- dj.api.smartcarlife.merchantSettleDistributeRule.lastRule 获取商户最新的财务分账规则 - dj.api.smartcarlife.merchantSettleDistributeRule.lastRule 获取商户最新的财务分账规则
- 增加baseSceneCode字段 cn.com.glsx.dj.smartcarlife.request.smartcarlife.merchantSettleDistributeRule.MerchantSettleDistributeRuleLastRuleRequest - 增加baseSceneCode字段
- 新增 cn.com.glsx.dj.smartcarlife.service.smartcarlife.MerchantSettleDistributeRuleService#getLastRuleWithPriority 优先使用 baseSceneCode 查询规则 cn.com.glsx.dj.smartcarlife.request.smartcarlife.merchantSettleDistributeRule.MerchantSettleDistributeRuleLastRuleRequest
- 修改 cn.com.glsx.dj.smartcarlife.controller.smartCarLife.MerchantSettleDistributeRuleController#getLastRule 调整入参,替换调用为 getLastRuleWithPriority 方法 - 新增 cn.com.glsx.dj.smartcarlife.service.smartcarlife.MerchantSettleDistributeRuleService#getLastRuleWithPriority
优先使用 baseSceneCode 查询规则
- 修改 cn.com.glsx.dj.smartcarlife.controller.smartCarLife.MerchantSettleDistributeRuleController#getLastRule
调整入参,替换调用为 getLastRuleWithPriority 方法
- dj.api.smartcarlife.reconciliation.getEffectRule 查询最新的对账规则 - dj.api.smartcarlife.reconciliation.getEffectRule 查询最新的对账规则
- 增加baseSceneCode字段 cn.com.glsx.dj.smartcarlife.request.smartcarlife.QueryReconciliationRequest - 增加baseSceneCode字段 cn.com.glsx.dj.smartcarlife.request.smartcarlife.QueryReconciliationRequest
- 新增 cn.com.glsx.dj.smartcarlife.service.smartcarlife.MerchantReconciliationRuleService#getEffectReconciliationRuleWithPriority 优先使用 baseSceneCode 查询对账规则 - 新增
- 修改 cn.com.glsx.dj.smartcarlife.controller.smartCarLife.ReconciliationController#getEffectReconciliationRule 调整入参,替换调用为 getEffectReconciliationRuleWithPriority cn.com.glsx.dj.smartcarlife.service.smartcarlife.MerchantReconciliationRuleService#getEffectReconciliationRuleWithPriority
优先使用 baseSceneCode 查询对账规则
- 修改 cn.com.glsx.dj.smartcarlife.controller.smartCarLife.ReconciliationController#getEffectReconciliationRule
调整入参,替换调用为 getEffectReconciliationRuleWithPriority
- 保存财务分账、对账规则相关 - 保存财务分账、对账规则相关
- 多个请求实体类(DTO/Request)新增 `baseSceneCode` 字段,以支持细粒度场景的入参 - 多个请求实体类(DTO/Request)新增 `baseSceneCode` 字段,以支持细粒度场景的入参
- cn.com.glsx.dj.smartcarlife.request.smartcarlife.SaveReconciliationRuleRequest - cn.com.glsx.dj.smartcarlife.request.smartcarlife.SaveReconciliationRuleRequest
- cn.com.glsx.dj.smartcarlife.request.smartcarlife.merchantSettleDistributeRule.MerchantSettleDistributeRuleSaveRequest -
- cn.com.glsx.dj.smartcarlife.request.smartcarlife.merchantSettleDistributeRule.MerchantSettleDistributeRuleSubmitRequest cn.com.glsx.dj.smartcarlife.request.smartcarlife.merchantSettleDistributeRule.MerchantSettleDistributeRuleSaveRequest
- cn.com.glsx.dj.smartcarlife.request.smartcarlife.merchantSettleDistributeRule.MerchantSettleDistributeRuleTestRuleRequest -
cn.com.glsx.dj.smartcarlife.request.smartcarlife.merchantSettleDistributeRule.MerchantSettleDistributeRuleSubmitRequest
-
cn.com.glsx.dj.smartcarlife.request.smartcarlife.merchantSettleDistributeRule.MerchantSettleDistributeRuleTestRuleRequest
- 向下游 RPC 传递 `baseSceneCode` 字段(在提交规则阶段) - 向下游 RPC 传递 `baseSceneCode` 字段(在提交规则阶段)
- 修改 cn.com.glsx.dj.smartcarlife.service.smartcarlife.MerchantSettleDistributeRuleService#submitRule 逻辑,将 Request 中的 baseSceneCode 塞入 DTO 实体中 - 修改 cn.com.glsx.dj.smartcarlife.service.smartcarlife.MerchantSettleDistributeRuleService#submitRule
逻辑,将 Request 中的 baseSceneCode 塞入 DTO 实体中
- 财务规则、对账规则从upgrade_goods_id升级为merchant_goods_code - 财务规则、对账规则从upgrade_goods_id升级为merchant_goods_code
- 增加商户商品编码与操作类型字段,支持增量定义 cn.com.glsx.dj.smartcarlife.request.smartcarlife.merchantSettleDistributeRule - 增加商户商品编码与操作类型字段,支持增量定义
cn.com.glsx.dj.smartcarlife.request.smartcarlife.merchantSettleDistributeRule
- 增加商户商品编码字段 `merchantGoodsCode` GoodsTypeItem - 增加商户商品编码字段 `merchantGoodsCode` GoodsTypeItem
- 增加操作类型字段 `type` (ADD/UPDATE/DELETE) MerchantGoodsTypeGroupSettleDivisionRuleItem - 增加操作类型字段 `type` (ADD/UPDATE/DELETE) MerchantGoodsTypeGroupSettleDivisionRuleItem
- 增加操作类型字段 `type` (ADD/UPDATE/DELETE) cn.com.glsx.dj.smartcarlife.request.smartcarlife.reconciliationRule.GoodsTypeGroupReconciliationRule - 增加操作类型字段 `type` (ADD/UPDATE/DELETE)
- 补充 `merchantGoodsCode` 参数断言验证用例 cn.com.glsx.dj.smartcarlife.controller.smartCarlife.CreateBusinessApproveControllerTest cn.com.glsx.dj.smartcarlife.request.smartcarlife.reconciliationRule.GoodsTypeGroupReconciliationRule
- 补充 `merchantGoodsCode` 参数断言验证用例
cn.com.glsx.dj.smartcarlife.controller.smartCarlife.CreateBusinessApproveControllerTest
- 订单改造 - 订单改造
- dj.api.smartcarlife.ordermanage.page(订单管理分页,新增baseSceneCode,businessType,去除施工单信息) - dj.api.smartcarlife.ordermanage.page(订单管理分页,新增baseSceneCode,businessType,去除施工单信息)
- dj.smartcarlife.api.scene.list.with.order(查询存在订单数据的场景列表,bizTypeCode:业务大类标识,1-轻改,2-权益, businessType:1-会员权益,2-延保) - dj.smartcarlife.api.scene.list.with.order(查询存在订单数据的场景列表,bizTypeCode:业务大类标识,1-轻改,2-权益,
businessType:1-会员权益,2-延保)
- dj.api.smartcarlife.ordermanage.count(订单管理总计,新增baseSceneCode,businessType) - dj.api.smartcarlife.ordermanage.count(订单管理总计,新增baseSceneCode,businessType)
- dj.api.smartcarlife.ordermanage.export (新增baseSceneCode,businessType,去除施工单信息) - dj.api.smartcarlife.ordermanage.export (新增baseSceneCode,businessType,去除施工单信息)
- dj.api.smartcarlife.ordermanage.export.head.template(查询动态导出字段,去除施工单字段) - dj.api.smartcarlife.ordermanage.export.head.template(查询动态导出字段,去除施工单字段)
...@@ -197,14 +219,18 @@ platform-merchants-container: ...@@ -197,14 +219,18 @@ platform-merchants-container:
- 嘀加库存管理-发货单导出 dj.api.smarcarlife.purchaseOrder.delivery.export.async - 嘀加库存管理-发货单导出 dj.api.smarcarlife.purchaseOrder.delivery.export.async
​
- rpc-dj-smartcarlife-api - rpc-dj-smartcarlife-api
- 增加根据baseSceneCode获取分账历史记录列表 cn.com.glsx.dj.smartcarlife.remote.DivisionRuleEffectRecordRemote#listHistoryRecordWithBaseSceneCode - 增加根据baseSceneCode获取分账历史记录列表
- 增加根据baseSceneCode获取对账历史记录列表 cn.com.glsx.dj.smartcarlife.remote.DivisionRuleEffectRecordRemote#listReconciliationHistoryRecordWithBaseSceneCode cn.com.glsx.dj.smartcarlife.remote.DivisionRuleEffectRecordRemote#listHistoryRecordWithBaseSceneCode
- 增加根据baseSceneCode获取商户最新分账规则 cn.com.glsx.dj.smartcarlife.remote.MerchantSettleDistributeRuleRemote#getLastRuleWithBaseSceneCode - 增加根据baseSceneCode获取对账历史记录列表
- 增加根据baseSceneCode获取最新的对账规则 cn.com.glsx.dj.smartcarlife.remote.MerchantReconciliationRuleRemote#getEffectReconciliationRuleWithBaseSceneCode cn.com.glsx.dj.smartcarlife.remote.DivisionRuleEffectRecordRemote#listReconciliationHistoryRecordWithBaseSceneCode
- 实体类层统一补充 baseSceneCode 字段透传 (包含 DivisionRuleEffectRecord, GoodsTypeGroupRelation, MerchantReconciliationRule, MerchantSettleAccountRule) - 增加根据baseSceneCode获取商户最新分账规则
cn.com.glsx.dj.smartcarlife.remote.MerchantSettleDistributeRuleRemote#getLastRuleWithBaseSceneCode
- 增加根据baseSceneCode获取最新的对账规则
cn.com.glsx.dj.smartcarlife.remote.MerchantReconciliationRuleRemote#getEffectReconciliationRuleWithBaseSceneCode
- 实体类层统一补充 baseSceneCode 字段透传 (包含 DivisionRuleEffectRecord, GoodsTypeGroupRelation,
MerchantReconciliationRule, MerchantSettleAccountRule)
- 财务规则、对账规则从upgrade_goods_id升级为merchant_goods_code - 财务规则、对账规则从upgrade_goods_id升级为merchant_goods_code
- 新增操作类型标识字段 `type` cn.com.glsx.dj.smartcarlife.dto.MerchantGoodsTypeGroupReconciliationRuleDTO - 新增操作类型标识字段 `type` cn.com.glsx.dj.smartcarlife.dto.MerchantGoodsTypeGroupReconciliationRuleDTO
- 新增操作类型标识字段 `type` cn.com.glsx.dj.smartcarlife.dto.MerchantGoodsTypeGroupSettleDivisionRuleDTO - 新增操作类型标识字段 `type` cn.com.glsx.dj.smartcarlife.dto.MerchantGoodsTypeGroupSettleDivisionRuleDTO
...@@ -213,10 +239,12 @@ platform-merchants-container: ...@@ -213,10 +239,12 @@ platform-merchants-container:
- rpc-dj-smartcarlife - rpc-dj-smartcarlife
- 特殊流程的分账都线下对账,全部分配平台方 - 特殊流程的分账都线下对账,全部分配平台方
- cn.com.glsx.dj.smartcarlife.service.OrderTotalReportService#handleOrderUpgrade(cn.com.glsx.dj.smartcarlife.dto.GoodsOrderDTO, boolean) - cn.com.glsx.dj.smartcarlife.service.OrderTotalReportService#handleOrderUpgrade(
cn.com.glsx.dj.smartcarlife.dto.GoodsOrderDTO, boolean)
- cn.com.glsx.dj.smartcarlife.service.OrderTotalReportService#isOfflinePlatformOrder - cn.com.glsx.dj.smartcarlife.service.OrderTotalReportService#isOfflinePlatformOrder
- cn.com.glsx.dj.smartcarlife.service.GoodsOrderProfitAllocationService#saveOfflinePlatformProfitAllocation - cn.com.glsx.dj.smartcarlife.service.GoodsOrderProfitAllocationService#saveOfflinePlatformProfitAllocation
- cn.com.glsx.dj.smartcarlife.service.OrderDivisionService#saveOfflinePlatformOrderDivision 注册 divisionRequest 事务回调,以便线上支付订单能够正常发起分账请求 - cn.com.glsx.dj.smartcarlife.service.OrderDivisionService#saveOfflinePlatformOrderDivision 注册
divisionRequest 事务回调,以便线上支付订单能够正常发起分账请求
- 保存财务分账、对账规则相关 - 保存财务分账、对账规则相关
- 规则数据传输对象新增 `baseSceneCode` - 规则数据传输对象新增 `baseSceneCode`
...@@ -230,33 +258,49 @@ platform-merchants-container: ...@@ -230,33 +258,49 @@ platform-merchants-container:
- cn.com.glsx.dj.smartcarlife.service.MerchantReconciliationRuleService - cn.com.glsx.dj.smartcarlife.service.MerchantReconciliationRuleService
- cn.com.glsx.dj.smartcarlife.service.MerchantReconciliationRuleStepService - cn.com.glsx.dj.smartcarlife.service.MerchantReconciliationRuleStepService
- 财务分账、对账规则查询相关 - 财务分账、对账规则查询相关
- 增加根据baseSceneCode获取分账历史记录列表实现 cn.com.glsx.dj.smartcarlife.remote.DivisionRuleEffectRecordRemoteImpl#listHistoryRecordWithBaseSceneCode - 增加根据baseSceneCode获取分账历史记录列表实现
- 新增,复用原有方法,添加baseSceneCode查询组合 cn.com.glsx.dj.smartcarlife.service.DivisionRuleEffectRecordService#listHistoryRecordWithBaseSceneCode cn.com.glsx.dj.smartcarlife.remote.DivisionRuleEffectRecordRemoteImpl#listHistoryRecordWithBaseSceneCode
- 新增,获取未生效记录,添加baseSceneCode过滤 cn.com.glsx.dj.smartcarlife.service.DivisionRuleEffectRecordService#listWaitToEffectRuleWithBaseSceneCode - 新增,复用原有方法,添加baseSceneCode查询组合
cn.com.glsx.dj.smartcarlife.service.DivisionRuleEffectRecordService#listHistoryRecordWithBaseSceneCode
- 新增,获取未生效记录,添加baseSceneCode过滤
cn.com.glsx.dj.smartcarlife.service.DivisionRuleEffectRecordService#listWaitToEffectRuleWithBaseSceneCode
- xml新增baseSceneCode条件支持 cn.com.glsx.dj.smartcarlife.mapper.RuleAuditMapper#list - xml新增baseSceneCode条件支持 cn.com.glsx.dj.smartcarlife.mapper.RuleAuditMapper#list
- 新增,获取已生效记录,添加baseSceneCode过滤 cn.com.glsx.dj.smartcarlife.service.DivisionRuleEffectRecordService#getEffectHistoryRecordsWithBaseSceneCode - 新增,获取已生效记录,添加baseSceneCode过滤
cn.com.glsx.dj.smartcarlife.service.DivisionRuleEffectRecordService#getEffectHistoryRecordsWithBaseSceneCode
- xml新增baseSceneCode条件支持 cn.com.glsx.dj.smartcarlife.mapper.DivisionRuleEffectRecordMapper#list - xml新增baseSceneCode条件支持 cn.com.glsx.dj.smartcarlife.mapper.DivisionRuleEffectRecordMapper#list
- 增加根据baseSceneCode获取对账历史记录列表实现 cn.com.glsx.dj.smartcarlife.remote.DivisionRuleEffectRecordRemoteImpl#listReconciliationHistoryRecordWithBaseSceneCode - 增加根据baseSceneCode获取对账历史记录列表实现
- 新增,复用原有方法,添加baseSceneCode查询组合 cn.com.glsx.dj.smartcarlife.service.DivisionRuleEffectRecordService#listReconciliationHistoryRecordWithBaseSceneCode cn.com.glsx.dj.smartcarlife.remote.DivisionRuleEffectRecordRemoteImpl#listReconciliationHistoryRecordWithBaseSceneCode
- 新增,获取未生效对账记录及baseSceneCode过滤 cn.com.glsx.dj.smartcarlife.service.DivisionRuleEffectRecordService#listWaitToEffectReconciliationsWithBaseSceneCode - 新增,复用原有方法,添加baseSceneCode查询组合
cn.com.glsx.dj.smartcarlife.service.DivisionRuleEffectRecordService#listReconciliationHistoryRecordWithBaseSceneCode
- 新增,获取未生效对账记录及baseSceneCode过滤
cn.com.glsx.dj.smartcarlife.service.DivisionRuleEffectRecordService#listWaitToEffectReconciliationsWithBaseSceneCode
- xml新增baseSceneCode条件支持 cn.com.glsx.dj.smartcarlife.mapper.RuleAuditMapper#list - xml新增baseSceneCode条件支持 cn.com.glsx.dj.smartcarlife.mapper.RuleAuditMapper#list
- 新增,获取已生效对账记录及baseSceneCode过滤 cn.com.glsx.dj.smartcarlife.service.DivisionRuleEffectRecordService#listEffectReconciliationHistoryRecordsWithBaseSceneCode - 新增,获取已生效对账记录及baseSceneCode过滤
cn.com.glsx.dj.smartcarlife.service.DivisionRuleEffectRecordService#listEffectReconciliationHistoryRecordsWithBaseSceneCode
- xml新增baseSceneCode条件支持 cn.com.glsx.dj.smartcarlife.mapper.DivisionRuleEffectRecordMapper#list - xml新增baseSceneCode条件支持 cn.com.glsx.dj.smartcarlife.mapper.DivisionRuleEffectRecordMapper#list
- 增加根据baseSceneCode获取商户最新分账规则实现 cn.com.glsx.dj.smartcarlife.remote.MerchantSettleDistributeRuleRemoteImpl#getLastRuleWithBaseSceneCode - 增加根据baseSceneCode获取商户最新分账规则实现
cn.com.glsx.dj.smartcarlife.remote.MerchantSettleDistributeRuleRemoteImpl#getLastRuleWithBaseSceneCode
- 新增对应的 Service 层支持 baseSceneCode 的业务封装查询 - 新增对应的 Service 层支持 baseSceneCode 的业务封装查询
- xml增加baseSceneCode映射与查询拦截 cn.com.glsx.dj.smartcarlife.mapper.MerchantSettleAccountRuleMapper等 - xml增加baseSceneCode映射与查询拦截 cn.com.glsx.dj.smartcarlife.mapper.MerchantSettleAccountRuleMapper等
- 增加根据baseSceneCode获取最新对账规则实现 cn.com.glsx.dj.smartcarlife.remote.MerchantReconciliationRuleRemoteImpl#getEffectReconciliationRuleWithBaseSceneCode - 增加根据baseSceneCode获取最新对账规则实现
cn.com.glsx.dj.smartcarlife.remote.MerchantReconciliationRuleRemoteImpl#getEffectReconciliationRuleWithBaseSceneCode
- 新增对应 Service 层对 baseSceneCode 的业务封装查询 - 新增对应 Service 层对 baseSceneCode 的业务封装查询
- xml增加baseSceneCode映射与查询拦截 cn.com.glsx.dj.smartcarlife.mapper.MerchantReconciliationRuleMapper等 - xml增加baseSceneCode映射与查询拦截
cn.com.glsx.dj.smartcarlife.mapper.MerchantReconciliationRuleMapper等
- 财务规则、对账规则从upgrade_goods_id升级为merchant_goods_code - 财务规则、对账规则从upgrade_goods_id升级为merchant_goods_code
- 审批及 Diff 逻辑校验:支持具体上架商品 `merchantGoodsCode` 生成差异项 cn.com.glsx.dj.smartcarlife.service.CreateBusinessApproveService - 审批及 Diff 逻辑校验:支持具体上架商品 `merchantGoodsCode` 生成差异项
- 子单路由:匹配商品规则增加 `merchantGoodsCode` 传递映射 cn.com.glsx.dj.smartcarlife.service.GoodsOrderProfitAllocationService cn.com.glsx.dj.smartcarlife.service.CreateBusinessApproveService
- 入参强校验调整:`merchantGoodsCode` 为空时才强制强校验 `upgradeGoodsId` cn.com.glsx.dj.smartcarlife.service.GoodsTypeGroupRelationService - 子单路由:匹配商品规则增加 `merchantGoodsCode` 传递映射
- 重构字典组匹配逻辑:使用字符串复合主键 `specificGoodsKey` 彻底取替原有的 Integer 型直接比较匹配 cn.com.glsx.dj.smartcarlife.service cn.com.glsx.dj.smartcarlife.service.GoodsOrderProfitAllocationService
- 入参强校验调整:`merchantGoodsCode` 为空时才强制强校验 `upgradeGoodsId`
cn.com.glsx.dj.smartcarlife.service.GoodsTypeGroupRelationService
- 重构字典组匹配逻辑:使用字符串复合主键 `specificGoodsKey` 彻底取替原有的 Integer 型直接比较匹配
cn.com.glsx.dj.smartcarlife.service
- 修改去重逻辑及包含判断,支持按上架商品编码提取特征键并支持对账匹配 MerchantExpenseCategoryRuleService - 修改去重逻辑及包含判断,支持按上架商品编码提取特征键并支持对账匹配 MerchantExpenseCategoryRuleService
- 重构对账规则配置的包含与排他比较 MerchantReconciliationRuleService - 重构对账规则配置的包含与排他比较 MerchantReconciliationRuleService
- 重构对账规则步骤操作处理与集合提取去重 MerchantReconciliationRuleStepService - 重构对账规则步骤操作处理与集合提取去重 MerchantReconciliationRuleStepService
- 各分账及结算财务底层方法通用改造:实现规则提取支持 `merchantGoodsCode` 传入并用特化键 `buildSpecificGoodsKey` 查询对应逻辑 cn.com.glsx.dj.smartcarlife.service - 各分账及结算财务底层方法通用改造:实现规则提取支持 `merchantGoodsCode` 传入并用特化键
`buildSpecificGoodsKey` 查询对应逻辑 cn.com.glsx.dj.smartcarlife.service
- MerchantSettleAccountRuleService - MerchantSettleAccountRuleService
- MerchantSettleDistributeRuleStepService - MerchantSettleDistributeRuleStepService
- RuleAuditService - RuleAuditService
...@@ -296,10 +340,12 @@ platform-merchants-container: ...@@ -296,10 +340,12 @@ platform-merchants-container:
- rpc-dj-smartcarlife-job - rpc-dj-smartcarlife-job
- 特殊流程的分账都线下对账,全部分配平台方 - 特殊流程的分账都线下对账,全部分配平台方
- cn.com.glsx.dj.smartcarlife.service.OrderTotalReportService#handleOrderUpgrade(cn.com.glsx.dj.smartcarlife.dto.GoodsOrderDTO, boolean) - cn.com.glsx.dj.smartcarlife.service.OrderTotalReportService#handleOrderUpgrade(
cn.com.glsx.dj.smartcarlife.dto.GoodsOrderDTO, boolean)
- cn.com.glsx.dj.smartcarlife.service.OrderTotalReportService#isOfflinePlatformOrder - cn.com.glsx.dj.smartcarlife.service.OrderTotalReportService#isOfflinePlatformOrder
- cn.com.glsx.dj.smartcarlife.service.GoodsOrderProfitAllocationService#saveOfflinePlatformProfitAllocation - cn.com.glsx.dj.smartcarlife.service.GoodsOrderProfitAllocationService#saveOfflinePlatformProfitAllocation
- cn.com.glsx.dj.smartcarlife.service.OrderDivisionService#saveOfflinePlatformOrderDivision 注册 divisionRequest 事务回调,以便线上支付订单能够正常发起分账请求 - cn.com.glsx.dj.smartcarlife.service.OrderDivisionService#saveOfflinePlatformOrderDivision 注册
divisionRequest 事务回调,以便线上支付订单能够正常发起分账请求
- 批量为所有定时任务依赖的 Mapper 层 XML 扩展 base_scene_code - 批量为所有定时任务依赖的 Mapper 层 XML 扩展 base_scene_code
- xml新增映射规则和条件支持 META-INF/orm/DivisionRuleEffectRecordMapper.xml - xml新增映射规则和条件支持 META-INF/orm/DivisionRuleEffectRecordMapper.xml
- xml新增映射规则和条件支持 META-INF/orm/MerchantDivisionRuleMapper.xml - xml新增映射规则和条件支持 META-INF/orm/MerchantDivisionRuleMapper.xml
...@@ -316,18 +362,21 @@ platform-merchants-container: ...@@ -316,18 +362,21 @@ platform-merchants-container:
- dj.api.smartcarlife.scene.recent.saveUserScene(保存用户最近选中的场景值) - dj.api.smartcarlife.scene.recent.saveUserScene(保存用户最近选中的场景值)
- dj.api.smartcarlife.scene.recent.getUserScene(查询用户最近选中的场景值) - dj.api.smartcarlife.scene.recent.getUserScene(查询用户最近选中的场景值)
- dj.api.smartcarlife.scene.config.getUserScene( 查询用户配置的场景值列表) - dj.api.smartcarlife.scene.config.getUserScene( 查询用户配置的场景值列表)
- dj.api.smartcarlife.order.createWithPay(新建工单调整_轻改类,新增baseSceneCode,订单类型新增枚举:djOrderType,6-内部结算, 客户来源新增:2-自然到店) - dj.api.smartcarlife.order.createWithPay(新建工单调整_轻改类,新增baseSceneCode,订单类型新增枚举:djOrderType,6-内部结算,
客户来源新增:2-自然到店)
- dj.api.smartcarlife.order.packageGoodsDetail(查询订单详情,返回新增:baseSceneCode,baseSceneName) - dj.api.smartcarlife.order.packageGoodsDetail(查询订单详情,返回新增:baseSceneCode,baseSceneName)
- dj.api.smartcarlife.payOrder.create(生成支付订单,无需改动) - dj.api.smartcarlife.payOrder.create(生成支付订单,无需改动)
- dj.api.smartcarlife.order.preliminaryOrder(新建预录工单,新增:baseSceneCode,sceneType) - dj.api.smartcarlife.order.preliminaryOrder(新建预录工单,新增:baseSceneCode,sceneType)
- dj.api.smartcarlife.order.preliminaryOrder.batch(批量预录,preliminaryOrders新增:baseSceneCode,sceneType) - dj.api.smartcarlife.order.preliminaryOrder.batch(批量预录,preliminaryOrders新增:baseSceneCode,sceneType)
- dj.api.smartcarlife.inviteRecord.query(预约记录分页查询,新增:baseSceneCode, 返回新增:baseSceneCode,baseSceneName) - dj.api.smartcarlife.inviteRecord.query(预约记录分页查询,新增:baseSceneCode, 返回新增:baseSceneCode,baseSceneName)
- dj.api.smartcarlife.inviteRecord.count.new(预约记录总数(新),新增:baseSceneCode) - dj.api.smartcarlife.inviteRecord.count.new(预约记录总数(新),新增:baseSceneCode)
- dj.api.smartcarlife.order.search.containPackageGoods(搜索订单(含套餐), 新增:baseSceneCode, 返回新增:baseSceneCode,baseSceneName) - dj.api.smartcarlife.order.search.containPackageGoods(搜索订单(含套餐), 新增:baseSceneCode,
返回新增:baseSceneCode,baseSceneName)
- dj.api.smartcarlife.order.statByStatus(订单列表汇总,新增:baseSceneCode) - dj.api.smartcarlife.order.statByStatus(订单列表汇总,新增:baseSceneCode)
- dj.api.smartcarlife.order.notUpgrade.batchInsert(快速创建战败订单,notUpgradeOrderList新增:baseSceneCode,sceneType) - dj.api.smartcarlife.order.notUpgrade.batchInsert(快速创建战败订单,notUpgradeOrderList新增:baseSceneCode,sceneType)
- dj.api.smartcarlife.selectOrderGoods.list(套餐的商品,下单时根据场景查询商品接口, 新增:baseSceneCode) - dj.api.smartcarlife.selectOrderGoods.list(套餐的商品,下单时根据场景查询商品接口, 新增:baseSceneCode)
- dj.api.smartcarlife.orderUpgradeGoods.listByMerchantId(除了套餐的商品,下单时根据场景查询商品接口, 新增:baseSceneCode) - dj.api.smartcarlife.orderUpgradeGoods.listByMerchantId(除了套餐的商品,下单时根据场景查询商品接口, 新增:
baseSceneCode)
- 报价单订单改造 - 报价单订单改造
- dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add 新建车损报价单【改造】 - dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add 新建车损报价单【改造】
- dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update 修改车损报价单信息【改造】 - dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update 修改车损报价单信息【改造】
...@@ -387,19 +436,24 @@ platform-merchants-container: ...@@ -387,19 +436,24 @@ platform-merchants-container:
- rop-dj-sale - rop-dj-sale
- dj.api.sale.data.dashboard.* 门店/潜客筛选与统计响应对齐 - dj.api.sale.data.dashboard.* 门店/潜客筛选与统计响应对齐
- 调整入口控制层 `cn.com.glsx.dj.sale.controller.SaleStoreController`、`cn.com.glsx.dj.sale.controller.RegionController`,并同步请求/响应对象: - 调整入口控制层 `cn.com.glsx.dj.sale.controller.SaleStoreController`、
`cn.com.glsx.dj.sale.controller.RegionController`,并同步请求/响应对象:
- `SalePotentialCustomersFilterRequest` - `SalePotentialCustomersFilterRequest`
- `SaleStoreFilterRequest` - `SaleStoreFilterRequest`
- `SalePotentialCustomersDataCountResponse` - `SalePotentialCustomersDataCountResponse`
- `SaleStoreOverviewResponse` - `SaleStoreOverviewResponse`
- `cn.com.glsx.dj.sale.response.SaleStoreListPageResponse` 新增关店维度字段:`status`、`closeTime`、`confirmReason`。 - `cn.com.glsx.dj.sale.response.SaleStoreListPageResponse` 新增关店维度字段:`status`、`closeTime`、
`confirmReason`。
- `cn.com.glsx.dj.sale.response.SaleStoreDataCountResponse` 新增 `closedStoreCount`,补齐关店数量统计回传。 - `cn.com.glsx.dj.sale.response.SaleStoreDataCountResponse` 新增 `closedStoreCount`,补齐关店数量统计回传。
- rop-dj-smartcarlife - rop-dj-smartcarlife
- dj.api.smartcarlife.merchantEffectRule.effective.list 分账生效规则按 baseSceneCode 查询 - dj.api.smartcarlife.merchantEffectRule.effective.list 分账生效规则按 baseSceneCode 查询
- 修改 `cn.com.glsx.dj.smartcarlife.controller.smartCarLife.DivisionRuleEffectRecordController#listMerchantEffectiveRule`,改调 `divisionRuleEffectRecordRemote.getMerchantEffectiveRuleWithBaseSceneCode(...)`。 - 修改
`cn.com.glsx.dj.smartcarlife.controller.smartCarLife.DivisionRuleEffectRecordController#listMerchantEffectiveRule`
,改调 `divisionRuleEffectRecordRemote.getMerchantEffectiveRuleWithBaseSceneCode(...)`。
- 在 `cn.com.glsx.dj.smartcarlife.request.common.MerchantIdSceneRequest` 增加 `baseSceneCode`。 - 在 `cn.com.glsx.dj.smartcarlife.request.common.MerchantIdSceneRequest` 增加 `baseSceneCode`。
- `GetEnabledMerchantSettleRuleRequest`、`ServiceMerchantPageRequest` 增加 `baseSceneCode` 透传字段。 - `GetEnabledMerchantSettleRuleRequest`、`ServiceMerchantPageRequest` 增加 `baseSceneCode` 透传字段。
- 给旧接口 `MerchantDivisionRuleController#getLastRuleByMerchantId`、`MerchantSettleAccountRuleController#getLastRuleByMerchantId` 增加 `@Deprecated` 标记,为新口径迁移预留兼容窗口。 - 给旧接口 `MerchantDivisionRuleController#getLastRuleByMerchantId`、
`MerchantSettleAccountRuleController#getLastRuleByMerchantId` 增加 `@Deprecated` 标记,为新口径迁移预留兼容窗口。
- rpc-sale - rpc-sale
- 销售门店/潜客状态统一与关店统计链路 - 销售门店/潜客状态统一与关店统计链路
- 统一潜客状态与绑定状态枚举使用,打通: - 统一潜客状态与绑定状态枚举使用,打通:
...@@ -419,9 +473,12 @@ platform-merchants-container: ...@@ -419,9 +473,12 @@ platform-merchants-container:
- `cn.com.glsx.dj.smartcarlife.remote.DivisionRuleEffectRecordRemote#getMerchantEffectiveRuleWithBaseSceneCode` - `cn.com.glsx.dj.smartcarlife.remote.DivisionRuleEffectRecordRemote#getMerchantEffectiveRuleWithBaseSceneCode`
- 实现落点:`DivisionRuleEffectRecordRemoteImpl#getMerchantEffectiveRuleWithBaseSceneCode` - 实现落点:`DivisionRuleEffectRecordRemoteImpl#getMerchantEffectiveRuleWithBaseSceneCode`
- 服务落点:`DivisionRuleEffectRecordService#getMerchantEffectiveRuleWithBaseSceneCode` - 服务落点:`DivisionRuleEffectRecordService#getMerchantEffectiveRuleWithBaseSceneCode`
- 核心能力下沉:在 `MerchantDivisionRuleRemote`、`MerchantReconciliationRuleRemote`、`MerchantSettleAccountRuleRemote` 增加按 `baseSceneCode` 查询能力,并在 service 层实现“优先 baseSceneCode,未命中回退 sceneType”兼容策略。 - 核心能力下沉:在 `MerchantDivisionRuleRemote`、`MerchantReconciliationRuleRemote`、
`MerchantSettleAccountRuleRemote` 增加按 `baseSceneCode` 查询能力,并在 service 层实现“优先 baseSceneCode,未命中回退
sceneType”兼容策略。
- 扩展分账相关 remote/service 支持 `baseSceneCode` 参数透传(含 `MerchantSettleDistributeRuleRemote` 链路)。 - 扩展分账相关 remote/service 支持 `baseSceneCode` 参数透传(含 `MerchantSettleDistributeRuleRemote` 链路)。
- 在 `MerchantDivisionRuleRemoteImpl`、`MerchantReconciliationRuleRemoteImpl`、`MerchantSettleAccountRuleRemoteImpl` 与 `MerchantSettleAccountRuleService` 接入新参数。 - 在 `MerchantDivisionRuleRemoteImpl`、`MerchantReconciliationRuleRemoteImpl`、
`MerchantSettleAccountRuleRemoteImpl` 与 `MerchantSettleAccountRuleService` 接入新参数。
- XML 层同步: - XML 层同步:
- `DivisionRuleEffectRecordMapper.xml` - `DivisionRuleEffectRecordMapper.xml`
- `MerchantDivisionRuleMapper.xml` - `MerchantDivisionRuleMapper.xml`
...@@ -430,6 +487,7 @@ platform-merchants-container: ...@@ -430,6 +487,7 @@ platform-merchants-container:
- 统一新增 `base_scene_code` 条件/字段映射。 - 统一新增 `base_scene_code` 条件/字段映射。
#### 影响范围 #### 影响范围
- D+智享车生活: - D+智享车生活:
- 人员管理-驻店管理: - 人员管理-驻店管理:
- 列表、导出、编辑员工、编辑员工-同步北森、编辑员工-新增门店账号、编辑员工-启用|禁用账号、编辑员工-提交、分配门店、北森账号初始化嘀加驻店账号、驻店账号激活流程 - 列表、导出、编辑员工、编辑员工-同步北森、编辑员工-新增门店账号、编辑员工-启用|禁用账号、编辑员工-提交、分配门店、北森账号初始化嘀加驻店账号、驻店账号激活流程
...@@ -583,21 +641,72 @@ platform-merchants-container: ...@@ -583,21 +641,72 @@ platform-merchants-container:
### 第二轮提测 ### 第二轮提测
#### 变更内容2 #### 变更内容2
- rop-scrm-equity
- rop-scrm-equity
- scrm.api.equity.order.config.import(批量导入,模板新增业务场景) - scrm.api.equity.order.config.import(批量导入,模板新增业务场景)
- scrm.api.equity.order.config.detail(批量导入,任务详情列表查询新增业务场景字段回显) - scrm.api.equity.order.config.detail(批量导入,任务详情列表查询新增业务场景字段回显)
- scrm.api.equity.order.config.fail.export(批量导入,导出错误数据新增业务场景字段) - scrm.api.equity.order.config.fail.export(批量导入,导出错误数据新增业务场景字段)
- rop-dj-smartcarlife - rop-dj-smartcarlife
-- dj.api.smartcarlife.ordermanage.export (修复客户来源映射错误) -- dj.api.smartcarlife.ordermanage.export (修复客户来源映射错误)
- cn.com.glsx.dj.smartcarlife.remote.StaffBaseInfoRemoteImpl#assignStaffMerchant 分配门店
- dj.api.smartcarlife.staffMonthSalary.staff.list 获取门店员工列表【增加员工名称查询】
- dj.api.smartcarlife.staffMonthSalary.merchant.list 获取门店列表【优化门店名称查询】
- dj.api.smartcarlife.abnormal.payment.detail.page 异常流水明细列表 bug修复,过滤掉线下支付产生的支付订单,解决异常流水中出现重复数据问题。
- dj.api.smartcarlife.abnormal.detail.export.async 异常订单明细导出 bug修复,过滤掉线下支付产生的支付订单,解决异常流水中出现重复数据问题。
- rpc-dj-smartcarlife
- UpgradeGoodsService:重命名公开方法,新增 scrmSyncUpdate 参数透传
- addUpgradeGoodsByList(List, int, String) → addUpgradeGoodsByListNew(List, int, String, boolean scrmSyncUpdate)
,内部委托给已有的4参私有方法
addUpgradeGoodsByList(list, baseGoodsId, createBy, scrmSyncUpdate),并统一分发通知事件
cn.com.glsx.dj.smartcarlife.service.UpgradeGoodsService#addUpgradeGoodsByListNew
- 内部调用处 updateUpgradeGoods 方法中,将 thiz.addUpgradeGoodsByList(...) 改为
thiz.addUpgradeGoodsByListNew(...),注释掉手动收集事件的
allEvents.addAll(addEvents)(事件分发已由新方法内部统一处理)cn.com.glsx.dj.smartcarlife.service.UpgradeGoodsService
- cn.com.glsx.dj.smartcarlife.service.UpgradeGoodsService#collectUpdateNoticeEvents
- 编辑sku-sku适用区域变更,运营成本取值错误,改为取更新后的运营成本
- BaseGoodsService#addGoods:新增商品时调用新方法,硬编码 scrmSyncUpdate=false
- 将 upgradeGoodsService.addUpgradeGoodsByList(...) 改为 upgradeGoodsService.addUpgradeGoodsByListNew(...,
false)
cn.com.glsx.dj.smartcarlife.service.BaseGoodsService#addGoods
- BaseGoodsService#insertOrUpdate:新增或修改商品时调用新方法,透传原始的 scrmSyncUpdate 布尔值
- 将 upgradeGoodsService.addUpgradeGoodsByList(...) 改为 upgradeGoodsService.addUpgradeGoodsByListNew(...,
scrmSyncUpdate)
cn.com.glsx.dj.smartcarlife.service.BaseGoodsService#insertOrUpdate
- 上游 Dubbo 入口:cn.com.glsx.dj.smartcarlife.remote.BaseGoodsRemoteImpl#insertOrUpdate → 调用
baseGoodsService.insertOrUpdate(goodsDTO)
- 上游 ROP 入口:cn.com.glsx.dj.smartcarlife.controller.smartCarLife.BaseGoodsController#insertOrUpdate — ROP API
dj.api.basegoods.insertOrUpdate
- UpgradeGoodsServiceTest:测试用例跟随方法签名变更
- 将 upgradeGoodsService.addUpgradeGoodsByList(list, 21, "cds") 改为 upgradeGoodsService.addUpgradeGoodsByList(
list, 21, "cds", false)
cn.com.glsx.dj.smartcarlife.service.UpgradeGoodsServiceTest
- cn.com.glsx.dj.smartcarlife.service.merchantPerformanceConfig.StaffAccountRecordService#initAccountScene 账户中心-创建账号消息消费,初始化账号场景数据
- 优化上架管理查询sql
- cn.com.glsx.dj.smartcarlife.mapper.MerchantGoodsInfoMapper#listWithPage
#### 影响范围 #### 影响范围
scrm运营版:
- 权益: scrm运营版:
- 权益:
- 批量导入:导入,详情,导出新增业务场景字段 - 批量导入:导入,详情,导出新增业务场景字段
嘀加智享车生活 嘀加智享车生活
- 订单管理: - 财务管理
- 异常订单管理
- dj.api.smartcarlife.abnormal.payment.detail.page 异常流水明细列表 bug修复,过滤掉线下支付产生的支付订单,解决异常流水中出现重复数据问题。
- dj.api.smartcarlife.abnormal.detail.export.async 异常订单明细导出 bug修复,过滤掉线下支付产生的支付订单,解决异常流水中出现重复数据问题。
- 订单管理:
- 订单列表:精品升级订单导出(订单类型/客户来源新增字段映射) - 订单列表:精品升级订单导出(订单类型/客户来源新增字段映射)
- 驻店管理:分配门店
- 商品库
- 产品管理
- 新建单规格、多规格产品时,推送企微消息
- 编辑sku-sku适用区域变更,运营成本取值错误,改为取更新后的运营成本
- 人员管理-驻店管理:
- 工资绩效-获取工资门店列表-增加门店名称搜索
- 工资绩效-获取工资员工列表-增加员工名称搜索
- 账号中心账号变更消息kafka消费
### 第三轮提测 ### 第三轮提测
......
## 1、【优加车拍 - 发放优惠券需求】:
改动代码:
- aus-admin:
- /rest/coupon/activity/add 新增优惠券活动
- /rest/coupon/activity/update 编辑优惠券
- /rest/coupon/activity/changeStatus 启动-停用活动
- /rest/coupon/activity/delete 删除优惠券活动
- /rest/coupon/activity/page 分页查询优惠券活动
- /rest/coupon/activity/detail 获取优惠券活动详情
- /rest/coupon/template/available 获取可用得的优惠券模板列表
- /rest/coupon/template/add 新增优惠券模板
- /rest/coupon/template/update 编辑优惠券模板
- /rest/coupon/template/changeStatus 启动-停用优惠券模板
- /rest/coupon/template/detail 获取优惠券模板详情
- /rest/coupon/template/page 分页查询优惠券模板
- /rest/coupon/template/manualDistribution 手动发放优惠券模板
- /rest/coupon/distribution/record/page 分页查询优惠券发放记录
- /rest/coupon/distribution/record/export 导出优惠券发放记录
- /rest/coupon/distribution/record/reissue 优惠券发放记录补发
- /rest/coupon/distribution/statistics、
- aus-api:
- /api/coupon/list 获取优惠券列表
- /api/coupon/detail/{couponId} 获取优惠券详情
- /api/coupon/popup 获取优惠券弹窗
- /api/coupon/count 获取优惠券数量
- /api/coupon/verify 核销优惠券
- /api/coupon/order-coupons/305 获取订单优惠券
- /api/coupon/latest-activity 获取最新优惠券活动
- /api/coupon/red-dot 获取优惠券红点
- 影响功能点:
- 优加车拍
- 优惠卡券管理
- 优惠券管理 (分页查询,详情,手动发放,新增,修改,删除,删除)
- 优惠券活动管理 (分页查询,详情,新增,修改,删除,启动-停用)
- 优惠券发放记录 (分页查询,导出,补发)
- 优加车拍小程序
- 优惠券查询,详情,核销,弹窗,红点
-----------------------------------------
#### review前:
![img.jpg](img.jpg)
#### review后:
![img_1.jpg](img_1.jpg)
review是否通过:通过
问题描述:赋值冗余警告
需要处理的:
代码层面的errors必须修复
java:
probable bugs: 需要处理
- nullability problems
- Constant values
- Malformed format string
- Nullability and data flow problems
- Optional.get() iscalled without isPresent() check
- overwritten Map,Set or array element
- statement has empty body
Threading issues:需要处理
- Busy wait
error handing:需要处理
control flow issues:需要处理
numeric issues:需要处理
performance:需要处理
maven :需要处理
- duplicate dependencies
mybatis:需要处理
- mapper method inspection
- mapper xml inspection
CREATE TABLE IF NOT EXISTS `template_tag` (
`TAG_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`TAG_CODE` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '标签编码',
`TAG_NAME` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '标签名称',
`TAG_TYPE` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '标签类型',
`DESCRIPTION` varchar(512) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '标签描述',
`SORT_ORDER` int(11) DEFAULT '0' COMMENT '排序顺序',
`STATUS` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态 1:启用 0:禁用',
`DELETE_FLAG` char(1) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'N' COMMENT '删除标识 N:未删除 D:已删除',
`REMARK` varchar(512) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '备注',
`CREATE_BY` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '创建人',
`UPDATE_BY` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '更新人',
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间',
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`TAG_ID`),
UNIQUE KEY `UNQ_TAG_CODE` (`TAG_CODE`),
KEY `IDX_TAG_NAME` (`TAG_NAME`),
KEY `IDX_STATUS` (`STATUS`),
KEY `IDX_DELETE_FLAG` (`DELETE_FLAG`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='模版标签表';
CREATE TABLE IF NOT EXISTS `template_tag_relation` (
`TEMPLATE_ID` bigint(20) NOT NULL COMMENT '模版ID',
`TAG_ID` bigint(20) NOT NULL COMMENT '标签ID',
UNIQUE KEY `UNQ_TEMP_TAG` (`TEMPLATE_ID`, `TAG_ID`),
KEY `IDX_TEMPLATE_ID` (`TEMPLATE_ID`),
KEY `IDX_TAG_ID` (`TAG_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='模版标签关联表';
CREATE TABLE IF NOT EXISTS `inspection_op_log` (
`LOG_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`RECORD_ID` bigint(20) NOT NULL COMMENT '关联 inspection_record.id',
`WO_OP_ID` bigint(20) NOT NULL COMMENT '工单操作日志id,关联 inspection_work_order_op_log.id',
`TASK_ID` bigint(20) NOT NULL COMMENT '冗余任务 ID',
`DELETE_FLAG` char(1) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'N' COMMENT '删除标识 N:未删除 D:已删除',
`REMARK` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '备注',
`CREATE_BY` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '创建人',
`UPDATE_BY` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '更新人',
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间',
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`LOG_ID`),
KEY `IDX_RECORD_ID` (`RECORD_ID`),
KEY `IDX_TASK_ID` (`TASK_ID`),
KEY `IDX_DELETE_FLAG` (`DELETE_FLAG`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='检测报告操作日志主表';
CREATE TABLE IF NOT EXISTS `inspection_op_log_item` (
`LOG_ITEM_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`LOG_ID` bigint(20) NOT NULL COMMENT '关联 inspection_op_log.id',
`MODULE_NAME` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '一级模块名称(快照),用于筛选',
`SUB_MODULE_NAME` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '二级模块名称(快照),用于前端分组',
`TRI_MODULE_NAME` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '三级模块名称(快照)',
`FIELD_LABEL` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '完整路径快照,如:外观骨架检测-车头检查-前风挡',
`FIELD_KEY` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '字段标识(node_id 或字段英文名)',
`INTERACTION_TYPE` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '交互类型快照',
`BEFORE_VALUE` text COLLATE utf8mb4_unicode_ci COMMENT '修改前内容(格式化文本)',
`AFTER_VALUE` text COLLATE utf8mb4_unicode_ci COMMENT '修改后内容(格式化文本)',
`SORT_SEQ` int(11) NOT NULL DEFAULT '0' COMMENT '同一批次内展示顺序',
`DELETE_FLAG` char(1) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'N' COMMENT '删除标识 N:未删除 D:已删除',
`REMARK` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '备注',
`CREATE_BY` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '创建人',
`UPDATE_BY` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '更新人',
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间',
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`LOG_ITEM_ID`),
KEY `IDX_LOG_ID` (`LOG_ID`),
KEY `IDX_FIELD_KEY` (`FIELD_KEY`),
KEY `IDX_MODULE` (`LOG_ID`, `MODULE_NAME`, `SUB_MODULE_NAME`, `TRI_MODULE_NAME`),
KEY `IDX_DELETE_FLAG` (`DELETE_FLAG`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='检测报告操作日志明细表';
CREATE TABLE `coupon_template`
(
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键 ID',
`template_id` varchar(50) NOT NULL COMMENT '优惠券模板唯一 ID(系统生成)',
`template_name` varchar(100) NOT NULL COMMENT '优惠券名称(前端展示)',
`coupon_type` tinyint NOT NULL DEFAULT 1 COMMENT '优惠券类型 (1:固定面额券;2:阶梯满减券)',
`face_amount` decimal(16, 2) DEFAULT NULL COMMENT '券面额/最高抵扣金额(元)',
`threshold_amount` decimal(16, 2) DEFAULT NULL COMMENT '使用门槛(中拍价满 X 元,0 代表无门槛)',
`deduction_type` tinyint NOT NULL DEFAULT 2 COMMENT '抵扣类型 (1:抵扣车款;2:抵扣佣金)',
`total_quantity` int DEFAULT NULL COMMENT '发放总量(NULL 代表不限制)',
`remaining_quantity` int DEFAULT NULL COMMENT '剩余库存',
`validity_type` tinyint NOT NULL DEFAULT 1 COMMENT '有效期类型 (1:固定时间;2:相对时间)',
`valid_start_time` datetime DEFAULT NULL COMMENT '有效期开始时间(固定时间类型使用)',
`valid_end_time` datetime DEFAULT NULL COMMENT '有效期结束时间(固定时间类型使用)',
`valid_days` int DEFAULT NULL COMMENT '有效天数(相对时间类型使用,领取后 X 天有效)',
`delay_days` int DEFAULT NULL COMMENT '延迟生效天数(相对时间类型使用,发放后 X 天后生效)',
`description` varchar(500) NOT NULL COMMENT '使用说明(前端展示)',
`remark` varchar(500) DEFAULT NULL COMMENT '备注(后台可见)',
`status` tinyint NOT NULL DEFAULT 1 COMMENT '状态 (1:启用中;2:已停用)',
`create_by` varchar(64) NOT NULL COMMENT '创建人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_by` varchar(64) NOT NULL COMMENT '修改人',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`delete_flag` char(1) NOT NULL DEFAULT 'N' COMMENT '删除标识 (D:已删除;N:未删除)',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_template_id` (`template_id`) USING BTREE,
KEY `idx_template_name` (`template_name`) USING BTREE,
KEY `idx_coupon_type` (`coupon_type`) USING BTREE,
KEY `idx_status` (`status`) USING BTREE,
KEY `idx_create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='优惠券模板表';
CREATE TABLE `coupon_tier_rule`
(
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键 ID',
`template_id` varchar(50) NOT NULL COMMENT '优惠券模板 ID(关联 coupon_template.template_id)',
`tier_level` int NOT NULL COMMENT '阶梯层级 (1,2,3...)',
`threshold_amount` decimal(16, 2) NOT NULL COMMENT '中拍价门槛(元)',
`deduction_amount` decimal(16, 2) NOT NULL COMMENT '抵扣金额(元)',
`create_by` varchar(64) NOT NULL COMMENT '创建人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_by` varchar(64) NOT NULL COMMENT '修改人',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`delete_flag` char(1) NOT NULL DEFAULT 'N' COMMENT '删除标识 (D:已删除;N:未删除)',
PRIMARY KEY (`id`),
KEY `idx_template_id` (`template_id`) USING BTREE,
KEY `idx_tier_level` (`tier_level`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='优惠券阶梯规则表';
CREATE TABLE `coupon_account`
(
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键 ID',
`coupon_id` varchar(50) NOT NULL COMMENT '优惠券实例唯一 ID(系统生成)',
`template_id` bigint NOT NULL COMMENT '优惠券模板 ID(关联 coupon_template.id)',
`template_name` varchar(100) NOT NULL COMMENT '优惠券名称(冗余字段,方便查询)',
`account_id` int NOT NULL COMMENT '小程序用户账户 ID(关联 account.ACCOUNT_ID)',
`coupon_type` tinyint NOT NULL DEFAULT 1 COMMENT '优惠券类型 (1:固定面额券;2:阶梯满减券)',
`face_amount` decimal(16, 2) NOT NULL COMMENT '券面额/展示金额(元)',
`threshold_amount` decimal(16, 2) DEFAULT NULL COMMENT '使用门槛(元)',
`deduction_type` tinyint NOT NULL DEFAULT 2 COMMENT '抵扣类型 (1:抵扣车款;2:抵扣佣金)',
`status` tinyint NOT NULL DEFAULT 1 COMMENT '状态 (1:待使用;2:已核销;3:已失效;4:已退回)',
`valid_start_time` datetime NOT NULL COMMENT '有效期开始时间',
`valid_end_time` datetime NOT NULL COMMENT '有效期结束时间',
`nuclear_time` datetime DEFAULT NULL COMMENT '核销时间',
`nuclear_order_id` int DEFAULT NULL COMMENT '核销订单 ID(关联 auction_order.ORDER_ID)',
`return_time` datetime DEFAULT NULL COMMENT '退回时间(订单取消时)',
`distribution_type` tinyint NOT NULL COMMENT '发放类型 (1:自动触发;2:手动发放;3:直接发放活动)',
`distribution_source` varchar(100) DEFAULT NULL COMMENT '发放来源(如:过户奖励、活动名称等)',
`notification_time` datetime DEFAULT NULL COMMENT '通知时间',
`create_by` varchar(64) NOT NULL COMMENT '创建人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_by` varchar(64) NOT NULL COMMENT '修改人',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`delete_flag` char(1) NOT NULL DEFAULT 'N' COMMENT '删除标识 (D:已删除;N:未删除)',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_coupon_id` (`coupon_id`) USING BTREE,
KEY `idx_account_id` (`account_id`) USING BTREE,
KEY `idx_template_id` (`template_id`) USING BTREE,
KEY `idx_status` (`status`) USING BTREE,
KEY `idx_distribution_type` (`distribution_type`) USING BTREE,
KEY `idx_valid_end_time` (`valid_end_time`) USING BTREE,
KEY `idx_create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='账户优惠券表';
CREATE TABLE `coupon_activity`
(
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键 ID',
`activity_id` varchar(50) NOT NULL COMMENT '活动唯一 ID(系统生成 6 位)',
`activity_name` varchar(100) NOT NULL COMMENT '活动名称',
`activity_type` tinyint NOT NULL DEFAULT 1 COMMENT '活动类型 (1:自动触发发放;2:直接发放)',
`valid_start_time` datetime NOT NULL COMMENT '活动有效期开始时间',
`valid_end_time` datetime NOT NULL COMMENT '活动有效期结束时间',
`template_id` bigint DEFAULT NULL COMMENT '关联优惠券模板 ID(直接发放类型使用)',
`distribution_quantity` int DEFAULT 1 COMMENT '发放数量(张/人,直接发放类型使用)',
`target_type` tinyint DEFAULT 1 COMMENT '生效人群类型 (1:全部用户;2:指定用户;3)',
`agreement_id` bigint DEFAULT NULL COMMENT '关联活动说明/协议 ID',
`send_notification` tinyint NOT NULL DEFAULT 1 COMMENT '是否发送活动通知 (1:是;2:否)',
`status` tinyint NOT NULL DEFAULT 1 COMMENT '状态 (1:待启动;2:进行中;3:已结束;4:已停用)',
`remark` varchar(200) DEFAULT NULL COMMENT '活动备注(后台可见)',
`tag_ids` varchar(500) NULL DEFAULT NULL COMMENT '标签 IDs(逗号分隔)',
`create_by` varchar(64) NOT NULL COMMENT '创建人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_by` varchar(64) NOT NULL COMMENT '修改人',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`delete_flag` char(1) NOT NULL DEFAULT 'N' COMMENT '删除标识 (D:已删除;N:未删除)',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_activity_id` (`activity_id`) USING BTREE,
KEY `idx_activity_name` (`activity_name`) USING BTREE,
KEY `idx_activity_type` (`activity_type`) USING BTREE,
KEY `idx_status` (`status`) USING BTREE,
KEY `idx_valid_time` (`valid_start_time`, `valid_end_time`) USING BTREE,
KEY `idx_create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='优惠券发放活动表';
CREATE TABLE `coupon_activity_price_range`
(
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键 ID',
`activity_id` varchar(50) NOT NULL COMMENT '活动 ID(关联 coupon_activity.activity_id)',
`price_min` decimal(16, 2) NOT NULL COMMENT '价格区间下限(含,元)',
`price_max` decimal(16, 2) NOT NULL COMMENT '价格区间上限(不含,元)',
`template_id` bigint NOT NULL COMMENT '关联优惠券模板 ID',
`create_by` varchar(64) NOT NULL COMMENT '创建人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_by` varchar(64) NOT NULL COMMENT '修改人',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`delete_flag` char(1) NOT NULL DEFAULT 'N' COMMENT '删除标识 (D:已删除;N:未删除)',
PRIMARY KEY (`id`),
KEY `idx_activity_id` (`activity_id`) USING BTREE,
KEY `idx_template_id` (`template_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='优惠券活动价格区间规则表';
CREATE TABLE `coupon_distribution_record`
(
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键 ID',
`record_id` varchar(50) NOT NULL COMMENT '发放记录唯一 ID',
`activity_id` varchar(50) DEFAULT NULL COMMENT '活动 ID(关联 coupon_activity.activity_id,手动发放时为 NULL)',
`activity_name` varchar(100) DEFAULT NULL COMMENT '活动名称(冗余字段)',
`template_id` bigint NOT NULL COMMENT '优惠券模板 ID',
`template_name` varchar(100) NOT NULL COMMENT '优惠券名称(冗余字段)',
`coupon_id` varchar(50) DEFAULT NULL COMMENT '优惠券实例 ID(关联 coupon_account.coupon_id)',
`account_id` int NOT NULL COMMENT '小程序用户账户 ID(关联 account.ACCOUNT_ID)',
`account_name` varchar(128) DEFAULT NULL COMMENT '用户姓名/名称',
`mobile` varchar(16) NOT NULL COMMENT '用户手机号',
`distribution_type` tinyint NOT NULL COMMENT '发放类型 (1:自动触发;2:手动发放;3:直接发放活动)',
`face_amount` decimal(16, 2) NOT NULL COMMENT '券面额(元)',
`distribution_remark` varchar(300) DEFAULT NULL COMMENT '发放备注(后台可见)',
`distribution_time` datetime NOT NULL COMMENT '发放时间',
`operator` varchar(64) DEFAULT NULL COMMENT '操作人(手动发放时记录后台账号)',
`reissue_status` tinyint NOT NULL DEFAULT 0 COMMENT '重新发放状态 (0:未重新发放;1:已重新发放)',
`reissue_time` datetime DEFAULT NULL COMMENT '重新发放时间',
`reissue_record_id` varchar(50) DEFAULT NULL COMMENT '重新发放生成的新记录ID',
`create_by` varchar(64) NOT NULL COMMENT '创建人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_by` varchar(64) NOT NULL COMMENT '修改人',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`delete_flag` char(1) NOT NULL DEFAULT 'N' COMMENT '删除标识 (D:已删除;N:未删除)',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_record_id` (`record_id`) USING BTREE,
KEY `idx_activity_id` (`activity_id`) USING BTREE,
KEY `idx_template_id` (`template_id`) USING BTREE,
KEY `idx_coupon_id` (`coupon_id`) USING BTREE,
KEY `idx_account_id` (`account_id`) USING BTREE,
KEY `idx_distribution_type` (`distribution_type`) USING BTREE,
KEY `idx_distribution_time` (`distribution_time`) USING BTREE,
KEY `idx_create_time` (`create_time`) USING BTREE,
KEY `idx_reissue_status` (`reissue_status`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='优惠券发放记录表';
CREATE TABLE `coupon_verification_record`
(
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键 ID',
`record_id` varchar(50) NOT NULL COMMENT '核销记录唯一 ID',
`coupon_id` varchar(50) NOT NULL COMMENT '优惠券实例 ID',
`template_id` bigint NOT NULL COMMENT '优惠券模板 ID',
`template_name` varchar(100) NOT NULL COMMENT '优惠券名称(冗余字段)',
`account_id` int NOT NULL COMMENT '小程序用户账户 ID(关联 account.ACCOUNT_ID)',
`order_id` int NOT NULL COMMENT '订单 ID(关联 auction_order.ORDER_ID)',
`order_code` varchar(64) DEFAULT NULL COMMENT '订单编号(冗余字段)',
`vehicle_id` int NOT NULL COMMENT '车辆 ID',
`vehicle_info` varchar(255) DEFAULT NULL COMMENT '车辆信息(冗余字段)',
`transaction_amount` decimal(16, 2) NOT NULL COMMENT '成交价(元)',
`face_amount` decimal(16, 2) NOT NULL COMMENT '券面额(元)',
`actual_deduction` decimal(16, 2) NOT NULL COMMENT '实际抵扣金额(元)',
`is_downgraded` tinyint NOT NULL DEFAULT 0 COMMENT '是否降级使用 (0:否;1:是,实际抵扣<面额)',
`deduction_type` tinyint NOT NULL COMMENT '抵扣类型 (1:抵扣车款;2:抵扣佣金)',
`write_off_time` datetime NOT NULL COMMENT '核销时间',
`create_by` varchar(64) NOT NULL COMMENT '创建人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_by` varchar(64) NOT NULL COMMENT '修改人',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`delete_flag` char(1) NOT NULL DEFAULT 'N' COMMENT '删除标识 (D:已删除;N:未删除)',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_record_id` (`record_id`) USING BTREE,
KEY `idx_coupon_id` (`coupon_id`) USING BTREE,
KEY `idx_template_id` (`template_id`) USING BTREE,
KEY `idx_account_id` (`account_id`) USING BTREE,
KEY `idx_order_id` (`order_id`) USING BTREE,
KEY `idx_write_off_time` (`write_off_time`) USING BTREE,
KEY `idx_create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='优惠券核销记录表(验证记录)';
CREATE TABLE `coupon_popup_notification`
(
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键 ID',
`notification_id` varchar(50) NOT NULL COMMENT '通知唯一 ID',
`account_id` int NOT NULL COMMENT '小程序用户账户 ID(关联 account.ACCOUNT_ID)',
`popup_type` tinyint NOT NULL COMMENT '弹窗类型 (1:过户成功;2:手动发放;3:活动下发;)',
`source_type` varchar(50) NOT NULL COMMENT '来源类型 (MANUAL_DISTRIBUTION/ACTIVITY)',
`source_id` varchar(50) DEFAULT NULL COMMENT '来源 ID(订单 ID/活动 ID/发放记录 ID)',
`coupon_ids` text COMMENT '关联优惠券 ID 列表(JSON 数组,聚合弹窗时使用)',
`status` tinyint NOT NULL DEFAULT 0 COMMENT '状态 (0:待通知;1:已通知;)',
`sms_status` tinyint NOT NULL DEFAULT 0 COMMENT '短信状态 (0:未发送;1:已发送;)',
`confirm_time` datetime NULL DEFAULT NULL COMMENT '已读时间',
`expire_time` datetime NOT NULL COMMENT '过期时间',
`create_by` varchar(64) NOT NULL COMMENT '创建人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_by` varchar(64) NOT NULL COMMENT '修改人',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`delete_flag` char(1) NOT NULL DEFAULT 'N' COMMENT '删除标识 (D:已删除;N:未删除)',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_notification_id` (`notification_id`) USING BTREE,
KEY `idx_account_id` (`account_id`) USING BTREE,
KEY `idx_popup_type` (`popup_type`) USING BTREE,
KEY `idx_source` (`source_type`, `source_id`) USING BTREE,
KEY `idx_status` (`status`) USING BTREE,
KEY `idx_expire_time` (`expire_time`) USING BTREE,
KEY `idx_create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='优惠券弹窗通知表';
CREATE TABLE `coupon_order_usage`
(
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键 ID',
`usage_id` varchar(50) NOT NULL COMMENT '使用记录唯一 ID',
`order_id` int NOT NULL COMMENT '订单 ID(关联 auction_order.ORDER_ID)',
`vehicle_id` int(11) NOT NULL COMMENT '车辆ID',
`order_code` varchar(64) DEFAULT NULL COMMENT '订单编号(冗余字段)',
`account_id` int NOT NULL COMMENT '小程序用户账户 ID(关联 account.ACCOUNT_ID)',
`coupon_id` varchar(50) NOT NULL COMMENT '优惠券实例 ID',
`template_id` bigint NOT NULL COMMENT '优惠券模板 ID',
`template_name` varchar(100) NOT NULL COMMENT '优惠券名称(冗余字段)',
`deduction_type` tinyint NOT NULL DEFAULT 2 COMMENT '抵扣类型 (1:抵扣车款;2:抵扣佣金)',
`face_amount` decimal(16, 2) NOT NULL COMMENT '券面额(元)',
`actual_deduction` decimal(16, 2) NOT NULL COMMENT '实际抵扣金额(元)',
`usage_status` tinyint NOT NULL DEFAULT 1 COMMENT '使用状态 (1:已使用;2:已退回/订单取消)',
`usage_time` datetime NOT NULL COMMENT '使用时间',
`return_time` datetime DEFAULT NULL COMMENT '退回时间(订单取消时)',
`return_reason` varchar(255) DEFAULT NULL COMMENT '退回原因',
`create_by` varchar(64) NOT NULL COMMENT '创建人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_by` varchar(64) NOT NULL COMMENT '修改人',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`delete_flag` char(1) NOT NULL DEFAULT 'N' COMMENT '删除标识 (D:已删除;N:未删除)',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_usage_id` (`usage_id`) USING BTREE,
UNIQUE KEY `uk_order_coupon` (`order_id`, `coupon_id`) USING BTREE COMMENT '一个订单只能使用一张券',
KEY `idx_order_id` (`order_id`) USING BTREE,
KEY `idx_coupon_id` (`coupon_id`) USING BTREE,
KEY `idx_account_id` (`account_id`) USING BTREE,
KEY `idx_usage_time` (`usage_time`) USING BTREE,
KEY `idx_create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='优惠券订单使用记录表';
CREATE TABLE `coupon_activity_target_account`
(
`id` BIGINT NOT NULL AUTO_INCREMENT COMMENT 'ID',
`activity_id` BIGINT NOT NULL COMMENT '关联活动 ID',
`account_id` INT NOT NULL COMMENT '账户 ID',
`account_mobile` VARCHAR(16) NOT NULL COMMENT '账户手机号',
`account_name` VARCHAR(64) DEFAULT NULL COMMENT '账户姓名',
`is_distributed` TINYINT NOT NULL DEFAULT 0 COMMENT '是否已发放:0=否,1=是',
`distribution_time` DATETIME DEFAULT NULL COMMENT '发放时间',
`create_by` varchar(64) NOT NULL COMMENT '创建人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_by` varchar(64) NOT NULL COMMENT '修改人',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`delete_flag` char(1) NOT NULL DEFAULT 'N' COMMENT '删除标识 (D:已删除;N:未删除)',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_activity_account` (`activity_id`, `account_id`) USING BTREE,
KEY `idx_activity_id` (`activity_id`) USING BTREE,
KEY `idx_account_id` (`account_id`) USING BTREE,
KEY `idx_is_distributed` (`is_distributed`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='优惠券活动指定账户表';
ALTER TABLE auction_order ADD COLUMN COUPON_DEDUCTION DECIMAL(16,2) DEFAULT 0.00 COMMENT '优惠券抵扣金额';
ALTER TABLE auction_order ADD COLUMN ACTUAL_PAY_AMOUNT DECIMAL(16,2) DEFAULT NULL COMMENT '实付金额(车款+佣金-优惠券抵扣)';
UPDATE auction_order SET COUPON_DEDUCTION = 0, ACTUAL_PAY_AMOUNT = ORDER_PRICE + COMMISSION_PRICE WHERE ACTUAL_PAY_AMOUNT IS NULL;
---- 初始化数据
delete from template_tag where tag_id in (1, 2);
INSERT INTO `template_tag` (
tag_id, `TAG_CODE`, `TAG_NAME`, `TAG_TYPE`, `DESCRIPTION`, `SORT_ORDER`,
`STATUS`, `DELETE_FLAG`, `CREATE_TIME`
) VALUES
(1, 'FUEL_CAR', '燃油车', 'VEHICLE_TYPE', '传统燃油汽车类型', 1, 1, 'N', NOW()),
(2, 'NEW_ENERGY', '新能源', 'VEHICLE_TYPE', '新能源汽车类型(电动车/混动车等)', 2, 1, 'N', NOW());
delete from template_tag_relation where template_id = 1 and tag_id = 1;
insert into template_tag_relation (template_id, tag_id) values (1, 1);
update inspection_template set template_name = '燃油车通用检测模板V1.0', description = '新增默认车辆通用检测模板' where id = 1;
-- 插入事件类型配置
delete from event_type_config where event_code in ('click_backend_enter_edit_mode', 'click_backend_save_report', 'click_backend_cancel_edit');
INSERT INTO `event_type_config` (
`EVENT_TYPE`, `EVENT_CODE`, `EVENT_NAME`, `EVENT_DESC`, `MODULE`, `IS_ACTIVE`, `CREATE_TIME`
) VALUES
('CLICK', 'click_backend_enter_edit_mode', '后台编辑-进入编辑模式', '点击【编辑报告】或【查看/编辑】按钮,进入编辑模式时触发,关联参数:user_id: 操作人ID,role_name: 操作人角色,report_id: 检测报告ID,vehicle_id: 车辆ID,entry_point: 入口来源 (work_order_detail 或 report_list)', 'REPORT_MANAGEMENT', 1, NOW()),
('CLICK', 'click_backend_save_report', '后台编辑-保存报告', '在编辑模式下,点击【保存】按钮时触发,关联参数:user_id: 操作人ID,role_name: 操作人角色,report_id: 检测报告ID,vehicle_id: 车辆ID,modified_fields: [ field_name_1, field_name_2, ... ] (被修改字段的名称列表),edit_duration: (当前时间戳 - 进入编辑模式时的时间戳) (单位:秒)', 'REPORT_MANAGEMENT', 1, NOW()),
('CLICK', 'click_backend_cancel_edit', '后台编辑-取消编辑', '在编辑模式下,点击【取消】按钮时触发,关联参数:user_id: 操作人ID,role_name: 操作人角色,report_id: 检测报告ID,vehicle_id: 车辆ID,edit_duration: (当前时间戳 - 进入编辑模式时的时间戳) (单位:秒)', 'REPORT_MANAGEMENT', 1, NOW());
INSERT INTO aus.event_type_config
(EVENT_TYPE, EVENT_CODE, EVENT_NAME, EVENT_DESC, MODULE, IS_ACTIVE, DELETE_FLAG, REMARK, CREATE_BY, UPDATE_BY, CREATE_TIME, UPDATE_TIME)
VALUES('CLICK', 'click_coupon_popup_click', '优惠券弹窗-点击领取', '点击弹窗上主操作按钮(立即领取)时触发,关联参数:popup_type: 弹窗类型(过户/发放),coupon_id: 关联活动ID', 'HOME_COUPON', 1, 'N', NULL, NULL, NULL, NOW(), NULL),
( 'CLICK', 'click_coupon_popup_close', '优惠券弹窗-关闭弹窗', '点击右上角“X”或蒙层直接关闭弹窗时触发,关联参数:popup_type: 弹窗类型', 'HOME_COUPON', 1, 'N', NULL, NULL, NULL, NOW(), NULL),
( 'CLICK', 'click_home_banner_coupon', '首页Banner-点击优惠券', '点击首页优惠券活动引导Banner时触发,关联参数:activity_id: 关联活动ID', 'HOME_BANNER', 1, 'N', NULL, NULL, NULL, NOW(), NULL),
( 'CLICK', 'click_coupon_rule_detail', '优惠卡券-查看规则', '点击单张卡券“使用说明”展开详情时触发,关联参数:coupon_id: 券实例ID', 'USER_CENTER_COUPON', 1, 'N', NULL, NULL, NULL, NOW(), NULL),
( 'CLICK', 'click_order_coupon_change', '订单结算-切换优惠券', '结算页切换优惠券或选择不使用优惠券时触发,关联参数:selected_coupon_id: 最终选定券ID(空为不使用)', 'ORDER_PAYMENT', 1, 'N', NULL, NULL, NULL, NOW(), NULL),
( 'CLICK', 'click_order_pay_submit', '订单支付-提交支付', '点击“去支付/提交订单”按钮且服务端返回成功触发,关联参数:used_coupon_id: 核销券ID,actual_discount_amount: 实际抵扣金额', 'ORDER_PAYMENT', 1, 'N', NULL, NULL, NULL, NOW(), NULL);
...@@ -3,21 +3,19 @@ ...@@ -3,21 +3,19 @@
## 一、需求列表 ## 一、需求列表
* 功能点 * 功能点
* 车辆检测二期需求
## 二、涉及应用列表版本应用信息 ## 二、涉及应用列表版本应用信息
| SVN/Gitlab地址 | 分支标识(Gitlab必填) | 发版项目名称 | 分支创建人 | 分支合并人 | 代码检查人 | 检查情况 | | SVN/Gitlab地址 | 分支标识(Gitlab必填) | 发版项目名称 | 分支创建人 | 分支合并人 | 代码检查人 | 检查情况 |
|--------------|:--------------:|--------|-------|-------|-------|------| | ------------------------------------------------ | :--------------------: | ------------- | ---------- | ---------- | ---------- | -------- |
| | | | | | | | | http://192.168.3.233:8090/usedCarAuction/aus.git | v1.4.0 | aus-admin | 章家宝 | | | |
| | | | | | | | | http://192.168.3.233:8090/usedCarAuction/aus.git | v1.4.0 | aus-api | 章家宝 | | | |
| | | | | | | | | http://192.168.3.233:8090/usedCarAuction/aus.git | v1.4.0 | aus-config | 章家宝 | | | |
| | | | | | | | | http://192.168.3.233:8090/usedCarAuction/aus.git | v1.4.0 | aus-inspector | 章家宝 | | | |
| | | | | | | | | http://192.168.3.233:8090/usedCarAuction/aus.git | v1.4.0 | aus-vr | 章家宝 | | | |
| | | | | | | | | http://192.168.3.233:8090/usedCarAuction/aus.git | v1.4.0 | aus-vr-api | 章家宝 | | | |
| | | | | | | | | http://192.168.3.233:8090/usedCarAuction/aus.git | v1.4.0 | aus-task | 章家宝 | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
## 三、需求变更记录 ## 三、需求变更记录
...@@ -34,8 +32,71 @@ ...@@ -34,8 +32,71 @@
#### 变更内容 #### 变更内容
* aus-admin
* /admin/rest/inspectionTemplate/page 分页查询检测模版
* /admin/rest/inspectionTemplate/default 获取模版默认值
* /admin/rest/inspectionTemplate/{taskId}/rootNodes 根据模版ID查询该模版下的所有根节点(parentId=0),按sortOrder升序排列
* /admin/rest/inspectionTemplate/detail/{id} 返回模版基本信息及完整节点配置树(不填充检测数据)
* /admin/rest/inspectionNode/{rootNodeId}/children 根据根节点 ID 查询该节点下的所有子节点,返回结果按 sortOrder 升序排列
* /admin/rest/inspect/record/save 保存检测数据(按一级模块)
* /admin/rest/inspect/record/saveScore PC端保存检测评分(保存后自动检查是否满足完成条件)
* /admin/rest/ropApi/getCarTypeList 根据车系ID查询车型列表
* /admin/rest/ropApi/getCarBrandComplete 查询车品牌全称
* /admin/rest/inspect/wo/opLog/{workOrderId}/page 查询工单操作日志
* /admin/rest/inspect/export 导出检测师数据列表为Excel文件(改造)
* /admin/rest/inspect/page 分页查询检测师(改造)
* /admin/rest/inspect/record/saveScore 保存评分数据
* /admin/rest/vehicle/vehicleStateCount 库存车辆状态数量统计
* /admin/rest/auctionOrder/orderStateCount 拍卖订单状态数量统计
* /admin/rest/inspect/wo/statusCount 检测工单状态数量统计
* /admin/rest/coupon/activity/add 新增优惠券活动
* /admin/rest/coupon/activity/update 编辑优惠券
* /admin/rest/coupon/activity/changeStatus 启动-停用活动
* /admin/rest/coupon/activity/delete 删除优惠券活动
* /admin/rest/coupon/activity/page 分页查询优惠券活动
* /admin/rest/coupon/activity/detail 获取优惠券活动详情
* /admin/rest/coupon/template/available 获取可用得的优惠券模板列表
* /admin/rest/coupon/template/add 新增优惠券模板
* /admin/rest/coupon/template/update 编辑优惠券模板
* /admin/rest/coupon/template/changeStatus 启动-停用优惠券模板
* /admin/rest/coupon/template/detail 获取优惠券模板详情
* /admin/rest/coupon/template/page 分页查询优惠券模板
* /admin/rest/coupon/template/manualDistribution 手动发放优惠券模板
* /admin/rest/coupon/distribution/record/page 分页查询优惠券发放记录
* /admin/rest/coupon/distribution/record/export 导出优惠券发放记录
* /admin/rest/coupon/distribution/record/reissue 优惠券发放记录补发
* /admin/rest/coupon/distribution/statistics、
* aus-inspector
* /inspector/rest/inspectionRecord/save 保存-下一步(改造)
* /inspector/rest/inspectionRecord/completeInspection 完成检测(改造)
* aus-api
* /api/coupon/list 获取优惠券列表
* /api/coupon/detail/{couponId} 获取优惠券详情
* /api/coupon/popup 获取优惠券弹窗
* /api/coupon/count 获取优惠券数量
* /api/coupon/verify 核销优惠券
* /api/coupon/order-coupons/{id} 获取订单优惠券
* /api/coupon/latest-activity 获取最新优惠券活动
* /api/coupon/red-dot 获取优惠券红点
#### 影响范围 #### 影响范围
* 拍卖端后台
* 检测模版管理
* 检测工单管理
* 编辑报告
* 详情
* 检测师管理
* 优惠卡券管理
* 优惠券管理 (分页查询,详情,手动发放,新增,修改,删除,删除)
* 优惠券活动管理 (分页查询,详情,新增,修改,删除,启动-停用)
* 优惠券发放记录 (分页查询,导出,补发)
* 检测端H5
* 提交检测
* 优加车拍小程序
* 优惠券查询,详情,核销,弹窗,红点
### 第二轮提测 ### 第二轮提测
#### 变更内容2 #### 变更内容2
......
## 示例
```txt
欣伟:
         申请线上定时任务触发,用于需求上线后验证。
         
         触发时间:0328大版本上线服务发版后
         注册中心:dubbo.zk.glsx.com:2181
         命名空间:glsx_elastic_job
         需要触发的定时任务名:EarlyWarningMsgCreateJob、EarlyWarningMsgQiWeiGroupJob、EarlyWarningOpeStaffSendJob、EarlyWarningResStaffSendJob、EarlyWarningSupSalesStaffSendJob
         执行步骤:先把上述job的corn表达式改成离当前时间一分钟,例如(0 0 23 * * ?) 23点0分执行,让程序自己执行一次,执行一次后,会变成正常可触发状态,无需再次触发,只需要把corn表达式还原就行
        注意事项:定时任务 EarlyWarningSupSalesStaffSendJob 需要先改配置后执行定时任务,测试完成后再把配置还原。把服务 rpc-dj-mindworkplate 配置项 work.wechat.ope.phone 值改为 13825207633,等测试完成再还原。
```
## 内容
```txt
王经理你好:
         申请线上定时任务触发,用于需求上线后验证。
注册中心:dubbo.zk.glsx.com:2181
         命名空间:glsx_elastic_job
       任务1:
         触发时间:0328大版本上线服务发版后
         需要触发的定时任务名:MarkAbnormalOrderJob
         执行步骤:先把上述job的corn表达式改成离当前时间一分钟,例如(0 0 23 * * ?) 23点0分执行,让程序自己执行一次,执行一次后,会变成正常可触发状态,无需再次触发,只需要把corn表达式还原为 0 0 0 * * ? 2099
        
       任务2:
        触发任务:SyncBeisenStaffBaseInfoJob 同步北森员工基础信息
    原corn表达式:0 0 5 * * ?
    触发时间:版本发布后,等海宝北森数据定时任务执行后再触发,可找研发王璐琦确认
   
    任务3:
    触发任务:SendGoodsOrderApplyWechatMessageJob 发送订单待审核企微消息
    原corn表达式:0 30 13 * * ?
    触发时间:版本发布后,等测试造完数据后后再触发,可找研发王璐琦确认
   
    任务4:
    触发任务:UpdateStaffSalaryEffectiveRuleStatusJob 更新维护薪资占比生效状态
    原corn表达式:0 0 0 1 * ?
    触发时间:版本发布后,等脚本执行完毕,北森数据同步完成后再触发,可找研发王璐琦确认
   
    任务5:
    触发任务:PerfRuleSettingJob 确定该月需要采用的绩效等级配置
    原corn表达式:0 0 1 1 * ?
    触发时间:版本发布后,先把上述job的corn表达式改成离当前时间一分钟,让程序自己执行一次,执行一次后,会变成正常可触发状态,无需再次触发,只需要把corn表达式还原就行,可找研发张富康确认
   
    任务6:
    触发任务:EffectiveReferralReviewStatsJob 进行有效引荐数交车数的统计
    原corn表达式:0 0 2 1 * ?
    触发时间:版本发布后,先把上述job的corn表达式改成离当前时间一分钟,让程序自己执行一次,执行一次后,会变成正常可触发状态,无需再次触发,只需要把corn表达式还原就行,可找研发张富康确认
   
    任务7:
    触发任务:AttendanceDataCleansing 处理清洗考勤数据统计
    原corn表达式:0 30 4 1 * ?
    触发时间:版本发布后,UpdateStaffSalaryEffectiveRuleStatusJob(任务4)执行完毕,北森数据同步完成后再触发,可找研发张富康确认
   
    任务8:
    触发任务:AutoPerfEvaluationJob 每月自动评绩效
    原corn表达式:0 30 5 1 * ?
    触发时间:版本发布后,AttendanceDataCleansing(任务7)执行完毕,处理清洗考勤数据统计完成后再触发,可找研发张富康确认
对于以上8个任务,触发任务后需还原表达式。
```
## 代码负责人
### 修改内容:
### 影响功能点:
### review前:
![img.png](代码review模板(每个人一个文件夹)/img.png)
### review后:
![img_1.png](代码review模板(每个人一个文件夹)/img_1.png)
### review是否通过:通过/不通过
### 问题描述
- xxxxxx
- xxxxxx
## 1、【运营日常分析业绩波动并进行问题归因】:
改动代码:
- rop-dj-smartcarlife:
- dj.api.smartcarlife.risk.manage.home.page 店效盯防-首页
- dj.api.smartcarlife.risk.manage.merchant.performance.page 店效盯防-风险榜
- dj.api.smartcarlife.risk.manage.merchant.performance.export 店效盯防-风险榜-导出
- dj.api.smartcarlife.risk.manage.merchant.performance.detail 店效盯防-门店详情-门店产值信息
- dj.api.smartcarlife.risk.manage.notice.board.items.detail 店效盯防-更多看板/门店详情-数据指标
- dj.api.smartcarlife.risk.manage.notice.board.merchant.list 店效盯防-更多看板-门店列表
- dj.api.smartcarlife.risk.manage.notice.board.merchant.list.export 店效盯防-更多看板-门店列表导出
- dj.api.smartcarlife.risk.manage.code.detail.list 店效盯防-指标详情(趋势图)
- 影响功能点:
- 嘀加智享车生活
- 预警管理-店效盯防
- 盯防首页
- 业绩风险榜、门店风险榜
- 更多看板:数据指标、门店列表、指标详情折线图
- 门店详情、漏斗图
-----------------------------------------
#### review前:
![img.png](img.png)
#### review后:
![img_1.png](img_1.png)
review是否通过:通过/不通过
问题描述:xxxxxx
需要处理的:
代码层面的errors必须修复
java:
probable bugs: 需要处理
- nullability problems
- Constant values
- Malformed format string
- Nullability and data flow problems
- Optional.get() iscalled without isPresent() check
- overwritten Map,Set or array element
- statement has empty body
Threading issues:需要处理
- Busy wait
error handing:需要处理
control flow issues:需要处理
numeric issues:需要处理
performance:需要处理
maven :需要处理
- duplicate dependencies
mybatis:需要处理
- mapper method inspection
- mapper xml inspection
## 创建4s店人员配置
接口地址:/gsc-vcp-web-facade/storeConfig/create
### 1.成功创建4s店人员配置
请求curl:
```shell
curl --location --request POST 'http://gsc.dev.glsx.com.cn/gsc-vcp-web-facade/storeConfig/create?sessionId=0b58a34b-9a82-4afd-8993-164da1f4188b' \
--header 'Referer: http://localhost:8080/rop-scrm-stoassistant/router/swagger-ui/v3/index.html' \
--header 'X-Mock: true' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Host: gsc.dev.glsx.com.cn' \
--header 'Connection: keep-alive' \
--data-raw '{
"storeId": 84,
"storeName": "禄梓涵",
"pricingSpecialistId": "45",
"pricingSpecialistName": "董勇",
"staffPhone": "1321111111"
}'
```
![img.png](img.png)
### 2.测试重复创建同一家4s店的同一个总部定价师
请求curl:
```shell
curl --location --request POST 'http://gsc.dev.glsx.com.cn/gsc-vcp-web-facade/storeConfig/create?sessionId=0b58a34b-9a82-4afd-8993-164da1f4188b' \
--header 'Referer: http://localhost:8080/rop-scrm-stoassistant/router/swagger-ui/v3/index.html' \
--header 'X-Mock: true' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Host: gsc.dev.glsx.com.cn' \
--header 'Connection: keep-alive' \
--data-raw '{
"storeId": 84,
"storeName": "禄梓涵",
"pricingSpecialistId": "45",
"pricingSpecialistName": "董勇",
"staffPhone": "1321111111"
}'
```
![img_1.png](img_1.png)
### 3.测试总部定价师必填字段不能为空
```shell
curl --location --request POST 'http://gsc.dev.glsx.com.cn/gsc-vcp-web-facade/storeConfig/create?sessionId=0b58a34b-9a82-4afd-8993-164da1f4188b' \
--header 'Referer: http://localhost:8080/rop-scrm-stoassistant/router/swagger-ui/v3/index.html' \
--header 'X-Mock: true' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Host: gsc.dev.glsx.com.cn' \
--header 'Connection: keep-alive' \
--data-raw '{
"storeId": 84,
"storeName": "禄梓涵",
"pricingSpecialistId": "45",
"pricingSpecialistName": "董勇",
"staffPhone": ""
}'
```
![img_2.png](img_2.png)
\ No newline at end of file \ No newline at end of file
### 说明:
* 配置要备注【新增】、【修改】、【删除】
* 如果有新的kafka的topic,那就需要额外备注【生产需要创建topic】
### 开发环境
```properties
```
### 测试环境
```properties
```
### 预发布环境
```properties
```
### 线上环境
```properties
```
###
# 版本开发内容
## 一、需求列表
* 功能点
## 二、涉及应用列表版本应用信息
| SVN/Gitlab地址 | 分支标识(Gitlab必填) | 发版项目名称 | 分支创建人 | 分支合并人 | 代码检查人 | 检查情况 |
|--------------|:--------------:|--------|-------|-------|-------|------|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
## 三、需求变更记录
> 当下方有记录时提测附上此处截图,用于反向督促产品需求的把控
| 产品 | 变更时间 | 变更内容 |
|----|------|------|
## 四、提测变更与影响范围
> 协助测试明确变更与影响,做相应的测试边界处理
#### 第一轮提测
#### 变更内容
#### 影响范围
### 第二轮提测
#### 变更内容2
#### 影响范围
### 第三轮提测
#### 变更内容
#### 影响范围
###
\ No newline at end of file \ No newline at end of file
## 示例
```txt
欣伟:
         申请线上定时任务触发,用于需求上线后验证。
         
         触发时间:0328大版本上线服务发版后
         注册中心:dubbo.zk.glsx.com:2181
         命名空间:glsx_elastic_job
         需要触发的定时任务名:EarlyWarningMsgCreateJob、EarlyWarningMsgQiWeiGroupJob、EarlyWarningOpeStaffSendJob、EarlyWarningResStaffSendJob、EarlyWarningSupSalesStaffSendJob
         执行步骤:先把上述job的corn表达式改成离当前时间一分钟,例如(0 0 23 * * ?) 23点0分执行,让程序自己执行一次,执行一次后,会变成正常可触发状态,无需再次触发,只需要把corn表达式还原就行
        注意事项:定时任务 EarlyWarningSupSalesStaffSendJob 需要先改配置后执行定时任务,测试完成后再把配置还原。把服务 rpc-dj-mindworkplate 配置项 work.wechat.ope.phone 值改为 13825207633,等测试完成再还原。
```
## 内容
```txt
王经理你好:
         申请线上定时任务触发,用于需求上线后验证。
注册中心:dubbo.zk.glsx.com:2181
         命名空间:glsx_elastic_job
       任务1:
         触发时间:0328大版本上线服务发版后
         需要触发的定时任务名:MarkAbnormalOrderJob
         执行步骤:先把上述job的corn表达式改成离当前时间一分钟,例如(0 0 23 * * ?) 23点0分执行,让程序自己执行一次,执行一次后,会变成正常可触发状态,无需再次触发,只需要把corn表达式还原为 0 0 0 * * ? 2099
        
       任务2:
        触发任务:SyncBeisenStaffBaseInfoJob 同步北森员工基础信息
    原corn表达式:0 0 5 * * ?
    触发时间:版本发布后,等海宝北森数据定时任务执行后再触发,可找研发王璐琦确认
   
    任务3:
    触发任务:SendGoodsOrderApplyWechatMessageJob 发送订单待审核企微消息
    原corn表达式:0 30 13 * * ?
    触发时间:版本发布后,等测试造完数据后后再触发,可找研发王璐琦确认
   
    任务4:
    触发任务:UpdateStaffSalaryEffectiveRuleStatusJob 更新维护薪资占比生效状态
    原corn表达式:0 0 0 1 * ?
    触发时间:版本发布后,等脚本执行完毕,北森数据同步完成后再触发,可找研发王璐琦确认
   
    任务5:
    触发任务:PerfRuleSettingJob 确定该月需要采用的绩效等级配置
    原corn表达式:0 0 1 1 * ?
    触发时间:版本发布后,先把上述job的corn表达式改成离当前时间一分钟,让程序自己执行一次,执行一次后,会变成正常可触发状态,无需再次触发,只需要把corn表达式还原就行,可找研发张富康确认
   
    任务6:
    触发任务:EffectiveReferralReviewStatsJob 进行有效引荐数交车数的统计
    原corn表达式:0 0 2 1 * ?
    触发时间:版本发布后,先把上述job的corn表达式改成离当前时间一分钟,让程序自己执行一次,执行一次后,会变成正常可触发状态,无需再次触发,只需要把corn表达式还原就行,可找研发张富康确认
   
    任务7:
    触发任务:AttendanceDataCleansing 处理清洗考勤数据统计
    原corn表达式:0 30 4 1 * ?
    触发时间:版本发布后,UpdateStaffSalaryEffectiveRuleStatusJob(任务4)执行完毕,北森数据同步完成后再触发,可找研发张富康确认
   
    任务8:
    触发任务:AutoPerfEvaluationJob 每月自动评绩效
    原corn表达式:0 30 5 1 * ?
    触发时间:版本发布后,AttendanceDataCleansing(任务7)执行完毕,处理清洗考勤数据统计完成后再触发,可找研发张富康确认
对于以上8个任务,触发任务后需还原表达式。
```
## 代码负责人
### 修改内容:
### 影响功能点:
### review前:
![img.png](代码review模板(每个人一个文件夹)/img.png)
### review后:
![img_1.png](代码review模板(每个人一个文件夹)/img_1.png)
### review是否通过:通过/不通过
### 问题描述
- xxxxxx
- xxxxxx
## 1、【运营日常分析业绩波动并进行问题归因】:
改动代码:
- rop-dj-smartcarlife:
- dj.api.smartcarlife.risk.manage.home.page 店效盯防-首页
- dj.api.smartcarlife.risk.manage.merchant.performance.page 店效盯防-风险榜
- dj.api.smartcarlife.risk.manage.merchant.performance.export 店效盯防-风险榜-导出
- dj.api.smartcarlife.risk.manage.merchant.performance.detail 店效盯防-门店详情-门店产值信息
- dj.api.smartcarlife.risk.manage.notice.board.items.detail 店效盯防-更多看板/门店详情-数据指标
- dj.api.smartcarlife.risk.manage.notice.board.merchant.list 店效盯防-更多看板-门店列表
- dj.api.smartcarlife.risk.manage.notice.board.merchant.list.export 店效盯防-更多看板-门店列表导出
- dj.api.smartcarlife.risk.manage.code.detail.list 店效盯防-指标详情(趋势图)
- 影响功能点:
- 嘀加智享车生活
- 预警管理-店效盯防
- 盯防首页
- 业绩风险榜、门店风险榜
- 更多看板:数据指标、门店列表、指标详情折线图
- 门店详情、漏斗图
-----------------------------------------
#### review前:
![img.png](img.png)
#### review后:
![img_1.png](img_1.png)
review是否通过:通过/不通过
问题描述:xxxxxx
需要处理的:
代码层面的errors必须修复
java:
probable bugs: 需要处理
- nullability problems
- Constant values
- Malformed format string
- Nullability and data flow problems
- Optional.get() iscalled without isPresent() check
- overwritten Map,Set or array element
- statement has empty body
Threading issues:需要处理
- Busy wait
error handing:需要处理
control flow issues:需要处理
numeric issues:需要处理
performance:需要处理
maven :需要处理
- duplicate dependencies
mybatis:需要处理
- mapper method inspection
- mapper xml inspection
### 陈希 -----------------start-------------------
### 陈希 -----------------end---------------------
### 立明 -----------------start-------------------
### 立明 -----------------end---------------------
### 彦峰 -----------------start-------------------
### 彦峰 -----------------end---------------------
### 富康 -----------------start-------------------
### 富康 -----------------end---------------------
### 璐琦 -----------------start-------------------
### 璐琦 -----------------end---------------------
### 林冲 -----------------start--------------------
### 林冲 -----------------end----------------------
### 叶立庆 -----------------start-------------------
### 叶立庆 -----------------end---------------------
### 周海宝 -----------------start-------------------
### 周海宝 -----------------end---------------------
### 范富荣 -----------------start-------------------
### 范富荣 -----------------end---------------------
### 林永健 -----------------start-------------------
### 林永健 -----------------end---------------------
### 谢海旭 -----------------start-------------------
### 谢海旭 -----------------end---------------------
### 杨卫 -----------------start--------------------
### 杨卫 -----------------end----------------------
### 陈希 -----------------start-------------------
### 陈希 -----------------end---------------------
### 立明 -----------------start-------------------
### 立明 -----------------end---------------------
### 彦峰 -----------------start-------------------
### 彦峰 -----------------end---------------------
### 富康 -----------------start-------------------
### 富康 -----------------end---------------------
### 璐琦 -----------------start-------------------
### 璐琦 -----------------end---------------------
### 林冲 -----------------start--------------------
### 林冲 -----------------end----------------------
\ No newline at end of file \ No newline at end of file
### 叶立庆 -----------------start-------------------
### 叶立庆 -----------------end---------------------
### 周海宝 -----------------start-------------------
### 周海宝 -----------------end---------------------
### 范富荣 -----------------start-------------------
### 范富荣 -----------------end---------------------
### 林永健 -----------------start-------------------
### 林永健 -----------------end---------------------
### 谢海旭 -----------------start-------------------
### 谢海旭 -----------------end---------------------
### 杨卫 -----------------start--------------------
-- 初始化脚本
delete from clue_burial_point_event_info where event_code in (
'qinggai_temp_001_click', 'uuid_temp_001_click', 'uuid_temp_011_click', 'uuid_temp_012_click',
'uuid_temp_013_click', 'uuid_temp_014_click', 'uuid_temp_015_click', 'uuid_temp_016_click',
'uuid_temp_017_click', 'uuid_temp_018_click', 'uuid_temp_019_click', 'uuid_temp_020_click',
'uuid_temp_021_click', 'uuid_temp_022_click', 'uuid_temp_023_click', 'qinggai_temp_001_browse',
'uuid_temp_001_browse', 'uuid_temp_011_browse', 'uuid_temp_012_browse', 'uuid_temp_013_browse',
'uuid_temp_014_browse', 'uuid_temp_015_browse', 'uuid_temp_016_browse', 'uuid_temp_017_browse',
'uuid_temp_018_browse', 'uuid_temp_019_browse', 'uuid_temp_020_browse', 'uuid_temp_021_browse',
'uuid_temp_022_browse', 'uuid_temp_023_browse', 'qinggai_temp_001_add', 'uuid_temp_001_add',
'uuid_temp_011_add', 'uuid_temp_012_add', 'uuid_temp_013_add', 'uuid_temp_014_add',
'uuid_temp_015_add', 'uuid_temp_016_add', 'uuid_temp_017_add', 'uuid_temp_018_add',
'uuid_temp_019_add', 'uuid_temp_020_add', 'uuid_temp_021_add', 'uuid_temp_022_add',
'uuid_temp_023_add', 'qinggai_temp_001_edit', 'uuid_temp_001_edit', 'uuid_temp_011_edit',
'uuid_temp_012_edit', 'uuid_temp_013_edit', 'uuid_temp_014_edit', 'uuid_temp_015_edit',
'uuid_temp_016_edit', 'uuid_temp_017_edit', 'uuid_temp_018_edit', 'uuid_temp_019_edit',
'uuid_temp_020_edit', 'uuid_temp_021_edit', 'uuid_temp_022_edit', 'uuid_temp_023_edit'
);
insert into clue_burial_point_event_info (event_code, event_name) values
('qinggai_temp_001_click', '点击-1.1轻改区域日报模版'),
('uuid_temp_001_click', '点击-2.3延保区域日报模版'),
('uuid_temp_011_click', '点击-2.1权益区域日报模版'),
('uuid_temp_012_click', '点击-2.1区域经理周报模版'),
('uuid_temp_013_click', '点击-1.1区域经理周报模版'),
('uuid_temp_014_click', '点击-2.3区域经理周报模版'),
('uuid_temp_015_click', '点击-2.1运营主管周报模版'),
('uuid_temp_016_click', '点击-1.1运营主管周报模版'),
('uuid_temp_017_click', '点击-2.3运营主管周报模版'),
('uuid_temp_018_click', '点击-1.1区域经理月报模版'),
('uuid_temp_019_click', '点击-2.1区域经理月报模版'),
('uuid_temp_020_click', '点击-2.3区域经理月报模版'),
('uuid_temp_021_click', '点击-2.1运营主管月报模版'),
('uuid_temp_022_click', '点击-1.1运营主管月报模版'),
('uuid_temp_023_click', '点击-2.3运营主管月报模版'),
('qinggai_temp_001_browse', '浏览-1.1轻改区域日报模版'),
('uuid_temp_001_browse', '浏览-2.3延保区域日报模版'),
('uuid_temp_011_browse', '浏览-2.1权益区域日报模版'),
('uuid_temp_012_browse', '浏览-2.1区域经理周报模版'),
('uuid_temp_013_browse', '浏览-1.1区域经理周报模版'),
('uuid_temp_014_browse', '浏览-2.3区域经理周报模版'),
('uuid_temp_015_browse', '浏览-2.1运营主管周报模版'),
('uuid_temp_016_browse', '浏览-1.1运营主管周报模版'),
('uuid_temp_017_browse', '浏览-2.3运营主管周报模版'),
('uuid_temp_018_browse', '浏览-1.1区域经理月报模版'),
('uuid_temp_019_browse', '浏览-2.1区域经理月报模版'),
('uuid_temp_020_browse', '浏览-2.3区域经理月报模版'),
('uuid_temp_021_browse', '浏览-2.1运营主管月报模版'),
('uuid_temp_022_browse', '浏览-1.1运营主管月报模版'),
('uuid_temp_023_browse', '浏览-2.3运营主管月报模版'),
('qinggai_temp_001_add', '新增-1.1轻改区域日报模版'),
('uuid_temp_001_add', '新增-2.3延保区域日报模版'),
('uuid_temp_011_add', '新增-2.1权益区域日报模版'),
('uuid_temp_012_add', '新增-2.1区域经理周报模版'),
('uuid_temp_013_add', '新增-1.1区域经理周报模版'),
('uuid_temp_014_add', '新增-2.3区域经理周报模版'),
('uuid_temp_015_add', '新增-2.1运营主管周报模版'),
('uuid_temp_016_add', '新增-1.1运营主管周报模版'),
('uuid_temp_017_add', '新增-2.3运营主管周报模版'),
('uuid_temp_018_add', '新增-1.1区域经理月报模版'),
('uuid_temp_019_add', '新增-2.1区域经理月报模版'),
('uuid_temp_020_add', '新增-2.3区域经理月报模版'),
('uuid_temp_021_add', '新增-2.1运营主管月报模版'),
('uuid_temp_022_add', '新增-1.1运营主管月报模版'),
('uuid_temp_023_add', '新增-2.3运营主管月报模版'),
('qinggai_temp_001_edit', '编辑-1.1轻改区域日报模版'),
('uuid_temp_001_edit', '编辑-2.3延保区域日报模版'),
('uuid_temp_011_edit', '编辑-2.1权益区域日报模版'),
('uuid_temp_012_edit', '编辑-2.1区域经理周报模版'),
('uuid_temp_013_edit', '编辑-1.1区域经理周报模版'),
('uuid_temp_014_edit', '编辑-2.3区域经理周报模版'),
('uuid_temp_015_edit', '编辑-2.1运营主管周报模版'),
('uuid_temp_016_edit', '编辑-1.1运营主管周报模版'),
('uuid_temp_017_edit', '编辑-2.3运营主管周报模版'),
('uuid_temp_018_edit', '编辑-1.1区域经理月报模版'),
('uuid_temp_019_edit', '编辑-2.1区域经理月报模版'),
('uuid_temp_020_edit', '编辑-2.3区域经理月报模版'),
('uuid_temp_021_edit', '编辑-2.1运营主管月报模版'),
('uuid_temp_022_edit', '编辑-1.1运营主管月报模版'),
('uuid_temp_023_edit', '编辑-2.3运营主管月报模版');
### 杨卫 -----------------end----------------------
## 创建4s店人员配置
接口地址:/gsc-vcp-web-facade/storeConfig/create
### 1.成功创建4s店人员配置
请求curl:
```shell
curl --location --request POST 'http://gsc.dev.glsx.com.cn/gsc-vcp-web-facade/storeConfig/create?sessionId=0b58a34b-9a82-4afd-8993-164da1f4188b' \
--header 'Referer: http://localhost:8080/rop-scrm-stoassistant/router/swagger-ui/v3/index.html' \
--header 'X-Mock: true' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Host: gsc.dev.glsx.com.cn' \
--header 'Connection: keep-alive' \
--data-raw '{
"storeId": 84,
"storeName": "禄梓涵",
"pricingSpecialistId": "45",
"pricingSpecialistName": "董勇",
"staffPhone": "1321111111"
}'
```
![img.png](img.png)
### 2.测试重复创建同一家4s店的同一个总部定价师
请求curl:
```shell
curl --location --request POST 'http://gsc.dev.glsx.com.cn/gsc-vcp-web-facade/storeConfig/create?sessionId=0b58a34b-9a82-4afd-8993-164da1f4188b' \
--header 'Referer: http://localhost:8080/rop-scrm-stoassistant/router/swagger-ui/v3/index.html' \
--header 'X-Mock: true' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Host: gsc.dev.glsx.com.cn' \
--header 'Connection: keep-alive' \
--data-raw '{
"storeId": 84,
"storeName": "禄梓涵",
"pricingSpecialistId": "45",
"pricingSpecialistName": "董勇",
"staffPhone": "1321111111"
}'
```
![img_1.png](img_1.png)
### 3.测试总部定价师必填字段不能为空
```shell
curl --location --request POST 'http://gsc.dev.glsx.com.cn/gsc-vcp-web-facade/storeConfig/create?sessionId=0b58a34b-9a82-4afd-8993-164da1f4188b' \
--header 'Referer: http://localhost:8080/rop-scrm-stoassistant/router/swagger-ui/v3/index.html' \
--header 'X-Mock: true' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Host: gsc.dev.glsx.com.cn' \
--header 'Connection: keep-alive' \
--data-raw '{
"storeId": 84,
"storeName": "禄梓涵",
"pricingSpecialistId": "45",
"pricingSpecialistName": "董勇",
"staffPhone": ""
}'
```
![img_2.png](img_2.png)
\ No newline at end of file \ No newline at end of file
### 说明:
* 配置要备注【新增】、【修改】、【删除】
* 如果有新的kafka的topic,那就需要额外备注【生产需要创建topic】
### 开发环境
```properties
```
### 测试环境
```properties
```
### 预发布环境
```properties
```
### 线上环境
```properties
```
###
# 版本开发内容
## 一、需求列表
* 功能点
## 二、涉及应用列表版本应用信息
| SVN/Gitlab地址 | 分支标识(Gitlab必填) | 发版项目名称 | 分支创建人 | 分支合并人 | 代码检查人 | 检查情况 |
|--------------|:--------------:|--------|-------|-------|-------|------|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
## 三、需求变更记录
> 当下方有记录时提测附上此处截图,用于反向督促产品需求的把控
| 产品 | 变更时间 | 变更内容 |
|----|------|------|
## 四、提测变更与影响范围
> 协助测试明确变更与影响,做相应的测试边界处理
#### 第一轮提测
#### 变更内容
#### 影响范围
### 第二轮提测
#### 变更内容2
#### 影响范围
### 第三轮提测
#### 变更内容
#### 影响范围
###
\ 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!