Commit 836a77e7 by 杨卫 Committed by 崔彦峰

feat(database): 添加车况编码字段和唯一索引

- 在车况信息表中新增 car_condition_code 字段用于标识车况编码
- 为 car_condition_code 字段创建唯一索引以确保数据唯一性
- 更新数据库表结构定义文件以反映新的字段和索引配置
1 parent 4b7b5941
......@@ -12,6 +12,7 @@ ADD COLUMN `confirm_step` tinyint NULL COMMENT '确认步骤:1.基础信息,
#车况信息表
CREATE TABLE `vcp_car_condition` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
`car_condition_code` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '车况编码',
`eval_order_no` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '评估单编号',
`owner_name` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '车主姓名',
`license_plate` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '车牌号',
......@@ -47,6 +48,7 @@ CREATE TABLE `vcp_car_condition` (
`updated_date` datetime NOT NULL COMMENT '修改时间',
`deleted_flag` char(1) COLLATE utf8mb4_unicode_ci DEFAULT 'N' COMMENT '删除标识:N-未删除,D-已删除',
PRIMARY KEY (`id`),
UNIQUE KEY `idx_car_condition_code` (`car_condition_code`),
KEY `idx_vin` (`vin`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='车况信息表';
......
......@@ -1496,6 +1496,25 @@ update inspection_node set node_code = 'accident' where id = 550;
update inspection_node set default_type = 1, default_value = '1-汽油' where id = 22;
-- 为 18 个检测节点设置 node_code
update inspection_node set node_code = 'certificateProcedure' where id = 1; -- 证件手续
update inspection_node set node_code = 'vehicleModelInfo' where id = 48; -- 车型信息
update inspection_node set node_code = 'mainCarImage' where id = 60; -- 车身主图
update inspection_node set node_code = 'electromechanicalCheck' where id = 75; -- 机电检查
update inspection_node set node_code = 'frontCarCheck' where id = 142; -- 车头检查
update inspection_node set node_code = 'engineBay' where id = 163; -- 发动机舱
update inspection_node set node_code = 'rightFrontBody' where id = 204; -- 右前车身
update inspection_node set node_code = 'rightFrontInterior' where id = 251; -- 右前内饰
update inspection_node set node_code = 'rightRearBody' where id = 268; -- 右后车身
update inspection_node set node_code = 'rightRearInterior' where id = 307; -- 右后内饰
update inspection_node set node_code = 'carRear' where id = 332; -- 车尾
update inspection_node set node_code = 'trunkInterior' where id = 355; -- 后备箱内部
update inspection_node set node_code = 'leftRearBody' where id = 406; -- 左后车身
update inspection_node set node_code = 'leftRearInterior' where id = 445; -- 左后内饰
update inspection_node set node_code = 'leftFrontBody' where id = 464; -- 左前车身
update inspection_node set node_code = 'leftFrontInterior' where id = 511; -- 左前内饰
update inspection_node set node_code = 'fireWaterInspection' where id = 544; -- 火烧涉水检查
update inspection_node set node_code = 'operatingVideo' where id = 551; -- 工况视频
-- 删除重复检测项
delete from inspection_node where id in (238,215,498,475,240,217,500,477,239,216,499,476,218,241,242,219,494,471,501,478,502,479);
......
......@@ -2,7 +2,7 @@
server:
port: 6901
servlet:
context-path: /app
context-path: /inspector
spring:
task:
execution:
......
# 开发环境配置
server:
port: 6904
servlet:
context-path: /inspector
logging:
level:
root: info
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!