Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
doc
/
ht_project_doc
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d93aa1d0
authored
Mar 24, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:优加车拍检测需求ddl提交
1 parent
20f53aef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
06_v1.2.0_20260407/sql/DDL/scrm组aus_ddl.sql
06_v1.2.0_20260407/配置/aus-inspector-test.yaml
06_v1.2.0_20260407/sql/DDL/scrm组aus_ddl.sql
View file @
d93aa1d
...
@@ -65,6 +65,7 @@ CREATE TABLE `inspection_work_order_op_log`
...
@@ -65,6 +65,7 @@ CREATE TABLE `inspection_work_order_op_log`
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'检测工单操作日志表'
;
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'检测工单操作日志表'
;
CREATE
TABLE
`inspection_report`
CREATE
TABLE
`inspection_report`
(
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
`id`
bigint
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
...
@@ -72,8 +73,7 @@ CREATE TABLE `inspection_report`
...
@@ -72,8 +73,7 @@ CREATE TABLE `inspection_report`
`wo_id`
varchar
(
50
)
NOT
NULL
COMMENT
'关联工单号(对应inspection_work_order.wo_id)'
,
`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)'
,
`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)'
,
`vehicle_id`
int
(
11
)
NOT
NULL
COMMENT
'车辆ID(对应inspection_work_order.vehicle_id)'
,
`score`
decimal
(
4
,
1
)
COMMENT
'评分(保留1位小数,与工单评分一致)'
,
`inspection_record_id`
bigint
NOT
NULL
COMMENT
'检测记录id'
,
`score_level`
char
(
1
)
NOT
NULL
COMMENT
'评分级别(ABCDEF)'
,
`bind_status`
tinyint
(
2
)
NOT
NULL
COMMENT
'绑定状态(1:已绑定;2:未绑定)'
,
`bind_status`
tinyint
(
2
)
NOT
NULL
COMMENT
'绑定状态(1:已绑定;2:未绑定)'
,
`h5_url`
varchar
(
512
)
COMMENT
'H5链接地址(检测报告预览链接)'
,
`h5_url`
varchar
(
512
)
COMMENT
'H5链接地址(检测报告预览链接)'
,
`create_by`
varchar
(
64
)
NOT
NULL
COMMENT
'创建人'
,
`create_by`
varchar
(
64
)
NOT
NULL
COMMENT
'创建人'
,
...
@@ -83,12 +83,10 @@ CREATE TABLE `inspection_report`
...
@@ -83,12 +83,10 @@ CREATE TABLE `inspection_report`
`delete_flag`
char
(
1
)
NOT
NULL
DEFAULT
'N'
COMMENT
'删除标识(D:已删除;N:未删除)'
,
`delete_flag`
char
(
1
)
NOT
NULL
DEFAULT
'N'
COMMENT
'删除标识(D:已删除;N:未删除)'
,
PRIMARY
KEY
(
`id`
),
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`uk_report_no`
(
`report_no`
)
USING
BTREE
,
UNIQUE
KEY
`uk_report_no`
(
`report_no`
)
USING
BTREE
,
-- 核心查询索引:补充delete_flag(必过滤字段),提升查询效率
KEY
`idx_wo_id_del`
(
`wo_id`
,
`delete_flag`
)
USING
BTREE
,
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_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_vehicle_id_del`
(
`vehicle_id`
,
`delete_flag`
)
USING
BTREE
,
-- 高频组合查询索引(若业务需按评分级别+绑定状态查询)
KEY
`idx_inspection_record_id_del`
(
`inspection_record_id`
,
`delete_flag`
)
USING
BTREE
KEY
`idx_score_level_bind_status_del`
(
`score_level`
,
`bind_status`
,
`delete_flag`
)
USING
BTREE
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'检测报告表'
;
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'检测报告表'
;
...
...
06_v1.2.0_20260407/配置/aus-inspector-test.yaml
View file @
d93aa1d
...
@@ -20,6 +20,7 @@ spring:
...
@@ -20,6 +20,7 @@ spring:
thread-name-prefix
:
inspector-test-
thread-name-prefix
:
inspector-test-
inspector
:
inspector
:
inspection-audit-url
:
http://localhost:6904/inspection-audit
inspection-audit-url
:
http://localhost:6904/inspection-audit
inspection-record-h5-url
:
http://192.168.1.125:5173/#/detection/record?id=%s
application
:
application
:
jwt
:
jwt
:
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment