1
0

WEB端查看APP客户设备绑定

This commit is contained in:
2025-07-10 15:14:18 +08:00
parent 7e688e16b3
commit 185d521472
4 changed files with 33 additions and 15 deletions

View File

@ -29,7 +29,14 @@ public class AppDeviceVo {
private Integer communicationMode;
/**
* 设备图片
* 设备图片
*/
private String devicePic;
/**
* 设备类型
*/
private String typeName;
}

View File

@ -499,8 +499,10 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
@Override
public TableDataInfo<AppDeviceVo> queryAppDeviceList(DeviceQueryCriteria bo, PageQuery pageQuery) {
Long userId = AppLoginHelper.getUserId();
bo.setBindingUserId(userId);
if (bo.getBindingUserId() == null) {
Long userId = AppLoginHelper.getUserId();
bo.setBindingUserId(userId);
}
Page<AppDeviceVo> result = baseMapper.queryAppDeviceList(pageQuery.build(), bo);
return TableDataInfo.build(result);
}