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
a20733e8
Commit
a20733e8
authored
Jul 31, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
d2853968
Pipeline
#145560
canceled with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletion
+14
-1
BusinessEntityStatisticsDetail.java
...ystem/domain/house/vo/BusinessEntityStatisticsDetail.java
+6
-0
HouseResourcePage.java
...a/com/ruoyi/system/domain/house/vo/HouseResourcePage.java
+2
-0
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+5
-1
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+1
-0
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/BusinessEntityStatisticsDetail.java
View file @
a20733e8
...
...
@@ -45,6 +45,8 @@ public class BusinessEntityStatisticsDetail {
private
long
ztCount
;
private
long
gsCount
;
private
BigDecimal
gyCount
=
BigDecimal
.
ZERO
;
private
BigDecimal
jzyCount
=
BigDecimal
.
ZERO
;
...
...
@@ -62,4 +64,8 @@ public class BusinessEntityStatisticsDetail {
private
BigDecimal
qtjjfzCount
=
BigDecimal
.
ZERO
;
private
BigDecimal
jjzl
=
BigDecimal
.
ZERO
;
private
BigDecimal
xsCount
=
BigDecimal
.
ZERO
;
private
BigDecimal
ssCount
=
BigDecimal
.
ZERO
;
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourcePage.java
View file @
a20733e8
...
...
@@ -102,6 +102,8 @@ public class HouseResourcePage {
private
BigDecimal
income
;
private
BigDecimal
taxCount
;
private
String
nature
;
private
String
industryClassification
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
a20733e8
...
...
@@ -409,6 +409,10 @@ public class HouseResourceServiceImpl implements HouseResourceService {
businessEntityStatisticsDetail
.
setSbCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceType
()
==
3
).
count
());
businessEntityStatisticsDetail
.
setZyzyCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceType
()
==
4
).
count
());
businessEntityStatisticsDetail
.
setXsCount
(
list
.
stream
().
map
(
HouseResourcePage:
:
getIncome
).
filter
(
Objects:
:
nonNull
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
));
businessEntityStatisticsDetail
.
setSsCount
(
list
.
stream
().
map
(
HouseResourcePage:
:
getTaxCount
).
filter
(
Objects:
:
nonNull
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
));
businessEntityStatisticsDetail
.
setGsCount
(
list
.
stream
().
filter
(
x
->
x
.
getGs
().
equals
(
Boolean
.
TRUE
)).
count
());
List
<
String
>
houseResourceIds
=
list
.
stream
().
map
(
HouseResourcePage:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
HouseResourceBusinessEntityInfoMapping
>
houseResourceMappings
=
houseResourceBusinessEntityInfoMappingMapper
.
selectByHouseResourceIds
(
houseResourceIds
);
if
(
CollectionUtils
.
isEmpty
(
houseResourceMappings
))
{
...
...
@@ -543,7 +547,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
}
private
List
<
HouseResourcePage
>
handleHouseList
(
List
<
HouseResourcePage
>
list
,
boolean
houseNumberSortFlag
)
{
list
.
forEach
(
x
->
{
list
.
parallelStream
().
forEach
(
x
->
{
GridRegionExample
twoExample
=
new
GridRegionExample
();
twoExample
.
createCriteria
().
andWgTypeEqualTo
(
String
.
valueOf
(
x
.
getType
())).
andWgCodeEqualTo
(
x
.
getTwo
());
List
<
GridRegion
>
two
=
gridRegionMapper
.
selectByExample
(
twoExample
);
...
...
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
a20733e8
...
...
@@ -291,6 +291,7 @@
t2.wg_name AS wgName4,
t1.*,
SUM(t5.year_sell) AS income,
SUM(t5.year_tax) AS taxCount,
t4.nature,
t4.industry_classification,
ROUND(IFNULL(t1.unit_price,0) * 10000 / 365 / t1.house_area, 1) AS dayPrice,
...
...
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