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
c2a1038c
Commit
c2a1038c
authored
Mar 24, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
b8dbfa76
Pipeline
#143550
failed with stages
in 1 second
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+15
-8
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
c2a1038c
...
@@ -290,19 +290,26 @@ public class HouseResourceServiceImpl implements HouseResourceService {
...
@@ -290,19 +290,26 @@ public class HouseResourceServiceImpl implements HouseResourceService {
if
(
CollectionUtils
.
isEmpty
(
list
))
{
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
new
PageBusinessEntityStatisticsDetail
();
return
new
PageBusinessEntityStatisticsDetail
();
}
}
List
<
HouseResource
>
result
=
new
ArrayList
<>();
if
(!
CollectionUtils
.
isEmpty
(
query
.
getTwos
()))
{
if
(!
CollectionUtils
.
isEmpty
(
query
.
getTwos
()))
{
list
=
list
.
stream
().
filter
(
x
->
query
.
getTwos
().
contains
(
x
.
getTwo
())).
collect
(
Collectors
.
toList
());
for
(
String
two
:
query
.
getTwos
())
{
for
(
HouseResource
houseResource
:
list
)
{
if
(
two
.
equals
(
houseResource
.
getTwo
()))
{
result
.
add
(
houseResource
);
}
}
}
}
}
if
(
CollectionUtils
.
isEmpty
(
lis
t
))
{
if
(
CollectionUtils
.
isEmpty
(
resul
t
))
{
return
new
PageBusinessEntityStatisticsDetail
();
return
new
PageBusinessEntityStatisticsDetail
();
}
}
PageBusinessEntityStatisticsDetail
pageBusinessEntityStatisticsDetail
=
new
PageBusinessEntityStatisticsDetail
();
PageBusinessEntityStatisticsDetail
pageBusinessEntityStatisticsDetail
=
new
PageBusinessEntityStatisticsDetail
();
pageBusinessEntityStatisticsDetail
.
setLyCount
(
lis
t
.
stream
().
filter
(
x
->
x
.
getType
()
==
1
).
count
());
pageBusinessEntityStatisticsDetail
.
setLyCount
(
resul
t
.
stream
().
filter
(
x
->
x
.
getType
()
==
1
).
count
());
pageBusinessEntityStatisticsDetail
.
setDlCount
(
lis
t
.
stream
().
filter
(
x
->
x
.
getType
()
==
4
).
count
());
pageBusinessEntityStatisticsDetail
.
setDlCount
(
resul
t
.
stream
().
filter
(
x
->
x
.
getType
()
==
4
).
count
());
pageBusinessEntityStatisticsDetail
.
setJqCount
(
lis
t
.
stream
().
filter
(
x
->
x
.
getType
()
==
5
).
count
());
pageBusinessEntityStatisticsDetail
.
setJqCount
(
resul
t
.
stream
().
filter
(
x
->
x
.
getType
()
==
5
).
count
());
pageBusinessEntityStatisticsDetail
.
setZhtCount
(
lis
t
.
stream
().
filter
(
x
->
x
.
getType
()
==
6
).
count
());
pageBusinessEntityStatisticsDetail
.
setZhtCount
(
resul
t
.
stream
().
filter
(
x
->
x
.
getType
()
==
6
).
count
());
pageBusinessEntityStatisticsDetail
.
setScCount
(
lis
t
.
stream
().
filter
(
x
->
x
.
getType
()
==
7
).
count
());
pageBusinessEntityStatisticsDetail
.
setScCount
(
resul
t
.
stream
().
filter
(
x
->
x
.
getType
()
==
7
).
count
());
pageBusinessEntityStatisticsDetail
.
setTotalCount
(
lis
t
.
size
());
pageBusinessEntityStatisticsDetail
.
setTotalCount
(
resul
t
.
size
());
return
pageBusinessEntityStatisticsDetail
;
return
pageBusinessEntityStatisticsDetail
;
}
}
...
...
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