设备列表统计接口更新

develop
hanrenchun 10 months ago
parent b7ceac57fd
commit bccfb1bf32

@ -66,7 +66,9 @@ public class PerceptionDeviceController extends BaseController {
@ApiOperation("人设备列表") @ApiOperation("人设备列表")
public TableDataInfo<DevopsDeviceInfo> PeopleList() { public TableDataInfo<DevopsDeviceInfo> PeopleList() {
startPage(); startPage();
List<DevopsDeviceInfo> list = devopsDeviceInfoService.lambdaQuery().eq(DevopsDeviceInfo::getDeviceType, 1).list(); List<DevopsDeviceInfo> list = devopsDeviceInfoService.lambdaQuery()
.eq(DevopsDeviceInfo::getParentMonitoringType,1)
.eq(DevopsDeviceInfo::getDeviceType, 1).list();
return getDataTable(list); return getDataTable(list);
} }
@ -74,7 +76,9 @@ public class PerceptionDeviceController extends BaseController {
@ApiOperation("车设备列表") @ApiOperation("车设备列表")
public TableDataInfo<DevopsDeviceInfo> VehicleList() { public TableDataInfo<DevopsDeviceInfo> VehicleList() {
startPage(); startPage();
List<DevopsDeviceInfo> list = devopsDeviceInfoService.lambdaQuery().eq(DevopsDeviceInfo::getDeviceType, 2).list(); List<DevopsDeviceInfo> list = devopsDeviceInfoService.lambdaQuery()
.eq(DevopsDeviceInfo::getParentMonitoringType,1)
.eq(DevopsDeviceInfo::getDeviceType, 2).list();
return getDataTable(list); return getDataTable(list);
} }

Loading…
Cancel
Save