Commit 78ff14d3 by 罗志长

fix: 平台端设备管理列表关联长者

parent d48161c1
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment