Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
pipeline-network
Commits
5c48a862
Commit
5c48a862
authored
Jul 23, 2026
by
wujipeng
Browse files
各路段检测修复汇总-优化
parent
cfb7cf6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/example/pipelinenetwork/service/impl/RoadServiceImpl.java
View file @
5c48a862
...
@@ -132,8 +132,9 @@ public class RoadServiceImpl extends ServiceImpl<RoadMapper, RoadEntity> impleme
...
@@ -132,8 +132,9 @@ public class RoadServiceImpl extends ServiceImpl<RoadMapper, RoadEntity> impleme
Map
<
String
,
Integer
>
result
=
new
HashMap
<>();
Map
<
String
,
Integer
>
result
=
new
HashMap
<>();
//获取基础信息
//获取基础信息
List
<
BasicEntity
>
basicList
=
basicService
.
list
();
List
<
BasicEntity
>
basicList
=
basicService
.
list
();
Map
<
String
,
String
>
basicMap
=
new
HashMap
<>();
for
(
BasicEntity
basicEntity
:
basicList
)
{
for
(
BasicEntity
basicEntity
:
basicList
)
{
result
.
put
(
basicEntity
.
getRoadName
()
,
0
);
basicMap
.
put
(
basicEntity
.
getRelId
(),
basicEntity
.
getRoadName
());
}
}
if
(
"检测"
.
equals
(
type
))
{
if
(
"检测"
.
equals
(
type
))
{
List
<
DefectEntity
>
defectList
=
defectService
.
list
();
List
<
DefectEntity
>
defectList
=
defectService
.
list
();
...
@@ -145,10 +146,12 @@ public class RoadServiceImpl extends ServiceImpl<RoadMapper, RoadEntity> impleme
...
@@ -145,10 +146,12 @@ public class RoadServiceImpl extends ServiceImpl<RoadMapper, RoadEntity> impleme
defectMap
.
put
(
defectEntity
.
getRelId
(),
defectEntity
.
getNum
());
defectMap
.
put
(
defectEntity
.
getRelId
(),
defectEntity
.
getNum
());
}
}
}
}
result
.
forEach
((
key
,
value
)
->
{
basicMap
.
forEach
((
key
,
value
)
->
{
if
(
defectMap
.
containsKey
(
key
)){
if
(
defectMap
.
containsKey
(
key
)){
Integer
i
=
defectMap
.
get
(
key
);
Integer
i
=
defectMap
.
get
(
key
);
result
.
put
(
key
,
i
);
result
.
put
(
value
,
i
);
}
else
{
result
.
put
(
value
,
0
);
}
}
});
});
}
else
if
(
"修复"
.
equals
(
type
))
{
}
else
if
(
"修复"
.
equals
(
type
))
{
...
...
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