修复获取虚拟设备列表接口分页BUG
parent
c06bf77aa2
commit
6e6c3290be
|
@ -97,11 +97,11 @@ public class VirtualDevice implements Owned<String> {
|
|||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
private String state = STATE_STOPPED;
|
||||
private String state;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Long createAt = System.currentTimeMillis();
|
||||
private Long createAt;
|
||||
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ import cc.iotkit.common.api.Request;
|
|||
import cc.iotkit.common.enums.ErrCode;
|
||||
import cc.iotkit.common.exception.BizException;
|
||||
import cc.iotkit.common.utils.ReflectUtil;
|
||||
import cc.iotkit.common.validate.QueryGroup;
|
||||
import cc.iotkit.data.manager.IVirtualDeviceData;
|
||||
import cc.iotkit.manager.dto.bo.ChangeStateBo;
|
||||
import cc.iotkit.manager.dto.bo.device.DeviceLogQueryBo;
|
||||
|
@ -56,7 +57,7 @@ public class VirtualDeviceController {
|
|||
@ApiOperation("获取虚拟设备列表")
|
||||
@SaCheckPermission("iot:virtualDevice:query")
|
||||
@PostMapping("/list")
|
||||
public Paging<VirtualDevice> getDevices(PageRequest<VirtualDevice> pageRequest) {
|
||||
public Paging<VirtualDevice> getDevices(@Validated(QueryGroup.class)@RequestBody PageRequest<VirtualDevice> pageRequest) {
|
||||
return virtualDeviceData.findAll(pageRequest);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue