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
fd079ce9
Commit
fd079ce9
authored
Nov 03, 2026
by
wujipeng
Browse files
增加区域名
parent
594a2397
Changes
2
Show whitespace changes
Inline
Side-by-side
src/main/java/com/example/pipelinenetwork/pojo/vo/RoadVO.java
View file @
fd079ce9
...
...
@@ -86,4 +86,9 @@ public class RoadVO extends RoadEntity {
*/
private
String
fileName
;
/**
* 区域名
*/
private
String
regionName
;
}
\ No newline at end of file
src/main/java/com/example/pipelinenetwork/service/impl/RoadServiceImpl.java
View file @
fd079ce9
...
...
@@ -96,12 +96,15 @@ public class RoadServiceImpl extends ServiceImpl<RoadMapper, RoadEntity> impleme
Set
<
String
>
pipeType
=
new
HashSet
<>();
//文件名
String
fileName
=
""
;
//区域名
String
regionName
=
""
;
//列表
List
<
RoadVO
>
data
=
new
ArrayList
<>();
//获取relId
List
<
BasicEntity
>
list
=
basicService
.
list
(
new
LambdaQueryWrapper
<
BasicEntity
>().
eq
(
BasicEntity:
:
getRoadName
,
roadDTO
.
getRoadName
()));
if
(!
list
.
isEmpty
()){
fileName
=
list
.
get
(
0
).
getReportName
();
regionName
=
list
.
get
(
0
).
getRegion
();
}
List
<
String
>
relIds
=
new
ArrayList
<>();
for
(
BasicEntity
basicEntity
:
list
)
{
...
...
@@ -164,6 +167,7 @@ public class RoadServiceImpl extends ServiceImpl<RoadMapper, RoadEntity> impleme
result
.
setPipeDiameter
(
pipeDiameter
);
result
.
setPipeType
(
pipeType
);
result
.
setFileName
(
fileName
);
result
.
setRegionName
(
regionName
);
result
.
setData
(
data
);
return
Result
.
success
(
result
);
}
...
...
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