| | |
| | | import com.mzl.flower.config.exception.ValidationException; |
| | | import com.mzl.flower.dto.request.coupon.CreateCouponRecordDTO; |
| | | import com.mzl.flower.dto.request.coupon.QueryCouponRecordDTO; |
| | | import com.mzl.flower.dto.request.payment.OrderItemSalesQueryDTO; |
| | | import com.mzl.flower.dto.request.report.QueryOrderDTO; |
| | | import com.mzl.flower.dto.response.coupon.CouponRecordResultVO; |
| | | import com.mzl.flower.dto.response.coupon.CouponRecordVO; |
| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | |
| | | /** |
| | | * @author @TaoJie |
| | |
| | | |
| | | @GetMapping("/sale/page") |
| | | @ApiOperation(value = "查询-分页", notes = "查询-分页") |
| | | public ResponseEntity<ReturnDataDTO<Page<CouponRecordVO>>> page( |
| | | public ResponseEntity<ReturnDataDTO<Page<OrderReportResultVO>>> page( |
| | | Page page, QueryOrderDTO dto |
| | | ) { |
| | | return returnData(R.SUCCESS.getCode(), ConverterUtil.transPage(orderReportService.getSalePage(page,dto), OrderReportResultVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/sale/statis") |
| | | @ApiOperation(value = "统计", notes = "统计") |
| | | public ResponseEntity<ReturnDataDTO<OrderReportResultVO>> statis(QueryOrderDTO dto |
| | | ) { |
| | | return returnData(R.SUCCESS.getCode(), ConverterUtil.transObject(orderReportService.getSaleStatis(dto), OrderReportResultVO.class)); |
| | | } |
| | | |
| | | |
| | | @GetMapping({"/sale/export"}) |
| | | @ApiOperation(value = "报告列表导出") |
| | | public void exportSales(HttpServletResponse response, QueryOrderDTO dto){ |
| | | orderReportService.exportSalesList(response, dto); |
| | | } |
| | | |
| | | } |