|
@@ -134,6 +134,15 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
return R.ok(deviceInfo);
|
|
return R.ok(deviceInfo);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("反显设备名称")
|
|
|
|
+ @Override
|
|
|
|
+ public R<Map<Long,String>> getDeviceNameList(DeviceInfoDto.DeviceIdDto dto){
|
|
|
|
+ LambdaQueryWrapper<DeviceInfo> lqw = new LambdaQueryWrapper<DeviceInfo>()
|
|
|
|
+ .in(DeviceInfo::getDeviceId,dto.getDeviceId())
|
|
|
|
+ .select(DeviceInfo::getDeviceId,DeviceInfo::getDeviceName);
|
|
|
|
+ List<DeviceInfo> deviceInfoList = list(lqw);
|
|
|
|
+ return R.ok(deviceInfoList.stream().collect(Collectors.toMap(DeviceInfo::getDeviceId, DeviceInfo::getDeviceName)));
|
|
|
|
+ }
|
|
@Override
|
|
@Override
|
|
@ApiOperation("设备访问历史添加")
|
|
@ApiOperation("设备访问历史添加")
|
|
public R history(DeviceInfoDto.Obj obj) {
|
|
public R history(DeviceInfoDto.Obj obj) {
|