| | |
| | | import com.ruoyi.order.service.impl.MgtBusinessDataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | public R<MgtOrderStaticsChartVO> getChart() { |
| | | return R.ok(mgtBusinessDataService.getChart()); |
| | | } |
| | | |
| | | /** |
| | | * 业务数据导出 |
| | | * |
| | | * @param query |
| | | * @param response |
| | | */ |
| | | @ApiOperation("导出业务数据统计") |
| | | @PostMapping("/export") |
| | | public void exportBusinessData(@Validated @RequestBody MgtOrderStaticsQuery query, |
| | | HttpServletResponse response) { |
| | | mgtBusinessDataService.exportBusinessData(query, response); |
| | | } |
| | | } |