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
57da11a6
Commit
57da11a6
authored
Mar 27, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
4e5a52e7
Pipeline
#143692
failed with stages
in 6 minutes and 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
HouseResourcePageQuery.java
.../ruoyi/system/domain/house/vo/HouseResourcePageQuery.java
+12
-0
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+14
-2
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourcePageQuery.java
View file @
57da11a6
...
...
@@ -5,6 +5,8 @@ import io.swagger.models.auth.In;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.math.BigDecimal
;
@EqualsAndHashCode
(
callSuper
=
true
)
@Data
public
class
HouseResourcePageQuery
extends
PageDomain
{
...
...
@@ -24,4 +26,14 @@ public class HouseResourcePageQuery extends PageDomain {
private
Integer
hireStatus
;
private
String
houseNumber
;
private
BigDecimal
houseAreaMin
;
private
BigDecimal
houseAreaMax
;
private
Integer
houseResourceType
;
private
BigDecimal
yearSellMin
;
private
BigDecimal
yearSellMax
;
}
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
57da11a6
...
...
@@ -117,10 +117,13 @@
<select
id=
"selectPage"
resultType=
"com.ruoyi.system.domain.house.vo.HouseResourcePage"
>
SELECT
t2.wg_name AS wgName4,
t1.*
t1.*,
t4.year_sell
FROM
house_resource t1
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_sell t4 ON t4.business_entity_info_id = t3.id
<where>
<if
test=
"query.wgType != null"
>
and t1.type = #{query.wgType}
...
...
@@ -143,6 +146,15 @@
<if
test=
"query.houseNumber != null and query.houseNumber != ''"
>
and t1.house_number like concat('%', #{query.houseNumber}, '%')
</if>
<if
test=
"query.houseAreaMin != null and query.houseAreaMin != '' and query.houseAreaMax != null and query.houseAreaMax != ''"
>
and t1.house_area
<![CDATA[ >= ]]>
#{query.houseAreaMin} and t1.house_area
<![CDATA[ <= ]]>
#{query.houseAreaMax}
</if>
<if
test=
"query.houseResourceType != null"
>
and t1.house_resource_type = #{query.houseResourceType}
</if>
<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}
</if>
</where>
<if
test=
"query.sortWay != null and query.sortWay != ''"
>
order by t1.house_area ${query.sortWay}
...
...
@@ -217,4 +229,4 @@
<select
id=
"selectAll"
resultType=
"com.ruoyi.system.domain.house.HouseResource"
>
SELECT * FROM house_resource
</select>
</mapper>
\ No newline at end of file
</mapper>
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