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
fc2c1b76
Commit
fc2c1b76
authored
May 22, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
34ac25bf
Pipeline
#144705
failed with stages
in 28 minutes and 26 seconds
Changes
3
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
43 deletions
+57
-43
HouseResourcePage.java
...a/com/ruoyi/system/domain/house/vo/HouseResourcePage.java
+2
-0
HouseResourcePageQuery.java
.../ruoyi/system/domain/house/vo/HouseResourcePageQuery.java
+4
-0
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+51
-43
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourcePage.java
View file @
fc2c1b76
...
@@ -105,4 +105,6 @@ public class HouseResourcePage {
...
@@ -105,4 +105,6 @@ public class HouseResourcePage {
private
String
industryClassification
;
private
String
industryClassification
;
private
Boolean
gs
;
private
Boolean
gs
;
private
BigDecimal
dayPrice
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourcePageQuery.java
View file @
fc2c1b76
...
@@ -57,4 +57,8 @@ public class HouseResourcePageQuery extends PageDomain {
...
@@ -57,4 +57,8 @@ public class HouseResourcePageQuery extends PageDomain {
private
boolean
zyzyFlag
;
private
boolean
zyzyFlag
;
private
String
fourOrHouseNumber
;
private
String
fourOrHouseNumber
;
private
BigDecimal
dayPriceMin
;
private
BigDecimal
dayPriceMax
;
}
}
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
fc2c1b76
...
@@ -114,19 +114,25 @@
...
@@ -114,19 +114,25 @@
</foreach>
</foreach>
</insert>
</insert>
<select
id=
"selectPage"
resultType=
"com.ruoyi.system.domain.house.vo.HouseResourcePage"
>
<resultMap
id=
"pageResultMap"
type=
"com.ruoyi.system.domain.house.vo.HouseResourcePage"
>
<result
column=
"dayPrice"
property=
"dayPrice"
javaType=
"java.math.BigDecimal"
/>
<result
column=
"income"
property=
"income"
javaType=
"java.math.BigDecimal"
/>
</resultMap>
<select
id=
"selectPage"
resultMap=
"pageResultMap"
>
SELECT
SELECT
t2.wg_name AS wgName4,
t2.wg_name AS wgName4,
t1.*,
t1.*,
SUM(t4.year_sell) AS income,
SUM(t4.year_sell) AS income,
t3.nature,
t3.nature,
t3.industry_classification
t3.industry_classification,
ROUND(t1.unit_price * 10000 / 365 / t1.house_area, 1) AS dayPrice
FROM
FROM
house_resource t1
house_resource t1
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four
LEFT JOIN business_entity_info t3 ON t1.id = t3.house_resource_id
LEFT JOIN business_entity_info t3 ON t1.id = t3.house_resource_id
LEFT JOIN business_entity_sell t4 ON t4.business_entity_info_id = t3.id
LEFT JOIN business_entity_sell t4 ON t4.business_entity_info_id = t3.id
<where>
where t1.rental_unit = 5 and t1.unit_price is not null
<if
test=
"query.wgType != null"
>
<if
test=
"query.wgType != null"
>
and t1.type = #{query.wgType}
and t1.type = #{query.wgType}
</if>
</if>
...
@@ -166,8 +172,10 @@
...
@@ -166,8 +172,10 @@
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
</where>
GROUP BY t1.id
GROUP BY t1.id
<if
test=
"query.dayPriceMin != null and query.dayPriceMin != '' and query.dayPriceMax != null and query.dayPriceMax != ''"
>
having dayPrice
<![CDATA[ >= ]]>
#{query.dayPriceMin} and dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
</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