|
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
|
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
|
|
+import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
|
|
|
import cn.iocoder.yudao.module.pms.controller.admin.vo.IotInfoPageReqVO;
|
|
|
import cn.iocoder.yudao.module.pms.controller.admin.vo.IotInfoRespVO;
|
|
|
import cn.iocoder.yudao.module.pms.controller.admin.vo.IotInfoSaveReqVO;
|
|
@@ -75,6 +76,8 @@ public class IotInfoController {
|
|
|
@Operation(summary = "获得资料分页")
|
|
|
@PreAuthorize("@ss.hasPermission('rq:iot-info:query')")
|
|
|
public CommonResult<PageResult<IotInfoRespVO>> getIotInfoPage(@Valid IotInfoPageReqVO pageReqVO) {
|
|
|
+ Long loginUserId = SecurityFrameworkUtils.getLoginUserId();
|
|
|
+ pageReqVO.setCreator(String.valueOf(loginUserId));
|
|
|
PageResult<IotInfoDO> pageResult = iotInfoService.getIotInfoPage(pageReqVO);
|
|
|
return success(BeanUtils.toBean(pageResult, IotInfoRespVO.class));
|
|
|
}
|
|
@@ -83,6 +86,8 @@ public class IotInfoController {
|
|
|
@Operation(summary = "获得资料分页")
|
|
|
@PreAuthorize("@ss.hasPermission('rq:iot-info:query')")
|
|
|
public CommonResult<PageResult<IotInfoRespVO>> getIotInfoFilePage(@Valid IotInfoPageReqVO pageReqVO) {
|
|
|
+ Long loginUserId = SecurityFrameworkUtils.getLoginUserId();
|
|
|
+ pageReqVO.setCreator(String.valueOf(loginUserId));
|
|
|
PageResult<IotInfoDO> pageResult = iotInfoService.getIotInfoFilePage(pageReqVO);
|
|
|
return success(BeanUtils.toBean(pageResult, IotInfoRespVO.class));
|
|
|
}
|