Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
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 5414cd2a
authored
Mar 24, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:工单模板以及模板版本先写死第一个
1 parent
da1ad0e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
aus-config/src/main/resources/config/aus-inspector-dev.yaml
aus-config/src/main/resources/config/prod/aus-inspector-prod.yaml
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionWorkOrderService.java
aus-config/src/main/resources/config/aus-inspector-dev.yaml
View file @
5414cd2
...
...
@@ -17,7 +17,7 @@ spring:
shutdown
:
await-termination
:
true
await-termination-period
:
30s
thread-name-prefix
:
task
-
thread-name-prefix
:
inspector-dev
-
inspector
:
inspection-audit-url
:
http://localhost:6904/inspection-audit
...
...
aus-config/src/main/resources/config/prod/aus-inspector-prod.yaml
View file @
5414cd2
...
...
@@ -15,7 +15,7 @@ spring:
shutdown
:
await-termination
:
true
await-termination-period
:
30s
thread-name-prefix
:
task
-
thread-name-prefix
:
inspector
-
logging
:
location
:
/data/java_log/aus
application
:
...
...
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionWorkOrderService.java
View file @
5414cd2
...
...
@@ -55,6 +55,7 @@ public class InspectionWorkOrderService {
private
final
GscApiInvoker
gscApiInvoker
;
private
final
MessageSource
messageSource
;
private
final
InspectionNodeService
inspectionNodeService
;
private
final
InspectionTemplateRepository
inspectionTemplateRepository
;
/**
* 保存检测工单操作日志
...
...
@@ -114,9 +115,21 @@ public class InspectionWorkOrderService {
if
(
isDetecting
)
{
throw
new
BusinessCodeException
(
ErrorCodeEnum
.
VEHICLE_ALREADY_INSPECTED
);
}
InspectionTemplate
template
=
inspectionTemplateRepository
.
findByIdAndDeletedFlag
(
1L
,
DeleteFlag
.
NOT_DELETED
.
getCode
()).
orElseThrow
(()
->
new
BusinessCodeException
(
ErrorCodeEnum
.
DATA_NOT_EXISTS
,
1
,
"工单模板"
));
LocalDateTime
now
=
LocalDateTime
.
now
();
InspectionWorkOrder
wo
=
InspectionWorkOrder
.
builder
().
vehicle
(
vehicle
).
inspector
(
inspector
).
status
(
InspectionWorkOrderStatusEnum
.
DISPATCHED
.
getCode
()).
auditStatus
(
InspectionWorkOrderAuditStatusEnum
.
WAIT_AUDIT
.
getCode
()).
woId
(
generateWorkOrderId
()).
templateId
(
1L
).
templateVersion
(
"1.0"
).
inspectionAddress
(
addVO
.
getInspectionAddress
()).
remark
(
StrUtil
.
isBlank
(
addVO
.
getRemark
())
?
""
:
addVO
.
getRemark
()).
deleteFlag
(
DeleteFlag
.
NOT_DELETED
.
getCode
()).
woTime
(
now
).
build
();
InspectionWorkOrder
wo
=
InspectionWorkOrder
.
builder
()
.
vehicle
(
vehicle
)
.
inspector
(
inspector
)
.
status
(
InspectionWorkOrderStatusEnum
.
DISPATCHED
.
getCode
())
.
auditStatus
(
InspectionWorkOrderAuditStatusEnum
.
WAIT_AUDIT
.
getCode
())
.
woId
(
generateWorkOrderId
())
.
templateId
(
template
.
getId
())
.
templateVersion
(
template
.
getVersion
())
.
inspectionAddress
(
addVO
.
getInspectionAddress
())
.
remark
(
StrUtil
.
isBlank
(
addVO
.
getRemark
())
?
""
:
addVO
.
getRemark
())
.
deleteFlag
(
DeleteFlag
.
NOT_DELETED
.
getCode
())
.
woTime
(
now
)
.
build
();
wo
.
setInspectionTime
(
now
);
wo
.
setCreateTime
(
now
);
wo
.
setCreateBy
(
opName
);
...
...
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