| | |
| | | import com.mzl.flower.base.BaseController; |
| | | import com.mzl.flower.base.R; |
| | | import com.mzl.flower.base.ReturnDataDTO; |
| | | import com.mzl.flower.dto.request.report.QueryOrderDTO; |
| | | import com.mzl.flower.dto.request.report.QueryPartnerOrderDTO; |
| | | import com.mzl.flower.dto.request.report.QuerySupplierDTO; |
| | | import com.mzl.flower.dto.request.statisticAnalysis.FlowerMaterialDTO; |
| | | import com.mzl.flower.dto.response.report.OrderDetailReportResultVO; |
| | | import com.mzl.flower.dto.response.report.OrderReportResultVO; |
| | | import com.mzl.flower.dto.response.report.OrderSupplierReportResultVO; |
| | | import com.mzl.flower.dto.request.statisticAnalysis.FlowerSaleDTO; |
| | | import com.mzl.flower.dto.response.statisticAnalysis.FlowerMaterialStaticVO; |
| | | import com.mzl.flower.dto.response.statisticAnalysis.FlowerSaleStatisticVO; |
| | | import com.mzl.flower.dto.response.statisticAnalysis.FlowerMaterialVO; |
| | | import com.mzl.flower.service.report.OrderReportService; |
| | | import com.mzl.flower.dto.response.statisticAnalysis.FlowerSaleVO; |
| | | import com.mzl.flower.service.statisticsAnalysis.StatisticAnalysisService; |
| | | import com.mzl.flower.utils.ConverterUtil; |
| | | import io.swagger.annotations.Api; |
| | |
| | | } |
| | | |
| | | |
| | | @GetMapping("/flower-sale/page") |
| | | @ApiOperation(value = "花材销售统计-分页", notes = "花材销售统计-分页") |
| | | public ResponseEntity<ReturnDataDTO<Page<FlowerSaleVO>>> getFlowerSalePage(Page page, @Validated FlowerSaleDTO dto) { |
| | | return returnData(R.SUCCESS.getCode(), ConverterUtil.transPage(statisticAnalysisService.getFlowerSalePage(page, dto), FlowerSaleVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/flower-sale/statistics") |
| | | @ApiOperation(value = "花材销售统计-统计", notes = "花材销售统计") |
| | | public ResponseEntity<ReturnDataDTO<FlowerSaleStatisticVO>> getFlowerSaleStatistics(@Validated FlowerSaleDTO dto) { |
| | | return returnData(R.SUCCESS.getCode(), ConverterUtil.transObject(statisticAnalysisService.getFlowerSaleStatistics(dto), FlowerSaleStatisticVO.class)); |
| | | } |
| | | |
| | | |
| | | @GetMapping({"/flower-sale/export"}) |
| | | @ApiOperation(value = "花材销售统计-导出") |
| | | public void exportFlowerSales(HttpServletResponse response, @Validated FlowerSaleDTO dto) { |
| | | statisticAnalysisService.exportFlowerSales(response, dto); |
| | | } |
| | | |
| | | } |