| package com.mzl.flower.web.supplier; | 
|   | 
| import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 
| import com.mzl.flower.base.BaseController; | 
| import com.mzl.flower.base.R; | 
| import com.mzl.flower.base.ReturnDataDTO; | 
| import com.mzl.flower.dto.request.payment.OrderItemSalesQueryDTO; | 
| import com.mzl.flower.dto.response.payment.OrderItemSalesNewDTO; | 
| import com.mzl.flower.dto.response.payment.OrderItemSalesNewListDTO; | 
| import com.mzl.flower.service.payment.OrderItemSalesService; | 
| import io.swagger.annotations.Api; | 
| import io.swagger.annotations.ApiImplicitParam; | 
| import io.swagger.annotations.ApiImplicitParams; | 
| import io.swagger.annotations.ApiOperation; | 
| import lombok.extern.slf4j.Slf4j; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.http.ResponseEntity; | 
| import org.springframework.validation.annotation.Validated; | 
| import org.springframework.web.bind.annotation.GetMapping; | 
| import org.springframework.web.bind.annotation.RequestMapping; | 
| import org.springframework.web.bind.annotation.RestController; | 
|   | 
| @RestController | 
| @RequestMapping("/api/supplier/sales") | 
| @Api(value = "售后-供应商(花农)", tags = "售后-供应商(花农)") | 
| @Validated | 
| @Slf4j | 
| public class SalesSupplierController extends BaseController { | 
|   | 
|     @Autowired | 
|     private OrderItemSalesService salesService; | 
|   | 
|     @GetMapping("/list") | 
|     @ApiOperation(value = "查询售后列表") | 
|     public ResponseEntity<ReturnDataDTO<Page<OrderItemSalesNewListDTO>>> selectSalesList(Page page, OrderItemSalesQueryDTO dto){ | 
|         dto.setSupplierId(salesService.getCurrentSupplier().getId()); | 
|         return returnData(R.SUCCESS.getCode(), salesService.selectSalesList(page, dto)); | 
|     } | 
|   | 
|     @GetMapping("/list/view") | 
|     @ApiOperation(value = "售后详情") | 
|     @ApiImplicitParams({ | 
|             @ApiImplicitParam(name = "id", value = "售后id", required = true, dataType = "String", paramType = "query") | 
|     }) | 
|     public ResponseEntity<ReturnDataDTO<OrderItemSalesNewDTO>> getSalesInfo(String id){ | 
|         return returnData(R.SUCCESS.getCode(), salesService.getSalesInfo(id)); | 
|     } | 
|   | 
| } |