Commit d93aa1d0 by 章家宝

feat:优加车拍检测需求ddl提交

1 parent 20f53aef
......@@ -65,6 +65,7 @@ CREATE TABLE `inspection_work_order_op_log`
COLLATE = utf8mb4_unicode_ci COMMENT ='检测工单操作日志表';
CREATE TABLE `inspection_report`
(
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
......@@ -72,8 +73,7 @@ CREATE TABLE `inspection_report`
`wo_id` varchar(50) NOT NULL COMMENT '关联工单号(对应inspection_work_order.wo_id)',
`work_order_inner_id` bigint NOT NULL COMMENT '关联检测工单主键ID(对应inspection_work_order.id)',
`vehicle_id` int(11) NOT NULL COMMENT '车辆ID(对应inspection_work_order.vehicle_id)',
`score` decimal(4,1) COMMENT '评分(保留1位小数,与工单评分一致)',
`score_level` char(1) NOT NULL COMMENT '评分级别(ABCDEF)',
`inspection_record_id` bigint NOT NULL COMMENT '检测记录id',
`bind_status` tinyint(2) NOT NULL COMMENT '绑定状态(1:已绑定;2:未绑定)',
`h5_url` varchar(512) COMMENT 'H5链接地址(检测报告预览链接)',
`create_by` varchar(64) NOT NULL COMMENT '创建人',
......@@ -83,12 +83,10 @@ CREATE TABLE `inspection_report`
`delete_flag` char(1) NOT NULL DEFAULT 'N' COMMENT '删除标识(D:已删除;N:未删除)',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_report_no` (`report_no`) USING BTREE,
-- 核心查询索引:补充delete_flag(必过滤字段),提升查询效率
KEY `idx_wo_id_del` (`wo_id`, `delete_flag`) USING BTREE,
KEY `idx_work_order_inner_id_del` (`work_order_inner_id`, `delete_flag`) USING BTREE,
KEY `idx_vehicle_id_del` (`vehicle_id`, `delete_flag`) USING BTREE,
-- 高频组合查询索引(若业务需按评分级别+绑定状态查询)
KEY `idx_score_level_bind_status_del` (`score_level`, `bind_status`, `delete_flag`) USING BTREE
KEY `idx_inspection_record_id_del` (`inspection_record_id`, `delete_flag`) USING BTREE
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_unicode_ci COMMENT ='检测报告表';
......
......@@ -20,6 +20,7 @@ spring:
thread-name-prefix: inspector-test-
inspector:
inspection-audit-url: http://localhost:6904/inspection-audit
inspection-record-h5-url: http://192.168.1.125:5173/#/detection/record?id=%s
application:
jwt:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!