mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
设备列表bug修复
This commit is contained in:
@@ -189,10 +189,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select d.device_id, d.device_name, d.product_id, d.product_name,
|
||||
d.user_id, d.user_name, d.tenant_id, d.tenant_name, d.serial_number,
|
||||
d.firmware_version, d.status,d.rssi,d.is_shadow ,d.location_way,
|
||||
d.things_model_value, d.active_time,d.img_url,g.group_id,u.user_id
|
||||
d.things_model_value, d.active_time,d.img_url,u.user_id
|
||||
from iot_device d
|
||||
left join iot_device_user u on u.device_id = d.device_id
|
||||
left join iot_device_group g on g.device_id=d.device_id
|
||||
<if test="groupId != null and groupId !=0 "> left join iot_device_group g on g.device_id=d.device_id </if>
|
||||
<where>
|
||||
<if test="groupId != null and groupId !=0 "> and g.group_id = #{groupId}</if>
|
||||
<if test="userId != null and userId != 0"> and u.user_id = #{userId}</if>
|
||||
|
||||
Reference in New Issue
Block a user