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
75a2d96a
Commit
75a2d96a
authored
Apr 02, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
232a8b8a
Pipeline
#143840
failed with stages
in 6 minutes and 35 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
PageBusinessEntityStatisticsDetail.java
...m/domain/house/vo/PageBusinessEntityStatisticsDetail.java
+12
-0
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+9
-0
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+1
-3
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/PageBusinessEntityStatisticsDetail.java
View file @
75a2d96a
...
...
@@ -16,4 +16,16 @@ public class PageBusinessEntityStatisticsDetail {
private
long
scCount
;
private
long
totalCount
;
private
long
sjLyCount
;
private
long
sjDlCount
;
private
long
sjJqCount
;
private
long
sjZhtCount
;
private
long
sjScCount
;
private
long
sjTotalCount
;
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
75a2d96a
...
...
@@ -317,6 +317,15 @@ public class HouseResourceServiceImpl implements HouseResourceService {
pageBusinessEntityStatisticsDetail
.
setZhtCount
(
result
.
stream
().
filter
(
x
->
x
.
getType
()
==
6
).
count
());
pageBusinessEntityStatisticsDetail
.
setScCount
(
result
.
stream
().
filter
(
x
->
x
.
getType
()
==
7
).
count
());
pageBusinessEntityStatisticsDetail
.
setTotalCount
(
result
.
size
());
Map
<
String
,
List
<
HouseResource
>>
collect
=
result
.
stream
().
collect
(
Collectors
.
groupingBy
(
HouseResource:
:
getThree
));
pageBusinessEntityStatisticsDetail
.
setSjTotalCount
(
collect
.
size
());
for
(
String
three
:
collect
.
keySet
())
{
System
.
out
.
println
(
"three = "
+
three
);
long
count
=
result
.
stream
().
filter
(
x
->
x
.
getThree
().
equals
(
three
)).
filter
(
x
->
x
.
getType
()
==
1
).
count
();
System
.
out
.
println
(
"count = "
+
count
);
}
return
pageBusinessEntityStatisticsDetail
;
}
...
...
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
75a2d96a
...
...
@@ -156,9 +156,7 @@
and t4.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin} and t4.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
</if>
</where>
<if
test=
"query.sortWay != null and query.sortWay != ''"
>
order by t1.house_area ${query.sortWay}
</if>
GROUP BY t1.id
</select>
<select
id=
"selectProfileGraph"
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