导出售后单
This commit is contained in:
parent
b7e439e177
commit
e379a2eb34
@ -14,6 +14,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 售后业务层
|
||||
@ -31,6 +32,14 @@ public interface AfterSaleService extends IService<AfterSale> {
|
||||
*/
|
||||
IPage<AfterSaleVO> getAfterSalePages(AfterSaleSearchParams saleSearchParams);
|
||||
|
||||
/**
|
||||
* 查询导出售后信息
|
||||
*
|
||||
* @param saleSearchParams 查询参数
|
||||
* @return 分页售后信息
|
||||
*/
|
||||
List<AfterSale> exportAfterSaleOrder(AfterSaleSearchParams saleSearchParams);
|
||||
|
||||
/**
|
||||
* 查询售后信息
|
||||
*
|
||||
|
@ -53,6 +53,7 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.transaction.Transactional;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 售后业务层实现
|
||||
@ -91,6 +92,11 @@ public class AfterSaleServiceImpl extends ServiceImpl<AfterSaleMapper, AfterSale
|
||||
return baseMapper.queryByParams(PageUtil.initPage(saleSearchParams), saleSearchParams.queryWrapper());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AfterSale> exportAfterSaleOrder(AfterSaleSearchParams saleSearchParams) {
|
||||
return this.list(saleSearchParams.queryWrapper());
|
||||
}
|
||||
|
||||
@Override
|
||||
public AfterSaleVO getAfterSale(String sn) {
|
||||
return this.baseMapper.getAfterSaleVO(sn);
|
||||
|
@ -16,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 管理端,售后接口
|
||||
@ -40,6 +41,12 @@ public class AfterSaleManagerController {
|
||||
return ResultUtil.data(afterSaleService.getAfterSalePages(searchParams));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取导出售后服务列表列表")
|
||||
@GetMapping(value = "/exportAfterSaleOrder")
|
||||
public ResultMessage<List<AfterSale>> exportAfterSaleOrder(AfterSaleSearchParams searchParams) {
|
||||
return ResultUtil.data(afterSaleService.exportAfterSaleOrder(searchParams));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "查看售后服务详情")
|
||||
@ApiImplicitParam(name = "sn", value = "售后单号", required = true, paramType = "path")
|
||||
@GetMapping(value = "/get/{sn}")
|
||||
|
@ -16,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 店铺端,售后管理接口
|
||||
@ -44,6 +45,12 @@ public class AfterSaleStoreController {
|
||||
return ResultUtil.data(afterSaleService.getAfterSalePages(searchParams));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取导出售后服务列表列表")
|
||||
@GetMapping(value = "/exportAfterSaleOrder")
|
||||
public ResultMessage<List<AfterSale>> exportAfterSaleOrder(AfterSaleSearchParams searchParams) {
|
||||
return ResultUtil.data(afterSaleService.exportAfterSaleOrder(searchParams));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "审核售后申请")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "afterSaleSn", value = "售后sn", required = true, paramType = "path"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user