Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
78ff14d3
authored
Dec 20, 2023
by
罗志长
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: 平台端设备管理列表关联长者
parent
d48161c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
server-service/src/main/resources/mappers/PlatDeviceMapper.xml
server-service/src/main/resources/mappers/PlatDeviceMapper.xml
View file @
78ff14d3
...
@@ -62,7 +62,6 @@
...
@@ -62,7 +62,6 @@
<select
id=
"getDeviceIdsBySpaceIdAndElder"
resultType=
"com.makeit.vo.platform.device.PlatDeviceListVO"
>
<select
id=
"getDeviceIdsBySpaceIdAndElder"
resultType=
"com.makeit.vo.platform.device.PlatDeviceListVO"
>
select
select
distinct
pd.*,
pd.*,
ps.parent_path as spaceParentPath,
ps.parent_path as spaceParentPath,
ps.name as spaceName,
ps.name as spaceName,
...
@@ -75,7 +74,7 @@
...
@@ -75,7 +74,7 @@
left join plat_room pr on (pr.id = prbd.room_id and pr.del_flag = '0' )
left join plat_room pr on (pr.id = prbd.room_id and pr.del_flag = '0' )
left join plat_bed pb on ( pb.id = prbd.bed_id and pb.del_flag = '0')
left join plat_bed pb on ( pb.id = prbd.bed_id and pb.del_flag = '0')
left join plat_space ps on (ps.id = pr.space_id and ps.del_flag = '0')
left join plat_space ps on (ps.id = pr.space_id and ps.del_flag = '0')
left join plat_elder pe on (pe.
space_id = ps
.id and pe.del_flag = '0')
left join plat_elder pe on (pe.
room_id = pr
.id and pe.del_flag = '0')
<where>
<where>
pd.del_flag = '0'
pd.del_flag = '0'
<if
test=
"param.spaceId != null and param.spaceId != ''"
>
<if
test=
"param.spaceId != null and param.spaceId != ''"
>
...
@@ -119,6 +118,7 @@
...
@@ -119,6 +118,7 @@
</if>
</if>
</where>
</where>
group by pd.id
order by pd.update_date desc,pd.id desc
order by pd.update_date desc,pd.id desc
</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