fix:设备接口,取消部分权限
This commit is contained in:
@@ -87,7 +87,7 @@ public class DeviceInfomationController extends AbstractFileUploadController imp
|
|||||||
@GetMapping("/get")
|
@GetMapping("/get")
|
||||||
@Operation(summary = "获得设备-设备信息")
|
@Operation(summary = "获得设备-设备信息")
|
||||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
@PreAuthorize("@ss.hasPermission('resource:device-infomation:query')")
|
// @PreAuthorize("@ss.hasPermission('resource:device-infomation:query')")
|
||||||
public CommonResult<DeviceInfomationRespVO> getDeviceInfomation(@RequestParam("id") Long id) {
|
public CommonResult<DeviceInfomationRespVO> getDeviceInfomation(@RequestParam("id") Long id) {
|
||||||
DeviceInfomationDO deviceInfomation = deviceInfomationService.getDeviceInfomation(id);
|
DeviceInfomationDO deviceInfomation = deviceInfomationService.getDeviceInfomation(id);
|
||||||
return success(BeanUtils.toBean(deviceInfomation, DeviceInfomationRespVO.class));
|
return success(BeanUtils.toBean(deviceInfomation, DeviceInfomationRespVO.class));
|
||||||
@@ -95,7 +95,7 @@ public class DeviceInfomationController extends AbstractFileUploadController imp
|
|||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得设备-设备信息分页")
|
@Operation(summary = "获得设备-设备信息分页")
|
||||||
@PreAuthorize("@ss.hasPermission('resource:device-infomation:query')")
|
// @PreAuthorize("@ss.hasPermission('resource:device-infomation:query')")
|
||||||
public CommonResult<PageResult<DeviceInfomationRespVO>> getDeviceInfomationPage(@Valid DeviceInfomationPageReqVO pageReqVO) {
|
public CommonResult<PageResult<DeviceInfomationRespVO>> getDeviceInfomationPage(@Valid DeviceInfomationPageReqVO pageReqVO) {
|
||||||
Long productId = pageReqVO.getProductId();
|
Long productId = pageReqVO.getProductId();
|
||||||
if(productId != null){
|
if(productId != null){
|
||||||
|
|||||||
Reference in New Issue
Block a user