Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
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
31b2146a
You need to sign in or sign up before continuing.
Commit
31b2146a
authored
Aug 05, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
1001ea66
Pipeline
#145644
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+1
-4
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+7
-6
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
31b2146a
...
...
@@ -467,10 +467,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
CompletableFuture
<
BigDecimal
>
gsSsCountFuture
=
CompletableFuture
.
supplyAsync
(()
->
list
.
stream
().
filter
(
x
->
Objects
.
nonNull
(
x
.
getGs
())
&&
x
.
getGs
().
equals
(
Boolean
.
TRUE
)).
map
(
HouseResourcePage:
:
getTaxCount
).
filter
(
Objects:
:
nonNull
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
),
executor
);
CompletableFuture
<
BigDecimal
>
gsXsCountFuture
=
CompletableFuture
.
supplyAsync
(()
->
list
.
stream
().
filter
(
x
->
Objects
.
nonNull
(
x
.
getGs
())
&&
x
.
getGs
().
equals
(
Boolean
.
TRUE
)).
map
(
HouseResourcePage:
:
getIncome
).
filter
(
Objects:
:
nonNull
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
),
executor
);
List
<
String
>
houseResourceIds
=
list
.
stream
().
map
(
HouseResourcePage:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
HouseResourceBusinessEntityInfoMapping
>
houseResourceMappings
=
houseResourceBusinessEntityInfoMappingMapper
.
selectByHouseResourceIds
(
houseResourceIds
);
List
<
BusinessEntityInfo
>
businessEntityInfos
=
CollectionUtils
.
isEmpty
(
houseResourceMappings
)
?
Collections
.
emptyList
()
:
businessEntityInfoMapper
.
selectByIdList
(
houseResourceMappings
.
stream
().
map
(
HouseResourceBusinessEntityInfoMapping:
:
getBusinessEntityInfoId
).
collect
(
Collectors
.
toList
()));
List
<
BusinessEntityInfo
>
businessEntityInfos
=
businessEntityInfoMapper
.
selectByIdList
(
list
.
stream
().
map
(
HouseResourcePage:
:
getBusinessEntityInfoId
).
collect
(
Collectors
.
toList
()));
businessEntityStatisticsDetail
.
setZtCount
(
businessEntityInfos
.
size
());
List
<
String
>
industries
=
Arrays
.
asList
(
"工业"
,
"建筑业"
,
"批发"
,
"零售"
,
"住宿"
,
"餐饮"
,
"服务业"
,
"其他"
);
...
...
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
31b2146a
...
...
@@ -273,7 +273,7 @@
)
</if>
</where>
GROUP BY t1.id, t
3
.id
GROUP BY t1.id, t
4
.id
<trim
prefix=
"having"
prefixOverrides=
"and"
>
<if
test=
"query.dayPriceMin != null and query.dayPriceMin != ''"
>
and dayPrice
<![CDATA[ >= ]]>
#{query.dayPriceMin}
...
...
@@ -297,7 +297,8 @@
ROUND(IFNULL(t1.unit_price,0) * 10000 / 365 / t1.house_area, 1) AS dayPrice,
t4.name,
t5.year,
t4.gs
t4.gs,
t4.id AS businessEntityInfoId
FROM
house_resource t1
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four
...
...
@@ -440,7 +441,7 @@
)
</if>
</where>
GROUP BY t1.id, t
3
.id
GROUP BY t1.id, t
4
.id
<trim
prefix=
"having"
prefixOverrides=
"and"
>
<if
test=
"query.dayPriceMin != null and query.dayPriceMin != ''"
>
and dayPrice
<![CDATA[ >= ]]>
#{query.dayPriceMin}
...
...
@@ -605,7 +606,7 @@
)
</if>
</where>
GROUP BY t1.id, t
3
.id
GROUP BY t1.id, t
4
.id
<trim
prefix=
"having"
prefixOverrides=
"and"
>
<if
test=
"query.dayPriceMin != null and query.dayPriceMin != ''"
>
and dayPrice
<![CDATA[ >= ]]>
#{query.dayPriceMin}
...
...
@@ -760,7 +761,7 @@
</foreach>
</if>
</where>
GROUP BY t1.id, t
3
.id
GROUP BY t1.id, t
4
.id
<trim
prefix=
"having"
prefixOverrides=
"and"
>
<if
test=
"query.dayPriceMin != null and query.dayPriceMin != ''"
>
and dayPrice
<![CDATA[ >= ]]>
#{query.dayPriceMin}
...
...
@@ -784,7 +785,7 @@
LEFT JOIN house_resource_business_entity_info_mapping t3 ON t3.house_resource_id = t1.id
LEFT JOIN business_entity_info t4 ON t3.business_entity_info_id = t4.id
LEFT JOIN business_entity_sell t5 ON t5.business_entity_info_id = t4.id
GROUP BY t1.id, t
3
.id
GROUP BY t1.id, t
4
.id
</select>
<select
id=
"selectForContrast"
resultType=
"com.ruoyi.system.domain.house.vo.HouseResourcePage"
>
SELECT
...
...
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