From 9bc3f59d8f09cfe536f1758e7a6ed4471e9223a6 Mon Sep 17 00:00:00 2001
From: 赵士淞 <zhaoss@yhzhg.cn>
Date: Mon, 24 Apr 2023 09:41:27 +0000
Subject: [PATCH] 我发起的
---
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/business/rest/BusinessExpenseFlowableController.java | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/business/rest/BusinessExpenseFlowableController.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/business/rest/BusinessExpenseFlowableController.java
index d0e8243..f8f70c2 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/business/rest/BusinessExpenseFlowableController.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/business/rest/BusinessExpenseFlowableController.java
@@ -21,7 +21,6 @@
import me.zhengjie.annotation.Log;
import me.zhengjie.modules.business.service.BusinessExpenseFlowableService;
import me.zhengjie.modules.business.service.dto.BusinessExpenseDto;
-import me.zhengjie.modules.business.service.dto.BusinessExpenseQueryCriteria;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
@@ -41,12 +40,20 @@
private final BusinessExpenseFlowableService businessExpenseFlowableService;
- @GetMapping
- @Log("查询营业费用(Flowable)")
- @ApiOperation("查询营业费用(Flowable)")
+ @GetMapping(value = "/report")
+ @Log("查询我发起的营业费用(Flowable)")
+ @ApiOperation("查询我发起的营业费用(Flowable)")
@PreAuthorize("@el.check('businessExpense:list')")
- public ResponseEntity<Object> queryBusinessExpense(BusinessExpenseQueryCriteria criteria) throws Exception {
- return new ResponseEntity<>(businessExpenseFlowableService.queryAll(criteria),HttpStatus.OK);
+ public ResponseEntity<Object> reportBusinessExpense() throws Exception {
+ return new ResponseEntity<>(businessExpenseFlowableService.report(),HttpStatus.OK);
+ }
+
+ @GetMapping(value = "/approve")
+ @Log("查询待审批的营业费用(Flowable)")
+ @ApiOperation("查询待审批的营业费用(Flowable)")
+ @PreAuthorize("@el.check('businessExpense:list')")
+ public ResponseEntity<Object> approveBusinessExpense() throws Exception {
+ return new ResponseEntity<>(businessExpenseFlowableService.approve(),HttpStatus.OK);
}
@PostMapping
--
Gitblit v1.9.3