| | |
| | | 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; |
| | |
| | | |
| | | 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 |