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
030b4fa3
Commit
030b4fa3
authored
Mar 20, 2025
by
luben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-lb' into 'dev'
Dev lb See merge request
!163
parents
6ee13b7b
1c49ee0d
Pipeline
#143463
passed with stages
in 5 minutes and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
RegionController.java
.../java/com/ruoyi/web/controller/grid/RegionController.java
+14
-5
GridRegionFacadeService.java
...om/ruoyi/system/service/grid/GridRegionFacadeService.java
+8
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/grid/RegionController.java
View file @
030b4fa3
...
@@ -69,23 +69,32 @@ public class RegionController extends BaseController {
...
@@ -69,23 +69,32 @@ public class RegionController extends BaseController {
@RequestParam
(
"pageSize"
)
Integer
pageSize
)
{
@RequestParam
(
"pageSize"
)
Integer
pageSize
)
{
try
{
try
{
AjaxResult
result
=
new
AjaxResult
();
AjaxResult
result
=
new
AjaxResult
();
SysUser
user
=
SecurityUtils
.
getLoginUser
().
getUser
();
//
SysUser user = SecurityUtils.getLoginUser().getUser();
//网格
//网格
GridRegionUserExample
example
=
new
GridRegionUserExample
();
GridRegionUserExample
example
=
new
GridRegionUserExample
();
GridRegionUserExample
.
Criteria
criteria
=
example
.
createCriteria
();
GridRegionUserExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andUserIdEqualTo
(
user
.
getUserId
());
//
criteria.andUserIdEqualTo(user.getUserId());
//
criteria.andUserIdEqualTo("1");
criteria
.
andUserIdEqualTo
(
"1"
);
criteria
.
andIsValidEqualTo
(
"1"
);
criteria
.
andIsValidEqualTo
(
"1"
);
List
<
GridRegionUser
>
relationship
=
gridRegionUserService
.
selectByExample
(
example
);
List
<
GridRegionUser
>
relationship
=
gridRegionUserService
.
selectByExample
(
example
);
String
region
=
relationship
.
stream
().
map
(
GridRegionUser:
:
getWgId
).
collect
(
Collectors
.
joining
(
","
));
String
region
=
relationship
.
stream
().
map
(
GridRegionUser:
:
getWgId
).
collect
(
Collectors
.
joining
(
","
));
List
<
String
>
regions
=
Arrays
.
asList
(
region
.
split
(
","
));
List
<
String
>
regions
=
Arrays
.
asList
(
region
.
split
(
","
));
List
<
String
>
regionList
=
new
ArrayList
<>();
List
<
String
>
regionList
=
new
ArrayList
<>();
if
(!
regions
.
get
(
0
).
equals
(
"320282001"
)){
// if(!regions.get(0).equals("320282001")){
// regionList.add("320282001");
// }
// regionList.addAll(regions);
//3.20权限bug
if
(
regions
.
get
(
0
).
equals
(
"320282001"
)){
regionList
.
add
(
"320282001"
);
regionList
.
add
(
"320282001"
);
}
else
{
regionList
.
addAll
(
regions
);
}
}
regionList
.
addAll
(
regions
);
//
if
(
wgType
.
equals
(
"0"
)){
if
(
wgType
.
equals
(
"0"
)){
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/grid/GridRegionFacadeService.java
View file @
030b4fa3
...
@@ -285,6 +285,14 @@ public class GridRegionFacadeService {
...
@@ -285,6 +285,14 @@ public class GridRegionFacadeService {
}
}
}
}
//3.20权限bug
if
(
regions
!=
null
&&
!
regions
.
isEmpty
())
{
for
(
String
regionId
:
regions
)
{
criteria
.
andWgCodeLike
(
regionId
+
"%"
);
}
}
//
int
count
=
gridRegionService
.
countByExample
(
example
);
int
count
=
gridRegionService
.
countByExample
(
example
);
if
(
count
<=
0
)
{
if
(
count
<=
0
)
{
result
.
buildSuccess
(
"success"
,
appPageModel
);
result
.
buildSuccess
(
"success"
,
appPageModel
);
...
...
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