权限标识相关功能修复
This commit is contained in:
@@ -41,14 +41,14 @@ public class ContractReceiveSendController implements BusinessControllerMarker {
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建收发货规则")
|
||||
@PreAuthorize("@ss.hasPermission('bse:contract-receive-send:create')")
|
||||
@PreAuthorize("@ss.hasPermission('base:contract-receive-send:create')")
|
||||
public CommonResult<ContractReceiveSendRespVO> createContractReceiveSend(@Valid @RequestBody ContractReceiveSendSaveReqVO createReqVO) {
|
||||
return success(contractReceiveSendService.createContractReceiveSend(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新收发货规则")
|
||||
@PreAuthorize("@ss.hasPermission('bse:contract-receive-send:update')")
|
||||
@PreAuthorize("@ss.hasPermission('base:contract-receive-send:update')")
|
||||
public CommonResult<Boolean> updateContractReceiveSend(@Valid @RequestBody ContractReceiveSendSaveReqVO updateReqVO) {
|
||||
contractReceiveSendService.updateContractReceiveSend(updateReqVO);
|
||||
return success(true);
|
||||
@@ -57,7 +57,7 @@ public class ContractReceiveSendController implements BusinessControllerMarker {
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除收发货规则")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('bse:contract-receive-send:delete')")
|
||||
@PreAuthorize("@ss.hasPermission('base:contract-receive-send:delete')")
|
||||
public CommonResult<Boolean> deleteContractReceiveSend(@RequestParam("id") Long id) {
|
||||
contractReceiveSendService.deleteContractReceiveSend(id);
|
||||
return success(true);
|
||||
@@ -66,7 +66,7 @@ public class ContractReceiveSendController implements BusinessControllerMarker {
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除收发货规则")
|
||||
@PreAuthorize("@ss.hasPermission('bse:contract-receive-send:delete')")
|
||||
@PreAuthorize("@ss.hasPermission('base:contract-receive-send:delete')")
|
||||
public CommonResult<Boolean> deleteContractReceiveSendList(@RequestBody BatchDeleteReqVO req) {
|
||||
contractReceiveSendService.deleteContractReceiveSendListByIds(req.getIds());
|
||||
return success(true);
|
||||
@@ -75,7 +75,7 @@ public class ContractReceiveSendController implements BusinessControllerMarker {
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得收发货规则")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('bse:contract-receive-send:query')")
|
||||
@PreAuthorize("@ss.hasPermission('base:contract-receive-send:query')")
|
||||
public CommonResult<ContractReceiveSendRespVO> getContractReceiveSend(@RequestParam("id") Long id) {
|
||||
ContractReceiveSendDO contractReceiveSend = contractReceiveSendService.getContractReceiveSend(id);
|
||||
return success(BeanUtils.toBean(contractReceiveSend, ContractReceiveSendRespVO.class));
|
||||
@@ -83,7 +83,7 @@ public class ContractReceiveSendController implements BusinessControllerMarker {
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得收发货规则分页")
|
||||
@PreAuthorize("@ss.hasPermission('bse:contract-receive-send:query')")
|
||||
@PreAuthorize("@ss.hasPermission('base:contract-receive-send:query')")
|
||||
public CommonResult<PageResult<ContractReceiveSendRespVO>> getContractReceiveSendPage(@Valid ContractReceiveSendPageReqVO pageReqVO) {
|
||||
PageResult<ContractReceiveSendDO> pageResult = contractReceiveSendService.getContractReceiveSendPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, ContractReceiveSendRespVO.class));
|
||||
@@ -91,7 +91,7 @@ public class ContractReceiveSendController implements BusinessControllerMarker {
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出收发货规则 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('bse:contract-receive-send:export')")
|
||||
@PreAuthorize("@ss.hasPermission('base:contract-receive-send:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportContractReceiveSendExcel(@Valid ContractReceiveSendPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user