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
feea7bf7
Commit
feea7bf7
authored
Apr 03, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
e6e0d0f1
cc947507
Pipeline
#143863
failed with stages
in 28 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+2
-2
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
feea7bf7
...
...
@@ -166,7 +166,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
criteria
.
andIsValidEqualTo
(
"1"
);
criteria
.
andUserIdEqualTo
(
userId
);
List
<
GridRegionUser
>
gridRegionUsers
=
gridRegionUserMapper
.
selectByExample
(
example
);
if
(!
CollectionUtils
.
isEmpty
(
gridRegionUsers
))
{
if
(!
CollectionUtils
.
isEmpty
(
gridRegionUsers
)
&&
!
SecurityUtils
.
getLoginUser
().
getUser
().
isAdmin
()
)
{
query
.
setWgCodes
(
gridRegionUsers
.
stream
().
map
(
GridRegionUser:
:
getWgId
).
collect
(
Collectors
.
toList
()));
}
IPage
<
HouseResourcePage
>
page
=
houseResourceMapper
.
selectPage
(
new
Page
<>(
query
.
getPageNum
(),
query
.
getPageSize
()),
query
);
...
...
@@ -328,7 +328,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
criteria
.
andIsValidEqualTo
(
"1"
);
criteria
.
andUserIdEqualTo
(
userId
);
List
<
GridRegionUser
>
gridRegionUsers
=
gridRegionUserMapper
.
selectByExample
(
example
);
if
(!
CollectionUtils
.
isEmpty
(
gridRegionUsers
))
{
if
(!
CollectionUtils
.
isEmpty
(
gridRegionUsers
)
&&
!
SecurityUtils
.
getLoginUser
().
getUser
().
isAdmin
()
)
{
List
<
String
>
twos
=
gridRegionUsers
.
stream
().
map
(
GridRegionUser:
:
getWgId
).
collect
(
Collectors
.
toList
());
for
(
String
two
:
twos
)
{
for
(
HouseResource
houseResource
:
list
)
{
...
...
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