| | |
| | | package com.doumee.api.web; |
| | | |
| | | import com.doumee.core.annotation.LoginDriverRequired; |
| | | import com.doumee.core.annotation.LoginRequired; |
| | | import com.doumee.core.annotation.LoginShopRequired; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | |
| | | @Autowired |
| | | private RevenueService revenueService; |
| | | |
| | | @LoginRequired |
| | | @LoginDriverRequired |
| | | @ApiOperation(value = "司机流水分页", notes = "小程序端") |
| | | @PostMapping("/driverPage") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | }) |
| | | public ApiResponse<PageData<Revenue>> driverPage(@RequestBody @Validated PageWrap<RevenueQueryDTO> pageWrap) { |
| | | return ApiResponse.success("查询成功", revenueService.findDriverRevenuePage(pageWrap, getMemberId())); |
| | | return ApiResponse.success("查询成功", revenueService.findDriverRevenuePage(pageWrap, getDriverId())); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @LoginDriverRequired |
| | | @ApiOperation(value = "司机流水收支统计", notes = "根据查询条件统计收入与支出") |
| | | @PostMapping("/driverSummary") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | }) |
| | | public ApiResponse<RevenueSummaryVO> driverSummary(@RequestBody RevenueQueryDTO queryDTO) { |
| | | return ApiResponse.success("查询成功", revenueService.getDriverRevenueSummary(queryDTO, getMemberId())); |
| | | return ApiResponse.success("查询成功", revenueService.getDriverRevenueSummary(queryDTO, getDriverId())); |
| | | } |
| | | |
| | | @LoginShopRequired |