| | |
| | | import com.mzl.flower.constant.Constants; |
| | | import com.mzl.flower.dto.request.payment.*; |
| | | import com.mzl.flower.dto.response.payment.OrderItemSalesNewDTO; |
| | | import com.mzl.flower.dto.response.payment.OrderSalesListDTO; |
| | | import com.mzl.flower.dto.response.payment.OrderItemSalesNewListDTO; |
| | | import com.mzl.flower.dto.response.payment.OrderStatusCountDTO; |
| | | import com.mzl.flower.entity.payment.OrderItem; |
| | | import com.mzl.flower.service.payment.OrderItemSalesService; |
| | | import com.mzl.flower.service.payment.OrderItemSettlementService; |
| | |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @RequestMapping("/api/sales") |
| | |
| | | @Autowired |
| | | private OrderItemSettlementService orderItemSettlementService; |
| | | |
| | | @GetMapping("/status/count") |
| | | @ApiOperation(value = "获取状态数量") |
| | | public ResponseEntity<ReturnDataDTO<List<OrderStatusCountDTO>>> getSalesStatusCount(OrderItemSalesQueryDTO dto){ |
| | | return returnData(R.SUCCESS.getCode(), salesService.getSalesStatusCount(dto)); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询售后列表") |
| | | public ResponseEntity<ReturnDataDTO<Page<OrderSalesListDTO>>> selectSalesList(Page page |
| | | public ResponseEntity<ReturnDataDTO<Page<OrderItemSalesNewListDTO>>> selectSalesList(Page page |
| | | , OrderItemSalesQueryDTO dto){ |
| | | return returnData(R.SUCCESS.getCode(), salesService.selectSalesList(page, dto)); |
| | | } |
| | | |
| | | @GetMapping({"/list/export"}) |
| | | @ApiOperation(value = "售后列表导出") |
| | | public void exportSales(HttpServletResponse response, OrderItemSalesQueryDTO dto){ |
| | | salesService.exportSalesList(response, dto); |
| | | } |
| | | |
| | | @GetMapping("/list/view") |
| | | @ApiOperation(value = "售后详情") |
| | | @ApiImplicitParams({ |