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
dbb37824
Commit
dbb37824
authored
Jul 27, 2026
by
wujipeng
Browse files
优化
parent
38e3fcf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/example/pipelinenetwork/service/impl/RoadServiceImpl.java
View file @
dbb37824
...
@@ -115,9 +115,9 @@ public class RoadServiceImpl extends ServiceImpl<RoadMapper, RoadEntity> impleme
...
@@ -115,9 +115,9 @@ public class RoadServiceImpl extends ServiceImpl<RoadMapper, RoadEntity> impleme
List
<
DefectEntity
>
defectList
=
defectService
.
queryByRoadName
(
relIds
,
roadDTO
.
getLev
());
List
<
DefectEntity
>
defectList
=
defectService
.
queryByRoadName
(
relIds
,
roadDTO
.
getLev
());
for
(
DefectEntity
defectEntity
:
defectList
)
{
for
(
DefectEntity
defectEntity
:
defectList
)
{
if
(
"结构性"
.
equals
(
defectEntity
.
getType
()))
{
if
(
"结构性"
.
equals
(
defectEntity
.
getType
()))
{
structuralDefect
++
;
structuralDefect
+=
defectEntity
.
getNum
()
;
}
else
if
(
"功能性"
.
equals
(
defectEntity
.
getType
()))
{
}
else
if
(
"功能性"
.
equals
(
defectEntity
.
getType
()))
{
functionalDefect
++
;
functionalDefect
+=
defectEntity
.
getNum
()
;
}
}
if
(
StrUtil
.
isEmpty
(
roadDTO
.
getDefectType
())
||
roadDTO
.
getDefectType
().
equals
(
defectEntity
.
getType
()))
{
if
(
StrUtil
.
isEmpty
(
roadDTO
.
getDefectType
())
||
roadDTO
.
getDefectType
().
equals
(
defectEntity
.
getType
()))
{
RoadVO
roadVO
=
new
RoadVO
();
RoadVO
roadVO
=
new
RoadVO
();
...
@@ -132,9 +132,9 @@ public class RoadServiceImpl extends ServiceImpl<RoadMapper, RoadEntity> impleme
...
@@ -132,9 +132,9 @@ public class RoadServiceImpl extends ServiceImpl<RoadMapper, RoadEntity> impleme
List
<
RepairEntity
>
repairList
=
repairService
.
queryByRoadName
(
relIds
,
roadDTO
.
getLev
());
List
<
RepairEntity
>
repairList
=
repairService
.
queryByRoadName
(
relIds
,
roadDTO
.
getLev
());
for
(
RepairEntity
repairEntity
:
repairList
)
{
for
(
RepairEntity
repairEntity
:
repairList
)
{
if
(
"结构性"
.
equals
(
repairEntity
.
getType
()))
{
if
(
"结构性"
.
equals
(
repairEntity
.
getType
()))
{
structuralDefect
++
;
structuralDefect
+=
repairEntity
.
getNum
()
;
}
else
if
(
"功能性"
.
equals
(
repairEntity
.
getType
()))
{
}
else
if
(
"功能性"
.
equals
(
repairEntity
.
getType
()))
{
functionalDefect
++
;
functionalDefect
+=
repairEntity
.
getNum
()
;
}
}
if
(
StrUtil
.
isEmpty
(
roadDTO
.
getDefectType
())
||
roadDTO
.
getDefectType
().
equals
(
repairEntity
.
getType
()))
{
if
(
StrUtil
.
isEmpty
(
roadDTO
.
getDefectType
())
||
roadDTO
.
getDefectType
().
equals
(
repairEntity
.
getType
()))
{
RoadVO
roadVO
=
new
RoadVO
();
RoadVO
roadVO
=
new
RoadVO
();
...
...
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