| | |
| | | |
| | | @GetMapping("/approve-process-list") |
| | | @Operation(summary = "获取付款单审批流程列表") |
| | | @PreAuthorize("@ss.hasPermission('erp:finance-payment:query')") |
| | | public CommonResult<List<Map<String, Object>>> getApproveProcessList() { |
| | | return success(financePaymentService.getFinancePaymentApproveProcessDefinitionList()); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得付款单") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('erp:finance-payment:query')") |
| | | public CommonResult<ErpFinancePaymentRespVO> getFinancePayment(@RequestParam("id") Long id) { |
| | | ErpFinancePaymentDO payment = financePaymentService.getFinancePayment(id); |
| | | if (payment == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得付款单分页") |
| | | @PreAuthorize("@ss.hasPermission('erp:finance-payment:query')") |
| | | public CommonResult<PageResult<ErpFinancePaymentRespVO>> getFinancePaymentPage(@Valid ErpFinancePaymentPageReqVO pageReqVO) { |
| | | PageResult<ErpFinancePaymentDO> pageResult = financePaymentService.getFinancePaymentPage(pageReqVO); |
| | | return success(buildFinancePaymentVOPageResult(pageResult)); |