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
080ea81e
Commit
080ea81e
authored
Jul 18, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
1c4196f0
Pipeline
#145431
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
10 deletions
+46
-10
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+46
-10
No files found.
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
080ea81e
...
@@ -181,6 +181,12 @@
...
@@ -181,6 +181,12 @@
<if
test=
"query.yearTaxMax != null and query.yearTaxMax != ''"
>
<if
test=
"query.yearTaxMax != null and query.yearTaxMax != ''"
>
and t4.year_tax
<![CDATA[ <= ]]>
#{query.yearTaxMax}
and t4.year_tax
<![CDATA[ <= ]]>
#{query.yearTaxMax}
</if>
</if>
<if
test=
"query.unitPriceMin != null and query.unitPriceMin != ''"
>
and t1.unit_price
<![CDATA[ >= ]]>
#{query.unitPriceMin}
</if>
<if
test=
"query.unitPriceMax != null and query.unitPriceMax != ''"
>
and t4.unit_price
<![CDATA[ <= ]]>
#{query.unitPriceMax}
</if>
<if
test=
"query.gsFlag != null and query.gsFlag != ''"
>
<if
test=
"query.gsFlag != null and query.gsFlag != ''"
>
and t3.gs = ${query.gsFlag}
and t3.gs = ${query.gsFlag}
</if>
</if>
...
@@ -230,18 +236,20 @@
...
@@ -230,18 +236,20 @@
</if>
</if>
</where>
</where>
GROUP BY t1.id
GROUP BY t1.id
<trim
prefix=
"having"
prefixOverrides=
"and"
>
<if
test=
"query.dayPriceMin != null and query.dayPriceMin != ''"
>
<if
test=
"query.dayPriceMin != null and query.dayPriceMin != ''"
>
having dayPrice
<![CDATA[ >= ]]>
#{query.dayPriceMin}
and dayPrice
<![CDATA[ >= ]]>
#{query.dayPriceMin}
</if>
<if
test=
"query.dayPriceMax != null and query.dayPriceMax != ''"
>
<if
test=
"query.dayPriceMax != null and query.dayPriceMax != ''"
>
and dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
and dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
</if>
</if>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
and t4.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
</if>
</if>
<if
test=
"query.dayPriceMax != null and query.dayPriceMax != ''"
>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
having dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
and t4.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
<if
test=
"query.dayPriceMin != null and query.dayPriceMin != ''"
>
and dayPrice
<![CDATA[ >= ]]>
#{query.dayPriceMin}
</if>
</if>
</if>
</trim>
<if
test=
"query.incomeSort != null and query.incomeSort != ''"
>
<if
test=
"query.incomeSort != null and query.incomeSort != ''"
>
ORDER BY income ${query.incomeSort}
ORDER BY income ${query.incomeSort}
</if>
</if>
...
@@ -283,7 +291,8 @@
...
@@ -283,7 +291,8 @@
t2.wg_name AS wgName4,
t2.wg_name AS wgName4,
t1.*,
t1.*,
t4.year_sell,
t4.year_sell,
t3.nature
t3.nature,
ROUND(IFNULL(t1.unit_price,0) * 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
...
@@ -335,6 +344,12 @@
...
@@ -335,6 +344,12 @@
<if
test=
"query.yearTaxMax != null and query.yearTaxMax != ''"
>
<if
test=
"query.yearTaxMax != null and query.yearTaxMax != ''"
>
and t4.year_tax
<![CDATA[ <= ]]>
#{query.yearTaxMax}
and t4.year_tax
<![CDATA[ <= ]]>
#{query.yearTaxMax}
</if>
</if>
<if
test=
"query.unitPriceMin != null and query.unitPriceMin != ''"
>
and t1.unit_price
<![CDATA[ >= ]]>
#{query.unitPriceMin}
</if>
<if
test=
"query.unitPriceMax != null and query.unitPriceMax != ''"
>
and t4.unit_price
<![CDATA[ <= ]]>
#{query.unitPriceMax}
</if>
<if
test=
"query.gsFlag != null and query.gsFlag != ''"
>
<if
test=
"query.gsFlag != null and query.gsFlag != ''"
>
and t3.gs = ${query.gsFlag}
and t3.gs = ${query.gsFlag}
</if>
</if>
...
@@ -426,7 +441,8 @@
...
@@ -426,7 +441,8 @@
t3.gs,
t3.gs,
t1.remark,
t1.remark,
t3.name AS businessEntityInfoName,
t3.name AS businessEntityInfoName,
t3.principal
t3.principal,
ROUND(IFNULL(t1.unit_price,0) * 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
...
@@ -478,6 +494,12 @@
...
@@ -478,6 +494,12 @@
<if
test=
"query.yearTaxMax != null and query.yearTaxMax != ''"
>
<if
test=
"query.yearTaxMax != null and query.yearTaxMax != ''"
>
and t4.year_tax
<![CDATA[ <= ]]>
#{query.yearTaxMax}
and t4.year_tax
<![CDATA[ <= ]]>
#{query.yearTaxMax}
</if>
</if>
<if
test=
"query.unitPriceMin != null and query.unitPriceMin != ''"
>
and t1.unit_price
<![CDATA[ >= ]]>
#{query.unitPriceMin}
</if>
<if
test=
"query.unitPriceMax != null and query.unitPriceMax != ''"
>
and t4.unit_price
<![CDATA[ <= ]]>
#{query.unitPriceMax}
</if>
<if
test=
"query.gsFlag != null and query.gsFlag != ''"
>
<if
test=
"query.gsFlag != null and query.gsFlag != ''"
>
and t3.gs = ${query.gsFlag}
and t3.gs = ${query.gsFlag}
</if>
</if>
...
@@ -497,6 +519,20 @@
...
@@ -497,6 +519,20 @@
</foreach>
</foreach>
</if>
</if>
</where>
</where>
<trim
prefix=
"having"
prefixOverrides=
"and"
>
<if
test=
"query.dayPriceMin != null and query.dayPriceMin != ''"
>
and dayPrice
<![CDATA[ >= ]]>
#{query.dayPriceMin}
</if>
<if
test=
"query.dayPriceMax != null and query.dayPriceMax != ''"
>
and dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
</if>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
and t4.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
</if>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
and t4.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
</if>
</trim>
</select>
</select>
<select
id=
"selectAll"
resultType=
"com.ruoyi.system.domain.house.HouseResource"
>
<select
id=
"selectAll"
resultType=
"com.ruoyi.system.domain.house.HouseResource"
>
SELECT * FROM house_resource
SELECT * FROM house_resource
...
...
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