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 379396b6
authored
Mar 18, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:根据产品的要求,检测开始时间为创建工单的时间,检测结束时间为审批通过的时间
1 parent
21c45e8e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionWorkOrderService.java
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionWorkOrderService.java
View file @
379396b
...
@@ -108,6 +108,7 @@ public class InspectionWorkOrderService {
...
@@ -108,6 +108,7 @@ public class InspectionWorkOrderService {
LocalDateTime
now
=
LocalDateTime
.
now
();
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
(
1L
).
templateVersion
(
"1.0"
).
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
.
setCreateTime
(
now
);
wo
.
setCreateBy
(
opName
);
wo
.
setCreateBy
(
opName
);
wo
.
setUpdateBy
(
opName
);
wo
.
setUpdateBy
(
opName
);
...
@@ -383,13 +384,13 @@ public class InspectionWorkOrderService {
...
@@ -383,13 +384,13 @@ public class InspectionWorkOrderService {
Integer
targetAuditStatus
;
Integer
targetAuditStatus
;
String
operationContent
;
String
operationContent
;
String
description
;
String
description
;
// 4. 处理审批结果
// 4. 处理审批结果
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
InspectionWorkOrderOperationTypeEnum
auditOperationType
;
InspectionWorkOrderOperationTypeEnum
auditOperationType
;
if
(
auditVO
.
getAuditResult
()
==
1
)
{
if
(
auditVO
.
getAuditResult
()
==
1
)
{
// 4.1 同意审批:更新审批状态为通过,生成检测报告
// 4.1 同意审批:更新审批状态为通过,生成检测报告
targetAuditStatus
=
InspectionWorkOrderAuditStatusEnum
.
PASS
.
getCode
();
targetAuditStatus
=
InspectionWorkOrderAuditStatusEnum
.
PASS
.
getCode
();
workOrder
.
setInspectionCompletedTime
(
now
);
workOrder
.
setAuditStatus
(
targetAuditStatus
);
workOrder
.
setAuditStatus
(
targetAuditStatus
);
workOrder
.
setAuditContent
(
auditVO
.
getAuditOpinion
());
workOrder
.
setAuditContent
(
auditVO
.
getAuditOpinion
());
workOrder
.
setAuditTime
(
now
);
workOrder
.
setAuditTime
(
now
);
...
@@ -480,7 +481,7 @@ public class InspectionWorkOrderService {
...
@@ -480,7 +481,7 @@ public class InspectionWorkOrderService {
// 4. 修改工单状态+开始检测时间
// 4. 修改工单状态+开始检测时间
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
workOrder
.
setStatus
(
targetStatus
);
workOrder
.
setStatus
(
targetStatus
);
workOrder
.
setInspectionTime
(
now
);
//
workOrder.setInspectionTime(now);
workOrder
.
setUpdateBy
(
opName
);
workOrder
.
setUpdateBy
(
opName
);
workOrder
.
setUpdateTime
(
now
);
workOrder
.
setUpdateTime
(
now
);
inspectionWorkOrderRepository
.
save
(
workOrder
);
inspectionWorkOrderRepository
.
save
(
workOrder
);
...
@@ -537,7 +538,7 @@ public class InspectionWorkOrderService {
...
@@ -537,7 +538,7 @@ public class InspectionWorkOrderService {
// 4. 修改工单状态+结束检测时间
// 4. 修改工单状态+结束检测时间
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
workOrder
.
setStatus
(
targetStatus
);
workOrder
.
setStatus
(
targetStatus
);
workOrder
.
setInspectionCompletedTime
(
now
);
//
workOrder.setInspectionCompletedTime(now);
workOrder
.
setUpdateBy
(
opName
);
workOrder
.
setUpdateBy
(
opName
);
workOrder
.
setUpdateTime
(
now
);
workOrder
.
setUpdateTime
(
now
);
inspectionWorkOrderRepository
.
save
(
workOrder
);
inspectionWorkOrderRepository
.
save
(
workOrder
);
...
...
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