forked from dyf/fys-Multi-tenant
pageQuery
This commit is contained in:
@ -3,6 +3,8 @@ package com.fuyuanshen.web.controller.device;
|
||||
|
||||
import com.fuyuanshen.app.domain.AppPersonnelInfoRecords;
|
||||
import com.fuyuanshen.common.core.domain.R;
|
||||
import com.fuyuanshen.common.mybatis.core.page.PageQuery;
|
||||
import com.fuyuanshen.common.mybatis.core.page.TableDataInfo;
|
||||
import com.fuyuanshen.common.web.core.BaseController;
|
||||
import com.fuyuanshen.equipment.domain.DeviceLog;
|
||||
import com.fuyuanshen.equipment.domain.vo.DeviceAlarmVo;
|
||||
@ -101,15 +103,16 @@ public class WEBDeviceController extends BaseController {
|
||||
*/
|
||||
@Operation(summary = "设备告警记录")
|
||||
@GetMapping(value = "/getAlarmRecord/{deviceId}")
|
||||
public R<List<DeviceAlarmVo>> getAlarmRecord(@PathVariable Long deviceId,
|
||||
@RequestParam(required = false) String startTime,
|
||||
@RequestParam(required = false) String endTime) {
|
||||
List<DeviceAlarmVo> device = deviceService.getAlarmRecord(deviceId, startTime, endTime);
|
||||
return R.ok(device);
|
||||
public TableDataInfo<DeviceAlarmVo> getAlarmRecord(@PathVariable Long deviceId,
|
||||
@RequestParam(required = false) String startTime,
|
||||
@RequestParam(required = false) String endTime,
|
||||
PageQuery pageQuery) {
|
||||
return deviceService.getAlarmRecord(deviceId, startTime, endTime, pageQuery);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user