Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
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
8003eb35
You need to sign in or sign up before continuing.
Commit
8003eb35
authored
Jun 20, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
79a6de8a
Pipeline
#145038
failed with stages
in 31 minutes and 42 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
HouseResourceController.java
...m/ruoyi/web/controller/house/HouseResourceController.java
+4
-0
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+1
-1
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/house/HouseResourceController.java
View file @
8003eb35
...
@@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.*;
...
@@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.*;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Objects
;
@RestController
@RestController
@RequestMapping
(
"/api/house"
)
@RequestMapping
(
"/api/house"
)
...
@@ -53,6 +54,9 @@ public class HouseResourceController {
...
@@ -53,6 +54,9 @@ public class HouseResourceController {
@GetMapping
(
"/page"
)
@GetMapping
(
"/page"
)
public
AjaxResult
getPageHouseResources
(
HouseResourcePageQuery
query
)
{
public
AjaxResult
getPageHouseResources
(
HouseResourcePageQuery
query
)
{
if
(
Objects
.
nonNull
(
query
.
getIncomeSort
())
&&
query
.
getIncomeSort
().
length
()
>
4
)
{
return
AjaxResult
.
error
(
"<UNK>4<UNK>"
);
}
return
AjaxResult
.
success
(
houseResourceService
.
pageHouseResources
(
query
));
return
AjaxResult
.
success
(
houseResourceService
.
pageHouseResources
(
query
));
}
}
...
...
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
8003eb35
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
having dayPrice
<![CDATA[ >= ]]>
#{query.dayPriceMin} and dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
having dayPrice
<![CDATA[ >= ]]>
#{query.dayPriceMin} and dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
</if>
</if>
<if
test=
"query.incomeSort != null and query.incomeSort != ''"
>
<if
test=
"query.incomeSort != null and query.incomeSort != ''"
>
ORDER BY income
#{
incomeSort}
ORDER BY income
${query.
incomeSort}
</if>
</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"
>
...
...
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