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
bc55252b
Commit
bc55252b
authored
Apr 15, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
e352625f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletion
+12
-1
HouseResourcePageQuery.java
.../ruoyi/system/domain/house/vo/HouseResourcePageQuery.java
+2
-0
HouseResourceProfileGraph.java
...oyi/system/domain/house/vo/HouseResourceProfileGraph.java
+2
-1
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+5
-0
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+3
-0
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourcePageQuery.java
View file @
bc55252b
...
@@ -39,4 +39,6 @@ public class HouseResourcePageQuery extends PageDomain {
...
@@ -39,4 +39,6 @@ public class HouseResourcePageQuery extends PageDomain {
private
BigDecimal
yearSellMax
;
private
BigDecimal
yearSellMax
;
private
List
<
String
>
wgCodes
;
private
List
<
String
>
wgCodes
;
private
String
name
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourceProfileGraph.java
View file @
bc55252b
...
@@ -18,8 +18,9 @@ public class HouseResourceProfileGraph {
...
@@ -18,8 +18,9 @@ public class HouseResourceProfileGraph {
private
long
kzCount
;
private
long
kzCount
;
@Deprecated
private
BigDecimal
jzArea
;
private
BigDecimal
jzArea
;
private
BigDecimal
areaTotal
;
private
List
<
HouseResourcePage
>
houseResources
;
private
List
<
HouseResourcePage
>
houseResources
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
bc55252b
...
@@ -187,9 +187,14 @@ public class HouseResourceServiceImpl implements HouseResourceService {
...
@@ -187,9 +187,14 @@ public class HouseResourceServiceImpl implements HouseResourceService {
if
(
StringUtils
.
hasText
(
wgName
))
{
if
(
StringUtils
.
hasText
(
wgName
))
{
houseResourceProfileGraph
.
setWgName
(
wgName
);
houseResourceProfileGraph
.
setWgName
(
wgName
);
}
}
String
jzAreaByCode
=
gridRegionMapper
.
getJzAreaByCode
(
k
);
if
(
StringUtils
.
hasText
(
jzAreaByCode
))
{
houseResourceProfileGraph
.
setJzArea
(
new
BigDecimal
(
jzAreaByCode
));
}
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
.
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
));
houseResourceProfileGraph
.
setAreaTotal
(
v
.
stream
().
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
()));
resourceProfileGraphList
.
add
(
houseResourceProfileGraph
);
resourceProfileGraphList
.
add
(
houseResourceProfileGraph
);
...
...
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
bc55252b
...
@@ -152,6 +152,9 @@
...
@@ -152,6 +152,9 @@
<if
test=
"query.houseResourceType != null"
>
<if
test=
"query.houseResourceType != null"
>
and t1.house_resource_type = #{query.houseResourceType}
and t1.house_resource_type = #{query.houseResourceType}
</if>
</if>
<if
test=
"query.name != null and query.name != ''"
>
and t3.name like concat('%', #{query.name}, '%')
</if>
<if
test=
"query.yearSellMin != null and query.yearSellMin != '' and query.yearSellMax != null and query.yearSellMax != ''"
>
<if
test=
"query.yearSellMin != null and query.yearSellMin != '' and query.yearSellMax != null and query.yearSellMax != ''"
>
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>
...
...
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