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 c8c3c00e
authored
Mar 24, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优加车拍检测需求改动内容提交
1 parent
dbc04809
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
225 additions
and
4 deletions
06_v1.2.0_20260407/sql/DDL/scrm组aus_ddl.sql
06_v1.2.0_20260407/配置/aus-inspector-prod.yaml
06_v1.2.0_20260407/配置/aus-inspector-test.yaml
06_v1.2.0_20260407/需求版本开发内容.md
06_v1.2.0_20260407/sql/DDL/scrm组aus_ddl.sql
0 → 100644
View file @
c8c3c00
###
章家宝
-----------------start-------------------
CREATE
TABLE
`inspection_work_order`
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
`vehicle_id`
int
(
11
)
NOT
NULL
COMMENT
'车辆ID'
,
`inspector_id`
bigint
NOT
NULL
COMMENT
'检测师ID'
,
`status`
tinyint
(
2
)
NOT
NULL
COMMENT
'工单状态(1:待检测;2:检测中;3:已完成;4:已取消)'
,
`audit_status`
tinyint
(
2
)
NOT
NULL
COMMENT
'审批状态(1:待审批;2:审批中;3:审批通过;4:审批驳回;)'
,
`wo_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'派单时间'
,
`wo_id`
varchar
(
50
)
NOT
NULL
COMMENT
'工单唯一ID'
,
`audit_content`
varchar
(
500
)
NULL
DEFAULT
NULL
COMMENT
'审批意见'
,
`cancel_type`
varchar
(
50
)
NULL
DEFAULT
''
COMMENT
'取消类型'
,
`cancel_content`
varchar
(
500
)
NULL
DEFAULT
NULL
COMMENT
'取消理由'
,
`audit_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'时间'
,
`template_id`
bigint
NOT
NULL
COMMENT
'模板ID'
,
`template_version`
varchar
(
50
)
NOT
NULL
COMMENT
'模板版本'
,
`inspection_time`
datetime
COMMENT
'检测时间'
,
`inspection_address`
varchar
(
255
)
NOT
NULL
COMMENT
'检测地址'
,
`inspection_completed_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'检测完成时间'
,
`score`
decimal
(
2
,
1
)
NULL
DEFAULT
NULL
COMMENT
'评分(保留1位小数)'
,
`remark`
text
NULL
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`
),
KEY
`idx_unique_work_order_id`
(
`wo_id`
)
USING
BTREE
,
KEY
`idx_inspector_id`
(
`inspector_id`
)
USING
BTREE
,
KEY
`idx_status`
(
`status`
)
USING
BTREE
,
KEY
`idx_vehicle_id`
(
`vehicle_id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'检测工单表'
;
CREATE
TABLE
`inspection_work_order_op_log`
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
`work_order_inner_id`
bigint
NOT
NULL
COMMENT
'关联检测工单主键ID(对应inspection_work_order.id)'
,
`wo_id`
varchar
(
50
)
NOT
NULL
COMMENT
'关联检测工单唯一ID(对应inspection_work_order.wo_id)'
,
`operator_id`
bigint
NOT
NULL
COMMENT
'操作人ID(如系统管理员、检测师)'
,
`operator_name`
varchar
(
64
)
NOT
NULL
COMMENT
'操作人姓名'
,
`plate_type`
tinyint
(
2
)
not
null
comment
'平台标识:0 检测师 1 后台'
,
`operation_type`
tinyint
(
2
)
NOT
NULL
COMMENT
'操作类型(1:创建工单;2:派单;3:开始检测;4:提交审核;5:审批通过;6:审批驳回;7:完成工单;8:取消工单;9:修改工单信息;10:重新派单)'
,
`original_status`
tinyint
(
2
)
NOT
NULL
COMMENT
'操作前工单状态(对应inspection_work_order.status)'
,
`target_status`
tinyint
(
2
)
NOT
NULL
COMMENT
'操作后工单状态(对应inspection_work_order.status)'
,
`operation_content`
varchar
(
512
)
NULL
DEFAULT
NULL
COMMENT
'操作内容描述(如:将工单派给检测师ID:1001,姓名:张三)'
,
`operation_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'操作时间'
,
`description`
text
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`
),
KEY
`idx_wo_id`
(
`wo_id`
)
USING
BTREE
,
KEY
`idx_work_order_inner_id`
(
`work_order_inner_id`
)
USING
BTREE
,
KEY
`idx_operator_id`
(
`operator_id`
)
USING
BTREE
,
KEY
`idx_operation_time`
(
`operation_time`
)
USING
BTREE
,
KEY
`idx_status_change`
(
`original_status`
,
`target_status`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'检测工单操作日志表'
;
CREATE
TABLE
`inspection_report`
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
`report_no`
varchar
(
50
)
NOT
NULL
COMMENT
'报告编号(唯一)'
,
`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)'
,
`bind_status`
tinyint
(
2
)
NOT
NULL
COMMENT
'绑定状态(1:已绑定;2:未绑定)'
,
`h5_url`
varchar
(
512
)
COMMENT
'H5链接地址(检测报告预览链接)'
,
`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_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
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'检测报告表'
;
CREATE
TABLE
`inspection_report_op_log`
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
`report_inner_id`
bigint
NOT
NULL
COMMENT
'关联检测报告主键ID(对应inspection_report.id)'
,
`report_no`
varchar
(
50
)
NOT
NULL
COMMENT
'关联检测报告编号(对应inspection_report.report_no)'
,
`operator_id`
bigint
NOT
NULL
COMMENT
'操作人ID(系统管理员/检测师/审核人等)'
,
`plate_type`
tinyint
(
2
)
not
null
comment
'平台标识:0 检测师 1 后台'
,
`operator_name`
varchar
(
64
)
NOT
NULL
COMMENT
'操作人姓名'
,
`operation_type`
tinyint
(
2
)
NOT
NULL
COMMENT
'操作类型(1:创建报告;2:修改车型名称;3:更新评分/评分级别;4:更新绑定状态;5:更新车辆状态;6:修改车牌号;7:更新H5链接;8:修改车源号;9:删除报告;10:其他信息修改)'
,
`original_data`
text
COMMENT
'变更前数据(JSON格式,如:{"score":"4.5","scoreLevel":"A","bindStatus":1})'
,
`target_data`
text
COMMENT
'变更后数据(JSON格式,与original_data对应)'
,
`operation_content`
varchar
(
512
)
COMMENT
'操作内容描述(如:将报告评分从4.5修改为4.0,评分级别从A改为B)'
,
`operation_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'操作时间'
,
`remark`
text
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_report_no`
(
`report_no`
)
USING
BTREE
,
KEY
`idx_report_inner_id`
(
`report_inner_id`
)
USING
BTREE
,
KEY
`idx_operator_id`
(
`operator_id`
)
USING
BTREE
,
KEY
`idx_operation_type`
(
`operation_type`
)
USING
BTREE
,
KEY
`idx_operation_time`
(
`operation_time`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'检测报告操作日志表'
;
###
章家宝
-----------------end---------------------
###
杨卫
-----------------start--------------------
###
杨卫
-----------------end----------------------
06_v1.2.0_20260407/配置/aus-inspector-prod.yaml
0 → 100644
View file @
c8c3c00
# 开发环境配置
server
:
port
:
6901
servlet
:
context-path
:
/app
spring
:
task
:
execution
:
pool
:
core-size
:
2
max-size
:
10
queue-capacity
:
100
keep-alive
:
60s
allow-core-thread-timeout
:
true
shutdown
:
await-termination
:
true
await-termination-period
:
30s
thread-name-prefix
:
inspector-
logging
:
location
:
/data/java_log/aus
application
:
jwt
:
expiration
:
2592000
06_v1.2.0_20260407/配置/aus-inspector-test.yaml
0 → 100644
View file @
c8c3c00
# 开发环境配置
server
:
port
:
6904
logging
:
level
:
root
:
info
location
:
/Users/gonglei/aus
spring
:
task
:
execution
:
pool
:
core-size
:
2
max-size
:
10
queue-capacity
:
100
keep-alive
:
60s
allow-core-thread-timeout
:
true
shutdown
:
await-termination
:
true
await-termination-period
:
30s
thread-name-prefix
:
inspector-test-
inspector
:
inspection-audit-url
:
http://localhost:6904/inspection-audit
application
:
jwt
:
expiration
:
2592000
06_v1.2.0_20260407/需求版本开发内容.md
View file @
c8c3c00
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
## 二、涉及应用列表版本应用信息
## 二、涉及应用列表版本应用信息
| SVN/Gitlab地址 | 分支标识(Gitlab必填) | 发版项目名称 | 分支创建人 | 分支合并人 | 代码检查人 | 检查情况 |
| SVN/Gitlab地址 | 分支标识(Gitlab必填) | 发版项目名称 | 分支创建人 | 分支合并人 | 代码检查人 | 检查情况 |
|
--------------|:--------------:|--------|-------|-------|-------|------
|
|
https://gitee.com/foutouren/aus.git | v1.3.0 | aus-admin | 章家宝 | | |
|
|
| | |
| | | |
|
https://gitee.com/foutouren/aus.git | v1.3.0 | aus-api | 章家宝
| | | |
|
| | |
| | | |
|
https://gitee.com/foutouren/aus.git | v1.3.0 | aus-inspector | 章家宝
| | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
...
@@ -34,8 +34,45 @@
...
@@ -34,8 +34,45 @@
#### 变更内容
#### 变更内容
aus-api
-
com.glsx.usedcar.web.api.inspect.InspectionReportController#getVehicleInspectScore 新接口 根据车辆ID查询检测评分/评级
aus-admin
-
com.glsx.usedcar.web.rest.inspect.InspectionReportController#update 编辑检测报告
-
com.glsx.usedcar.web.rest.inspect.InspectionReportController#pageList 分页查询检测报告
-
com.glsx.usedcar.web.rest.inspect.InspectionReportController#detail 获取检测报告详情
-
com.glsx.usedcar.web.rest.inspect.InspectionReportController#bind 检测报告绑定
-
com.glsx.usedcar.web.rest.inspect.InspectionReportController#unbind 检测报告解绑
-
com.glsx.usedcar.web.rest.inspect.InspectionReportController#export 检测报告导出
-
com.glsx.usedcar.web.rest.inspect.InspectionWorkOrderController#add 新增检测工单
-
com.glsx.usedcar.web.rest.inspect.InspectionWorkOrderController#update 编辑检测工单
-
com.glsx.usedcar.web.rest.inspect.InspectionWorkOrderController#cancel 取消检测工单
-
com.glsx.usedcar.web.rest.inspect.InspectionWorkOrderController#pageList 分页检测工单
-
com.glsx.usedcar.web.rest.inspect.InspectionWorkOrderController#detail 获取检测工单详情
-
com.glsx.usedcar.web.rest.inspect.InspectionWorkOrderController#audit 审批检测工单
-
com.glsx.usedcar.web.rest.inspect.InspectionWorkOrderController#export 检测工单导出
-
com.glsx.usedcar.web.rest.inspect.InspectionWorkOrderController#countByStatus 统计各状态工单数量
-
com.glsx.usedcar.web.rest.inspect.InspectorController#exportAccountPreference 检测师数据导出
-
com.glsx.usedcar.web.rest.inspect.InspectorController#summary 统计查询
aus-inspector
-
com.glsx.usedcar.controller.InspectionReportController#pageList 分页查询检测报告
-
com.glsx.usedcar.controller.AuthController#sendCode 发送登录验证码
-
com.glsx.usedcar.controller.AuthController#login 验证码登录
-
com.glsx.usedcar.controller.InspectionWorkOrderController#pageList 分页检测工单
-
com.glsx.usedcar.controller.InspectionWorkOrderController#getDetail 获取检测工单详情
#### 影响范围
#### 影响范围
优加车拍小程序:
-
车辆详情 - 获取报告信息
优加车拍后台:
车辆检测
-
检测工单(新增,查询,导出,审批,取消)
-
检测报告(查询,导出,编辑,绑定,解绑)
-
检测师 (查询,导出,编辑,新增,禁用)
检测师平台:
-
检测工单 (查询,详情)
-
检测报告
-
查询检测师详情
### 第二轮提测
### 第二轮提测
#### 变更内容2
#### 变更内容2
...
...
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