forked from dyf/fys-Multi-tenant
控制中心优化
This commit is contained in:
@ -252,12 +252,13 @@
|
||||
dt.pc_model_dictionary detailPageUrl,
|
||||
ap.name personnelBy,
|
||||
d.device_status,
|
||||
d.binding_status,
|
||||
d.online_status,
|
||||
c.binding_time,
|
||||
ROW_NUMBER() OVER (PARTITION BY d.id ORDER BY c.binding_time) AS row_num
|
||||
from device d
|
||||
inner join device_type dt on d.device_type = dt.id
|
||||
inner join app_device_bind_record c on d.id = c.device_id
|
||||
left join app_device_bind_record c on d.id = c.device_id
|
||||
left join app_personnel_info ap on ap.device_id = d.id
|
||||
where dt.communication_mode in (0, 2) ) a where a.row_num = 1
|
||||
<if test="criteria.deviceType != null">
|
||||
|
||||
Reference in New Issue
Block a user