fix:供应商接口去除权限注解
This commit is contained in:
@@ -58,14 +58,14 @@ public class SupplierController extends AbstractFileUploadController implements
|
|||||||
|
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "创建供应商")
|
@Operation(summary = "创建供应商")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:supplier:create')")
|
// @PreAuthorize("@ss.hasPermission('qms:supplier:create')")
|
||||||
public CommonResult<SupplierRespVO> createSupplier(@Valid @RequestBody SupplierSaveReqVO createReqVO) {
|
public CommonResult<SupplierRespVO> createSupplier(@Valid @RequestBody SupplierSaveReqVO createReqVO) {
|
||||||
return success(supplierService.createSupplier(createReqVO));
|
return success(supplierService.createSupplier(createReqVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "更新供应商")
|
@Operation(summary = "更新供应商")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:supplier:update')")
|
// @PreAuthorize("@ss.hasPermission('qms:supplier:update')")
|
||||||
public CommonResult<Boolean> updateSupplier(@Valid @RequestBody SupplierSaveReqVO updateReqVO) {
|
public CommonResult<Boolean> updateSupplier(@Valid @RequestBody SupplierSaveReqVO updateReqVO) {
|
||||||
supplierService.updateSupplier(updateReqVO);
|
supplierService.updateSupplier(updateReqVO);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -74,7 +74,7 @@ public class SupplierController extends AbstractFileUploadController implements
|
|||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@Operation(summary = "删除供应商")
|
@Operation(summary = "删除供应商")
|
||||||
@Parameter(name = "id", description = "编号", required = true)
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
@PreAuthorize("@ss.hasPermission('qms:supplier:delete')")
|
// @PreAuthorize("@ss.hasPermission('qms:supplier:delete')")
|
||||||
public CommonResult<Boolean> deleteSupplier(@RequestParam("id") Long id) {
|
public CommonResult<Boolean> deleteSupplier(@RequestParam("id") Long id) {
|
||||||
supplierService.deleteSupplier(id);
|
supplierService.deleteSupplier(id);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -92,7 +92,7 @@ public class SupplierController extends AbstractFileUploadController implements
|
|||||||
@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('qms:supplier:query')")
|
// @PreAuthorize("@ss.hasPermission('qms:supplier:query')")
|
||||||
public CommonResult<SupplierExtendRespVO> getSupplier(@RequestParam("id") Long id) {
|
public CommonResult<SupplierExtendRespVO> getSupplier(@RequestParam("id") Long id) {
|
||||||
SupplierExtendRespVO supplier = supplierService.getSupplier(id);
|
SupplierExtendRespVO supplier = supplierService.getSupplier(id);
|
||||||
return success(supplier);
|
return success(supplier);
|
||||||
@@ -100,7 +100,7 @@ public class SupplierController extends AbstractFileUploadController implements
|
|||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得供应商分页")
|
@Operation(summary = "获得供应商分页")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:supplier:query')")
|
// @PreAuthorize("@ss.hasPermission('qms:supplier:query')")
|
||||||
public CommonResult<PageResult<SupplierRespVO>> getSupplierPage(@Valid SupplierPageReqVO pageReqVO) {
|
public CommonResult<PageResult<SupplierRespVO>> getSupplierPage(@Valid SupplierPageReqVO pageReqVO) {
|
||||||
PageResult<SupplierDO> pageResult = supplierService.getSupplierPage(pageReqVO);
|
PageResult<SupplierDO> pageResult = supplierService.getSupplierPage(pageReqVO);
|
||||||
return success(BeanUtils.toBean(pageResult, SupplierRespVO.class));
|
return success(BeanUtils.toBean(pageResult, SupplierRespVO.class));
|
||||||
|
|||||||
Reference in New Issue
Block a user