| | |
| | | |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.system.model.TFlowManagement; |
| | | import com.ruoyi.system.query.TFlowManagementQuery; |
| | | import com.ruoyi.system.service.TFlowManagementService; |
| | | import com.ruoyi.system.vo.TFlowManagementStatisticsVo; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | /** |
| | | * 获取流水列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:flow:list')") |
| | | @PreAuthorize("@ss.hasPermi('flow:sys:detail:list')") |
| | | @ApiOperation(value = "获取流水列表") |
| | | @PostMapping("/list") |
| | | public R<PageInfo<TFlowManagement>> list(@RequestBody TFlowManagementQuery query) { |
| | | PageInfo<TFlowManagement> list = flowService.pageList(query); |
| | | query.setBusinessDeptId(SecurityUtils.getBusinessDeptId()); |
| | | return R.ok(flowService.pageList(query)); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据支付方式统计流水金额") |
| | | @PostMapping("/getPaymentStats") |
| | | public R<TFlowManagementStatisticsVo> getPaymentStats(@RequestBody TFlowManagementQuery query){ |
| | | return R.ok(flowService.getPaymentStats(query)); |
| | | } |
| | | |
| | | |
| | | } |
| | | |