From b8441a1ac74d2c3325dd36d69ced511f19cd760b Mon Sep 17 00:00:00 2001
From: 赵士淞 <zhaoss@yhzhg.cn>
Date: Tue, 09 May 2023 10:02:27 +0000
Subject: [PATCH] 微调
---
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/business/rest/BusinessExpenseFlowableController.java | 32 +++++++++++++++++++++++++-------
1 files changed, 25 insertions(+), 7 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..b2e6870 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,12 +21,14 @@
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;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
/**
* @website https://eladmin.vip
@@ -35,18 +37,26 @@
**/
@RestController
@RequiredArgsConstructor
-@Api(tags = "营业费用管理")
+@Api(tags = "营业费用(Flowable)")
@RequestMapping("/api/businessExpenseFlowable")
public class BusinessExpenseFlowableController {
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
@@ -73,4 +83,12 @@
businessExpenseFlowableService.reject(processInstanceId);
return new ResponseEntity<>(HttpStatus.OK);
}
+
+ @GetMapping(value = "/processDiagram")
+ @Log("查询营业费用流程图(Flowable)")
+ @ApiOperation("查询营业费用流程图(Flowable)")
+ @PreAuthorize("@el.check('businessExpense:list')")
+ public void processDiagramBusinessExpense(HttpServletRequest request, HttpServletResponse response, @RequestParam String processInstanceId) throws Exception {
+ businessExpenseFlowableService.processDiagram(request, response, processInstanceId);
+ }
}
\ No newline at end of file
--
Gitblit v1.9.3