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
d5bdd1c5
Commit
d5bdd1c5
authored
Apr 15, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
1d7f4a41
Pipeline
#144124
failed with stages
in 30 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
BusinessEntityStatisticsDetail.java
...ystem/domain/house/vo/BusinessEntityStatisticsDetail.java
+2
-0
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+3
-2
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/BusinessEntityStatisticsDetail.java
View file @
d5bdd1c5
...
...
@@ -39,6 +39,8 @@ public class BusinessEntityStatisticsDetail {
private
long
gkCount
;
private
long
ztCount
;
private
BigDecimal
gyCount
=
BigDecimal
.
ZERO
;
private
BigDecimal
jzyCount
=
BigDecimal
.
ZERO
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
d5bdd1c5
...
...
@@ -257,8 +257,8 @@ public class HouseResourceServiceImpl implements HouseResourceService {
businessEntityStatisticsDetail
.
setSjScCount
(
list
.
stream
().
filter
(
x
->
x
.
getType
()
==
7
).
collect
(
Collectors
.
groupingBy
(
HouseResource:
:
getThree
)).
size
());
businessEntityStatisticsDetail
.
setZlCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceAttribute
()
==
0
).
count
());
businessEntityStatisticsDetail
.
setZyCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceAttribute
()
==
1
).
count
());
businessEntityStatisticsDetail
.
setQtCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceAttribute
()
==
2
).
count
());
businessEntityStatisticsDetail
.
setZyCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceAttribute
()
==
2
).
count
());
businessEntityStatisticsDetail
.
setQtCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceAttribute
()
==
1
).
count
());
businessEntityStatisticsDetail
.
setZaiyingCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceType
()
==
0
).
count
());
businessEntityStatisticsDetail
.
setXzCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceType
()
==
1
).
count
());
...
...
@@ -269,6 +269,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
if
(
CollectionUtils
.
isEmpty
(
businessEntityInfos
))
{
return
businessEntityStatisticsDetail
;
}
businessEntityStatisticsDetail
.
setZtCount
(
businessEntityInfos
.
size
());
List
<
String
>
gyIds
=
businessEntityInfos
.
stream
().
filter
(
x
->
StringUtils
.
hasText
(
x
.
getIndustryClassification
())
&&
x
.
getIndustryClassification
().
equals
(
"工业"
)).
map
(
BusinessEntityInfo:
:
getId
).
collect
(
Collectors
.
toList
());
if
(!
CollectionUtils
.
isEmpty
(
gyIds
))
{
...
...
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