Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
9e8f293a
Commit
9e8f293a
authored
Sep 07, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面访问路径分析接口修改,避免前端渲染出现环的问题
parent
e30d35ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
portal-manager/src/main/java/com/mortals/xhx/module/page/service/impl/PageRouteServiceImpl.java
...ls/xhx/module/page/service/impl/PageRouteServiceImpl.java
+9
-1
portal-manager/src/main/java/com/mortals/xhx/module/page/web/BuryPointController.java
.../com/mortals/xhx/module/page/web/BuryPointController.java
+1
-3
No files found.
portal-manager/src/main/java/com/mortals/xhx/module/page/service/impl/PageRouteServiceImpl.java
View file @
9e8f293a
...
...
@@ -75,7 +75,15 @@ public class PageRouteServiceImpl extends AbstractCRUDServiceImpl<PageRouteDao,
}
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
List
<
PageWayCensusVo
>
pageWayCensusVos
=
dao
.
getPageWayCensus
(
pdu
);
result
.
put
(
"links"
,
pageWayCensusVos
);
List
<
PageWayCensusVo
>
list
=
new
ArrayList
<>();
Map
<
String
,
String
>
source
=
new
HashMap
<>();
for
(
PageWayCensusVo
item:
pageWayCensusVos
){
source
.
put
(
item
.
getSource
(),
item
.
getSourceName
());
if
(!
source
.
containsKey
(
item
.
getTarget
())){
list
.
add
(
item
);
}
}
result
.
put
(
"links"
,
list
);
List
<
Map
<
String
,
Object
>>
pageCodes
=
dao
.
getPageWayCode
(
pdu
);
result
.
put
(
"data"
,
pageCodes
);
return
result
;
...
...
portal-manager/src/main/java/com/mortals/xhx/module/page/web/BuryPointController.java
View file @
9e8f293a
...
...
@@ -77,11 +77,9 @@ public class BuryPointController extends BaseJsonBodyController {
if
(
CollectionUtils
.
isNotEmpty
(
pdu
.
getDepthArr
())){
List
<
PageRouteEntity
>
list
=
new
ArrayList
<>();
Map
<
String
,
String
>
source
=
new
HashMap
<>();
Map
<
String
,
String
>
target
=
new
HashMap
<>();
for
(
PageRouteEntity
item:
pdu
.
getDepthArr
()){
source
.
put
(
item
.
getSourceCode
(),
item
.
getSourceName
());
target
.
put
(
item
.
getTargetCode
(),
item
.
getTargetName
());
if
(!
source
.
containsKey
(
item
.
getTargetCode
())
&&
!
target
.
containsKey
(
item
.
getSourceCode
())){
if
(!
source
.
containsKey
(
item
.
getTargetCode
())){
list
.
add
(
item
);
}
}
...
...
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