|
|
|
|
@ -231,10 +231,11 @@ public class DeviceController {
|
|
|
|
|
public CommonResult<PageResult<Map<String, Object>>> historyRecord(@RequestParam("deviceId") Long deviceId,
|
|
|
|
|
@RequestParam(name = "collectionStartTime", required = false) String collectionStartTime,
|
|
|
|
|
@RequestParam(name = "collectionEndTime", required = false) String collectionEndTime,
|
|
|
|
|
@RequestParam(name = "attributeCodes", required = false)List<String> attributeCodes,
|
|
|
|
|
@RequestParam(name = "pageNo", required = false, defaultValue = "1") Integer page,
|
|
|
|
|
@RequestParam(name = "pageSize", required = false, defaultValue = "10") Integer pageSize
|
|
|
|
|
) throws JsonProcessingException {
|
|
|
|
|
PageResult<Map<String, Object>> deviceContactModelDO=deviceService.historyRecord(deviceId,collectionStartTime,collectionEndTime,page,pageSize);
|
|
|
|
|
PageResult<Map<String, Object>> deviceContactModelDO=deviceService.historyRecord(deviceId,collectionStartTime,collectionEndTime,attributeCodes,page,pageSize);
|
|
|
|
|
return success(deviceContactModelDO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|