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
135542f2
Commit
135542f2
authored
Apr 02, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
cc695733
5f7f0202
Pipeline
#143842
failed with stages
in 7 minutes and 4 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
HouseResourceProfileGraph.java
...oyi/system/domain/house/vo/HouseResourceProfileGraph.java
+2
-0
PageBusinessEntityStatisticsDetail.java
...m/domain/house/vo/PageBusinessEntityStatisticsDetail.java
+12
-0
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+4
-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/HouseResourceProfileGraph.java
View file @
135542f2
...
@@ -16,6 +16,8 @@ public class HouseResourceProfileGraph {
...
@@ -16,6 +16,8 @@ public class HouseResourceProfileGraph {
private
BigDecimal
kzArea
;
private
BigDecimal
kzArea
;
private
long
kzCount
;
@Deprecated
@Deprecated
private
BigDecimal
jzArea
;
private
BigDecimal
jzArea
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/PageBusinessEntityStatisticsDetail.java
View file @
135542f2
...
@@ -16,4 +16,16 @@ public class PageBusinessEntityStatisticsDetail {
...
@@ -16,4 +16,16 @@ public class PageBusinessEntityStatisticsDetail {
private
long
scCount
;
private
long
scCount
;
private
long
totalCount
;
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 @
135542f2
...
@@ -172,6 +172,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
...
@@ -172,6 +172,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
houseResourceProfileGraph
.
setWgName
(
wgName
);
houseResourceProfileGraph
.
setWgName
(
wgName
);
}
}
houseResourceProfileGraph
.
setJyArea
(
v
.
stream
().
map
(
HouseResourcePage:
:
getHouseArea
).
filter
(
Objects:
:
nonNull
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
));
houseResourceProfileGraph
.
setJyArea
(
v
.
stream
().
map
(
HouseResourcePage:
:
getHouseArea
).
filter
(
Objects:
:
nonNull
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
));
houseResourceProfileGraph
.
setKzCount
(
v
.
stream
().
filter
(
x
->
x
.
getHouseResourceType
()
==
HouseEnums
.
HouseResourceTypeEnum
.
KZ
.
getCode
()).
count
());
houseResourceProfileGraph
.
setKzArea
(
v
.
stream
().
filter
(
x
->
x
.
getHouseResourceType
()
==
HouseEnums
.
HouseResourceTypeEnum
.
KZ
.
getCode
()).
map
(
HouseResourcePage:
:
getHouseArea
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
));
houseResourceProfileGraph
.
setKzArea
(
v
.
stream
().
filter
(
x
->
x
.
getHouseResourceType
()
==
HouseEnums
.
HouseResourceTypeEnum
.
KZ
.
getCode
()).
map
(
HouseResourcePage:
:
getHouseArea
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
));
List
<
HouseResourcePage
>
houseResourcePages
=
handleHouseList
(
v
);
List
<
HouseResourcePage
>
houseResourcePages
=
handleHouseList
(
v
);
houseResourceProfileGraph
.
setHouseResources
(
houseResourcePages
.
stream
().
sorted
(
Comparator
.
comparing
(
HouseResourcePage:
:
getHouseNumber
)).
collect
(
Collectors
.
toList
()));
houseResourceProfileGraph
.
setHouseResources
(
houseResourcePages
.
stream
().
sorted
(
Comparator
.
comparing
(
HouseResourcePage:
:
getHouseNumber
)).
collect
(
Collectors
.
toList
()));
...
@@ -317,6 +318,9 @@ public class HouseResourceServiceImpl implements HouseResourceService {
...
@@ -317,6 +318,9 @@ public class HouseResourceServiceImpl implements HouseResourceService {
pageBusinessEntityStatisticsDetail
.
setZhtCount
(
result
.
stream
().
filter
(
x
->
x
.
getType
()
==
6
).
count
());
pageBusinessEntityStatisticsDetail
.
setZhtCount
(
result
.
stream
().
filter
(
x
->
x
.
getType
()
==
6
).
count
());
pageBusinessEntityStatisticsDetail
.
setScCount
(
result
.
stream
().
filter
(
x
->
x
.
getType
()
==
7
).
count
());
pageBusinessEntityStatisticsDetail
.
setScCount
(
result
.
stream
().
filter
(
x
->
x
.
getType
()
==
7
).
count
());
pageBusinessEntityStatisticsDetail
.
setTotalCount
(
result
.
size
());
pageBusinessEntityStatisticsDetail
.
setTotalCount
(
result
.
size
());
Map
<
String
,
List
<
HouseResource
>>
collect
=
result
.
stream
().
collect
(
Collectors
.
groupingBy
(
HouseResource:
:
getThree
));
pageBusinessEntityStatisticsDetail
.
setSjTotalCount
(
collect
.
size
());
return
pageBusinessEntityStatisticsDetail
;
return
pageBusinessEntityStatisticsDetail
;
}
}
...
...
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
135542f2
...
@@ -156,9 +156,7 @@
...
@@ -156,9 +156,7 @@
and t4.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin} and t4.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
and t4.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin} and t4.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
</if>
</if>
</where>
</where>
<if
test=
"query.sortWay != null and query.sortWay != ''"
>
GROUP BY t1.id
order by t1.house_area ${query.sortWay}
</if>
</select>
</select>
<select
id=
"selectProfileGraph"
resultType=
"com.ruoyi.system.domain.house.vo.HouseResourcePage"
>
<select
id=
"selectProfileGraph"
resultType=
"com.ruoyi.system.domain.house.vo.HouseResourcePage"
>
SELECT
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