Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
2c601ae4
Commit
2c601ae4
authored
Aug 22, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(amos-boot-module-jg): 修复安全问题追溯生成逻辑- 修复维保和检验超期设备状态更新逻辑
-优化未超期设备的处理流程,避免不必要地更新操作
parent
d3106873
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
SafetyProblemTracingGenServiceImpl.java
.../biz/service/impl/SafetyProblemTracingGenServiceImpl.java
+10
-4
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/SafetyProblemTracingGenServiceImpl.java
View file @
2c601ae4
...
@@ -145,14 +145,14 @@ public class SafetyProblemTracingGenServiceImpl{
...
@@ -145,14 +145,14 @@ public class SafetyProblemTracingGenServiceImpl{
correctData
.
addAll
(
inspectionSet
);
correctData
.
addAll
(
inspectionSet
);
}
else
if
(!
maintenanceSet
.
isEmpty
())
{
}
else
if
(!
maintenanceSet
.
isEmpty
())
{
// 再次查询维保备案这些数据有没有检验超期的问题
// 再次查询维保备案这些数据有没有检验超期的问题
maintenanceSet
.
removeAll
(
realOutOfInspectRecord
);
// 没有则可以愉快地更新设备状态为正常
// 没有则可以愉快地更新设备状态为正常
maintenanceSet
.
retainAll
(
realOutOfInspectRecord
);
correctData
.
addAll
(
maintenanceSet
);
// 再次查询检验这些数据有没有维保超期问题
// 再次查询检验这些数据有没有维保超期问题
// 没有则可以愉快地更新设备状态为正常
inspectionSet
.
retainAll
(
realOutOfMaintenanceRecord
);
inspectionSet
.
retainAll
(
realOutOfMaintenanceRecord
);
// 没有则可以愉快地更新设备状态为正常
correctData
.
addAll
(
maintenanceSet
);
correctData
.
addAll
(
inspectionSet
);
correctData
.
addAll
(
inspectionSet
);
}
}
idxBizJgOtherInfoService
.
lambdaUpdate
().
set
(
IdxBizJgOtherInfo:
:
getStatus
,
null
)
idxBizJgOtherInfoService
.
lambdaUpdate
().
set
(
IdxBizJgOtherInfo:
:
getStatus
,
null
)
.
in
(
IdxBizJgOtherInfo:
:
getRecord
,
correctData
).
update
();
.
in
(
IdxBizJgOtherInfo:
:
getRecord
,
correctData
).
update
();
...
@@ -182,6 +182,9 @@ public class SafetyProblemTracingGenServiceImpl{
...
@@ -182,6 +182,9 @@ public class SafetyProblemTracingGenServiceImpl{
List
<
String
>
outOfMaintenanceEquipIds
=
problemList
.
stream
().
map
(
SafetyProblemTracing:
:
getSourceId
).
collect
(
Collectors
.
toList
());
List
<
String
>
outOfMaintenanceEquipIds
=
problemList
.
stream
().
map
(
SafetyProblemTracing:
:
getSourceId
).
collect
(
Collectors
.
toList
());
// 未超期但错误生成的维保超期设备
// 未超期但错误生成的维保超期设备
outOfMaintenanceEquipIds
.
removeIf
(
realOutOfMaintenanceRecord:
:
contains
);
outOfMaintenanceEquipIds
.
removeIf
(
realOutOfMaintenanceRecord:
:
contains
);
if
(
ValidationUtil
.
isEmpty
(
outOfMaintenanceEquipIds
))
{
return
Lists
.
newArrayList
();
}
safetyProblemTracingService
.
lambdaUpdate
()
safetyProblemTracingService
.
lambdaUpdate
()
.
set
(
SafetyProblemTracing:
:
getProblemStatusCode
,
SafetyProblemStatusEnum
.
HANDLED
.
getCode
())
.
set
(
SafetyProblemTracing:
:
getProblemStatusCode
,
SafetyProblemStatusEnum
.
HANDLED
.
getCode
())
.
set
(
SafetyProblemTracing:
:
getProblemStatus
,
SafetyProblemStatusEnum
.
HANDLED
.
getName
())
.
set
(
SafetyProblemTracing:
:
getProblemStatus
,
SafetyProblemStatusEnum
.
HANDLED
.
getName
())
...
@@ -210,6 +213,9 @@ public class SafetyProblemTracingGenServiceImpl{
...
@@ -210,6 +213,9 @@ public class SafetyProblemTracingGenServiceImpl{
List
<
String
>
outOfInspectionEquipIds
=
problemList
.
stream
().
map
(
SafetyProblemTracing:
:
getSourceId
).
collect
(
Collectors
.
toList
());
List
<
String
>
outOfInspectionEquipIds
=
problemList
.
stream
().
map
(
SafetyProblemTracing:
:
getSourceId
).
collect
(
Collectors
.
toList
());
// 未超期但错误生成的检验超期设备
// 未超期但错误生成的检验超期设备
outOfInspectionEquipIds
.
removeIf
(
realOutOfInspectRecord:
:
contains
);
outOfInspectionEquipIds
.
removeIf
(
realOutOfInspectRecord:
:
contains
);
if
(
ValidationUtil
.
isEmpty
(
outOfInspectionEquipIds
))
{
return
Lists
.
newArrayList
();
}
safetyProblemTracingService
.
lambdaUpdate
()
safetyProblemTracingService
.
lambdaUpdate
()
.
set
(
SafetyProblemTracing:
:
getProblemStatusCode
,
SafetyProblemStatusEnum
.
HANDLED
.
getCode
())
.
set
(
SafetyProblemTracing:
:
getProblemStatusCode
,
SafetyProblemStatusEnum
.
HANDLED
.
getCode
())
.
set
(
SafetyProblemTracing:
:
getProblemStatus
,
SafetyProblemStatusEnum
.
HANDLED
.
getName
())
.
set
(
SafetyProblemTracing:
:
getProblemStatus
,
SafetyProblemStatusEnum
.
HANDLED
.
getName
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment