控制中心优化

This commit is contained in:
2025-10-07 09:50:49 +08:00
parent 9afc0222d5
commit dfa5b446f9
3 changed files with 24 additions and 7 deletions

View File

@ -58,6 +58,13 @@ public class WebDeviceVo implements Serializable {
*/
private Integer deviceStatus;
/**绑定状态
* 0 未绑定
* 1 已绑定
*/
private Integer binding_status;
/**
* 绑定时间
*/

View File

@ -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">