fix 停用获取产品品类型查询权限

This commit is contained in:
YuanFeng 2024-11-19 22:30:34 +08:00
parent 1b122b0fb7
commit 1d67e968e9
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ public class ProductTypeController {
@GetMapping("/get")
@Operation(summary = "获得产品类型表 ")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('base:product-type:query')")
// @PreAuthorize("@ss.hasPermission('base:product-type:query')")
public CommonResult<ProductTypeRespVO> getProductType(@RequestParam("id") Long id) {
ProductTypeDO productType = productTypeService.getProductType(id);
return success(BeanUtils.toBean(productType, ProductTypeRespVO.class));
@ -74,7 +74,7 @@ public class ProductTypeController {
@GetMapping("/page")
@Operation(summary = "获得产品类型表 分页")
@PreAuthorize("@ss.hasPermission('base:product-type:query')")
// @PreAuthorize("@ss.hasPermission('base:product-type:query')")
public CommonResult<PageResult<ProductTypeRespVO>> getProductTypePage(@Valid ProductTypePageReqVO pageReqVO) {
PageResult<ProductTypeDO> pageResult = productTypeService.getProductTypePage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ProductTypeRespVO.class));