| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得采购申请") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-request:query')") |
| | | public CommonResult<ErpPurchaseRequestRespVO> getPurchaseRequest(@RequestParam("id") Long id) { |
| | | ErpPurchaseRequestDO purchaseRequest = purchaseRequestService.getPurchaseRequest(id); |
| | | if (purchaseRequest == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得采购申请分页") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-request:query')") |
| | | public CommonResult<PageResult<ErpPurchaseRequestRespVO>> getPurchaseRequestPage(@Valid ErpPurchaseRequestPageReqVO pageReqVO) { |
| | | PageResult<ErpPurchaseRequestDO> pageResult = purchaseRequestService.getPurchaseRequestPage(pageReqVO); |
| | | return success(buildPurchaseRequestVOPageResult(pageResult)); |
| | |
| | | |
| | | @GetMapping("/approve-process-list") |
| | | @Operation(summary = "获取采购申请审批流程列表") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-request:query')") |
| | | public CommonResult<List<Map<String, Object>>> getApproveProcessList() { |
| | | return success(purchaseRequestService.getPurchaseRequestApproveProcessDefinitionList()); |
| | | } |