package com.mzl.flower.web.partner; 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.*; @RestController @RequestMapping("/api/partner/sales") @Api(value = "售后-合伙人", tags = "售后-合伙人") @Validated @Slf4j public class SalesPartnerController extends BaseController { @Autowired private OrderItemSalesService salesService; @GetMapping("/list") @ApiOperation(value = "查询售后列表") public ResponseEntity>> selectSalesList(Page page , OrderItemSalesQueryDTO dto){ dto.setPartnerId(salesService.getCurrentPartner().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> getSalesInfo(String id){ return returnData(R.SUCCESS.getCode(), salesService.getSalesInfo(id)); } }