1
0

app设备解绑

This commit is contained in:
2025-07-11 11:34:30 +08:00
parent 3250dd3f83
commit a423ac0f8b
5 changed files with 61 additions and 5 deletions

View File

@ -42,4 +42,11 @@ public class AppDeviceVo {
* 蓝牙名称
*/
private String bluetoothName;
/**
* 设备状态
* 0 失效
* 1 正常
*/
private Integer deviceStatus;
}

View File

@ -40,6 +40,15 @@ public interface DeviceMapper extends BaseMapper<Device> {
*/
List<Device> findDevices(@Param("criteria") DeviceQueryCriteria criteria);
/**
* 查询APP绑定设备列表
*
* @param criteria
* @return
*/
Page<AppDeviceVo> queryAppBindDeviceList(Page<AppDeviceVo> page, @Param("criteria") DeviceQueryCriteria criteria);
Page<AppDeviceVo> queryAppDeviceList(Page<AppDeviceVo> page, @Param("criteria") DeviceQueryCriteria criteria);
/**

View File

@ -503,7 +503,7 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
Long userId = AppLoginHelper.getUserId();
bo.setBindingUserId(userId);
}
Page<AppDeviceVo> result = baseMapper.queryAppDeviceList(pageQuery.build(), bo);
Page<AppDeviceVo> result = baseMapper.queryAppBindDeviceList(pageQuery.build(), bo);
return TableDataInfo.build(result);
}