Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
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
2468c44f
You need to sign in or sign up before continuing.
Commit
2468c44f
authored
Jul 31, 2025
by
luben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-lb' into 'dev'
feat See merge request
!232
parents
04b137f5
7a69babf
Pipeline
#145565
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
19 deletions
+30
-19
RegionController.java
.../java/com/ruoyi/web/controller/grid/RegionController.java
+30
-19
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/grid/RegionController.java
View file @
2468c44f
...
...
@@ -1046,34 +1046,45 @@ public class RegionController extends BaseController {
@ResponseBody
public
AjaxResult
getThreeByUser
(
@RequestParam
(
"wgType"
)
String
wgType
,
@RequestParam
(
value
=
"wgName"
,
required
=
false
)
String
wgName
,
@RequestParam
(
value
=
"wgCode"
,
required
=
false
)
String
wgCode
,
@RequestParam
(
"pageNum"
)
Integer
pageNum
,
@RequestParam
(
"pageSize"
)
Integer
pageSize
)
{
AjaxResult
result
=
new
AjaxResult
();
SysUser
user
=
SecurityUtils
.
getLoginUser
().
getUser
();
//网格
GridRegionUserExample
example
=
new
GridRegionUserExample
();
GridRegionUserExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andUserIdEqualTo
(
user
.
getUserId
());
criteria
.
andIsValidEqualTo
(
"1"
);
if
(
wgCode
==
null
){
SysUser
user
=
SecurityUtils
.
getLoginUser
().
getUser
();
//网格
GridRegionUserExample
example
=
new
GridRegionUserExample
();
GridRegionUserExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andUserIdEqualTo
(
user
.
getUserId
());
criteria
.
andIsValidEqualTo
(
"1"
);
List
<
GridRegionUser
>
relationship
=
gridRegionUserService
.
selectByExample
(
example
);
String
region
=
relationship
.
stream
().
map
(
GridRegionUser:
:
getWgId
).
collect
(
Collectors
.
joining
(
","
));
List
<
String
>
regions
=
Arrays
.
asList
(
region
.
split
(
","
));
List
<
String
>
regionList
=
new
ArrayList
<>();
List
<
GridRegionUser
>
relationship
=
gridRegionUserService
.
selectByExample
(
example
);
String
region
=
relationship
.
stream
().
map
(
GridRegionUser:
:
getWgId
).
collect
(
Collectors
.
joining
(
","
));
List
<
String
>
regions
=
Arrays
.
asList
(
region
.
split
(
","
));
List
<
String
>
regionList
=
new
ArrayList
<>();
List
<
GridRegion
>
gridRegions
=
new
ArrayList
<>();
PageHelper
.
startPage
(
pageNum
,
pageSize
);
//3.20权限bug
if
(
regions
.
get
(
0
).
equals
(
"320282001"
)){
List
<
GridRegion
>
gridRegions
=
new
ArrayList
<>();
PageHelper
.
startPage
(
pageNum
,
pageSize
);
//3.20权限bug
if
(
regions
.
get
(
0
).
equals
(
"320282001"
)){
// regionList.add("320282001");
gridRegions
=
gridRegionMapper
.
getAllLevelThree
(
null
,
wgType
,
wgName
);
gridRegions
=
gridRegionMapper
.
getAllLevelThree
(
null
,
wgType
,
wgName
);
}
else
{
regionList
.
addAll
(
regions
);
gridRegions
=
gridRegionMapper
.
getAllLevelThree
(
regionList
,
wgType
,
wgName
);
}
PageInfo
<
GridRegion
>
pageInfo
=
new
PageInfo
<>(
gridRegions
);
return
AjaxResult
.
success
(
pageInfo
);
}
else
{
List
<
String
>
regions
=
new
ArrayList
<>();
regions
.
add
(
wgCode
);
List
<
String
>
regionList
=
new
ArrayList
<>();
regionList
.
addAll
(
regions
);
gridRegions
=
gridRegionMapper
.
getAllLevelThree
(
regionList
,
wgType
,
wgName
);
List
<
GridRegion
>
gridRegions
=
new
ArrayList
<>();
gridRegions
=
gridRegionMapper
.
getAllLevelThree
(
regions
,
wgType
,
wgName
);
PageInfo
<
GridRegion
>
pageInfo
=
new
PageInfo
<>(
gridRegions
);
return
AjaxResult
.
success
(
pageInfo
);
}
PageInfo
<
GridRegion
>
pageInfo
=
new
PageInfo
<>(
gridRegions
);
return
AjaxResult
.
success
(
pageInfo
);
}
@RequestMapping
(
value
=
"/getAllTwoRegion"
,
method
=
RequestMethod
.
GET
)
...
...
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