58 lines
1.6 KiB
Java
58 lines
1.6 KiB
Java
package com.peanut.modules.book.service;
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
import com.peanut.common.utils.PageUtils;
|
|
import com.peanut.modules.book.entity.BuyOrder;
|
|
import com.peanut.modules.book.vo.UserOrderVo;
|
|
import com.peanut.modules.book.vo.request.BuyOrderListRequestVo;
|
|
import com.peanut.modules.book.vo.response.BuyOrderResponseVo;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* 订单表
|
|
*
|
|
* @author yl
|
|
* @email yl328572838@163.com
|
|
* @date 2022-08-29 15:27:44
|
|
*/
|
|
public interface BuyOrderService extends IService<BuyOrder> {
|
|
|
|
PageUtils list(Map<String, Object> params) throws Exception;
|
|
|
|
PageUtils getMyOrderList(Map<String, Object> params);
|
|
|
|
//更新订单状态
|
|
void updateOrderStatus(Integer userId, String orderSn, String type);
|
|
|
|
// 查询勾选的订单是否有可合并
|
|
List<UserOrderVo> checkOrder(Integer[] orderIds);
|
|
|
|
// 查询所有订单是否有可合并
|
|
Page checkOrder(Map<String, Object> params);
|
|
|
|
/**
|
|
* 订单列表
|
|
*
|
|
* @param requestVo
|
|
* @return
|
|
*/
|
|
Map<String,Object> orderList(BuyOrderListRequestVo requestVo);
|
|
|
|
/**
|
|
* 订单拆分发货
|
|
*
|
|
* @param expressCompanyCode 快递公司代码
|
|
* @param buyOrderDetailId 订单详情 ID 列表
|
|
*/
|
|
void delivery(String expressCompanyCode, List<Integer> buyOrderDetailId);
|
|
|
|
BuyOrderResponseVo orderDetail(String orderSn);
|
|
|
|
Map<Integer, List<String>> decomposeShipment(Integer userId);
|
|
|
|
|
|
} |