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
6f7ed96a
Commit
6f7ed96a
authored
Jul 15, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
b9649a94
Pipeline
#145365
failed with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
3 deletions
+23
-3
HouseResourceController.java
...m/ruoyi/web/controller/house/HouseResourceController.java
+2
-3
HouseResourcePageQuery.java
.../ruoyi/system/domain/house/vo/HouseResourcePageQuery.java
+14
-0
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+7
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/house/HouseResourceController.java
View file @
6f7ed96a
...
...
@@ -6,7 +6,6 @@ import com.ruoyi.system.domain.house.HouseResource;
import
com.ruoyi.system.domain.house.vo.*
;
import
com.ruoyi.system.service.house.HouseResourceService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
...
...
@@ -56,8 +55,8 @@ public class HouseResourceController {
return
AjaxResult
.
success
();
}
@
Ge
tMapping
(
"/page"
)
public
AjaxResult
getPageHouseResources
(
HouseResourcePageQuery
query
)
{
@
Pos
tMapping
(
"/page"
)
public
AjaxResult
getPageHouseResources
(
@RequestBody
HouseResourcePageQuery
query
)
{
if
(
Objects
.
nonNull
(
query
.
getIncomeSort
())
&&
query
.
getIncomeSort
().
length
()
>
4
)
{
return
AjaxResult
.
error
(
"<UNK>4<UNK>"
);
}
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourcePageQuery.java
View file @
6f7ed96a
...
...
@@ -79,4 +79,18 @@ public class HouseResourcePageQuery extends PageDomain {
private
Integer
year
;
private
Integer
registrationPlaceFlag
;
private
List
<
AiQuery
>
aiQueries
;
@Data
public
static
class
AiQuery
{
private
String
two
;
private
String
three
;
private
String
four
;
private
Integer
wgType
;
}
}
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
6f7ed96a
...
...
@@ -187,6 +187,13 @@
#{item}
</foreach>
</if>
<if
test=
"query.aiQueries != null and query.aiQueries.size() > 0"
>
and (
<foreach
collection=
"query.aiQueries"
item=
"ai"
separator=
" or "
>
(t1.two = #{ai.two} and t1.three = #{ai.three} and t1.four = #{ai.four} and t1.type = #{ai.wgType})
</foreach>
)
</if>
</where>
GROUP BY t1.id
<if
test=
"query.dayPriceMin != null and query.dayPriceMin != '' and query.dayPriceMax != null and query.dayPriceMax != ''"
>
...
...
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