Commit 8e41dd08 by 罗志长

fix: 平台设备列表长者过滤

parent d4de4782
......@@ -108,7 +108,7 @@
and pd.device_license is null
</if>
<if test="param.elderId !=null and param.elderId != ''">
and pe.id = #{param.elderId}
and (pe.id = #{param.elderId} and ((prbd.bed_id is null and prbd.room_id = pe.room_id) or (prbd.bed_id is not null and prbd.bed_id = pe.bed_id)))
</if>
<if test="param.orgIds != null and param.orgIds.size() > 0 ">
AND pd.org_id in
......
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