Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yichengstreet-be
Project
Project
Details
Activity
Releases
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
yichengstreet
yichengstreet-be
Commits
a49a6cca
Commit
a49a6cca
authored
Aug 04, 2025
by
luben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-lb' into 'dev'
feat See merge request
!233
parents
0a904bf2
ef86929f
Pipeline
#145616
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
RegionController.java
.../java/com/ruoyi/web/controller/grid/RegionController.java
+6
-0
GridRegion.java
...rc/main/java/com/ruoyi/system/domain/grid/GridRegion.java
+15
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/grid/RegionController.java
View file @
a49a6cca
...
...
@@ -1073,6 +1073,9 @@ public class RegionController extends BaseController {
regionList
.
addAll
(
regions
);
gridRegions
=
gridRegionMapper
.
getAllLevelThree
(
regionList
,
wgType
,
wgName
);
}
for
(
GridRegion
gridRegion
:
gridRegions
){
gridRegion
.
setWgParentName
(
gridRegionMapper
.
getWgNameByCode
(
gridRegion
.
getWgParentId
()));
}
PageInfo
<
GridRegion
>
pageInfo
=
new
PageInfo
<>(
gridRegions
);
return
AjaxResult
.
success
(
pageInfo
);
}
else
{
...
...
@@ -1082,6 +1085,9 @@ public class RegionController extends BaseController {
regionList
.
addAll
(
regions
);
List
<
GridRegion
>
gridRegions
=
new
ArrayList
<>();
gridRegions
=
gridRegionMapper
.
getAllLevelThree
(
regions
,
wgType
,
wgName
);
for
(
GridRegion
gridRegion
:
gridRegions
){
gridRegion
.
setWgParentName
(
gridRegionMapper
.
getWgNameByCode
(
gridRegion
.
getWgParentId
()));
}
PageInfo
<
GridRegion
>
pageInfo
=
new
PageInfo
<>(
gridRegions
);
return
AjaxResult
.
success
(
pageInfo
);
}
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/grid/GridRegion.java
View file @
a49a6cca
...
...
@@ -34,6 +34,13 @@ public class GridRegion implements Serializable {
*/
private
String
wgParentId
;
/**
* 上级网格名字
*
* @mbg.generated
*/
private
String
wgParentName
;
/**
* 网格面积
*
...
...
@@ -320,6 +327,14 @@ public class GridRegion implements Serializable {
this
.
position
=
position
;
}
public
String
getWgParentName
()
{
return
wgParentName
;
}
public
void
setWgParentName
(
String
wgParentName
)
{
this
.
wgParentName
=
wgParentName
;
}
@Override
public
String
toString
()
{
return
"GridRegion{"
+
...
...
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