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
8999fd07
Commit
8999fd07
authored
Apr 23, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-lx' into dev
parents
05309fd3
45f12ae8
Pipeline
#144299
failed with stages
in 7 minutes and 59 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
HouseResourcePageQuery.java
.../ruoyi/system/domain/house/vo/HouseResourcePageQuery.java
+2
-0
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+7
-8
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourcePageQuery.java
View file @
8999fd07
...
...
@@ -55,4 +55,6 @@ public class HouseResourcePageQuery extends PageDomain {
private
boolean
gkFlag
;
private
boolean
zyzyFlag
;
private
String
fourOrHouseNumber
;
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
8999fd07
...
...
@@ -262,18 +262,17 @@ public class HouseResourceServiceImpl implements HouseResourceService {
BeanUtils
.
copyProperties
(
houseResource
,
houseResourcePage
);
pageList
.
add
(
houseResourcePage
);
}
pageList
.
forEach
(
x
->
x
.
setIncome
(
businessEntityInfoMapper
.
selectYearSellByHouseResourceId
(
x
.
getId
())));
if
(
Objects
.
nonNull
(
query
.
getYearSellMin
()))
{
pageList
=
pageList
.
stream
().
filter
(
x
->
x
.
getIncome
().
compareTo
(
query
.
getYearSellMin
())
>=
0
).
collect
(
Collectors
.
toList
());
if
(
StringUtils
.
hasText
(
query
.
getFourOrHouseNumber
()))
{
pageList
=
pageList
.
stream
().
filter
(
x
->
x
.
getHouseNumber
().
contains
(
query
.
getFourOrHouseNumber
())
||
x
.
getFour
().
contains
(
query
.
getFourOrHouseNumber
())).
collect
(
Collectors
.
toList
());
}
if
(
Objects
.
nonNull
(
query
.
getYearSellMax
()))
{
pageList
=
pageList
.
stream
().
filter
(
x
->
x
.
getIncome
().
compareTo
(
query
.
getYearSellMax
())
<=
0
).
collect
(
Collectors
.
toList
());
if
(!
CollectionUtils
.
isEmpty
(
pageList
))
{
houseResourceProfileGraph
.
setHouseResources
(
handleHouseList
(
pageList
));
result
.
add
(
houseResourceProfileGraph
);
result
=
result
.
stream
().
sorted
(
Comparator
.
comparing
(
HouseResourceProfileGraph:
:
getId
)).
collect
(
Collectors
.
toList
());
}
houseResourceProfileGraph
.
setHouseResources
(
handleHouseList
(
pageList
));
result
.
add
(
houseResourceProfileGraph
);
}
}
return
result
.
stream
().
sorted
(
Comparator
.
comparing
(
HouseResourceProfileGraph:
:
getId
)).
collect
(
Collectors
.
toList
())
;
return
result
;
}
return
Collections
.
emptyList
();
}
...
...
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