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
6ae3f3d5
Commit
6ae3f3d5
authored
Mar 06, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'main'
Dev See merge request
!43
parents
1c2a1c74
8b4630e1
Pipeline
#142951
passed with stages
in 3 minutes and 42 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
HouseResourcePageQuery.java
.../ruoyi/system/domain/house/vo/HouseResourcePageQuery.java
+2
-0
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+14
-6
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourcePageQuery.java
View file @
6ae3f3d5
...
@@ -17,4 +17,6 @@ public class HouseResourcePageQuery extends PageDomain {
...
@@ -17,4 +17,6 @@ public class HouseResourcePageQuery extends PageDomain {
private
String
houseResourceAttribute
;
private
String
houseResourceAttribute
;
private
String
sortWay
;
private
String
sortWay
;
private
int
wgType
;
}
}
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
6ae3f3d5
...
@@ -105,22 +105,30 @@
...
@@ -105,22 +105,30 @@
</insert>
</insert>
<select
id=
"selectPage"
resultType=
"com.ruoyi.system.domain.house.vo.HouseResourcePage"
>
<select
id=
"selectPage"
resultType=
"com.ruoyi.system.domain.house.vo.HouseResourcePage"
>
SELECT t1.*, t2.wg_name AS wgName FROM house_resource t1 LEFT JOIN grid_region t2 ON t1.four = t2.id
SELECT
t1.wg_name AS wgName,
t2.*
FROM
grid_region t1
LEFT JOIN house_resource t2 ON t1.wg_code = t2.four
<where>
<where>
<if
test=
"query.wgType != null"
>
and t2.type = #{query.wgType}
</if>
<if
test=
"query.two != null and query.two != ''"
>
<if
test=
"query.two != null and query.two != ''"
>
and two like concat('%', #{query.two}, '%')
and t
2.t
wo like concat('%', #{query.two}, '%')
</if>
</if>
<if
test=
"query.three != null and query.three != ''"
>
<if
test=
"query.three != null and query.three != ''"
>
and three like concat('%', #{query.three}, '%')
and t
2.t
hree like concat('%', #{query.three}, '%')
</if>
</if>
<if
test=
"query.four != null and query.four != ''"
>
<if
test=
"query.four != null and query.four != ''"
>
and four like concat('%', #{query.four}, '%')
and
t2.
four like concat('%', #{query.four}, '%')
</if>
</if>
<if
test=
"query.houseResourceAttribute != null and query.houseResourceAttribute != ''"
>
<if
test=
"query.houseResourceAttribute != null and query.houseResourceAttribute != ''"
>
and house_resource_attribute = #{query.houseResourceAttribute}
and
t2.
house_resource_attribute = #{query.houseResourceAttribute}
</if>
</if>
<if
test=
"query.sortWay != null and query.sortWay != ''"
>
<if
test=
"query.sortWay != null and query.sortWay != ''"
>
order by houseArea ${query.sortWay}
order by
t2.
houseArea ${query.sortWay}
</if>
</if>
</where>
</where>
</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