OrderCommonMapper.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package com.caimei365.order.mapper;
  2. import com.caimei365.order.model.vo.DiscernReceiptVo;
  3. import com.caimei365.order.model.vo.OrderProductVo;
  4. import com.caimei365.order.model.vo.PromotionsVo;
  5. import com.caimei365.order.model.vo.ShopOrderVo;
  6. import org.apache.ibatis.annotations.Mapper;
  7. import org.apache.ibatis.annotations.Param;
  8. import java.util.List;
  9. /**
  10. * Description
  11. *
  12. * @author : Charles
  13. * @date : 2021/7/26
  14. */
  15. @Mapper
  16. public interface OrderCommonMapper {
  17. /**
  18. * 查询订单发货次数
  19. * @param orderId 订单Id
  20. */
  21. int countLogisticsBatch(Integer orderId);
  22. /**
  23. * 根据子订单Id查询子订单列表
  24. * @param shopOrderIds 子订单Ids
  25. */
  26. List<ShopOrderVo> getShopOrderList(@Param("shopOrderIds") List<String> shopOrderIds);
  27. /**
  28. * 根据Id获取订单促销
  29. * @param orderPromotionsId 订单促销Id
  30. */
  31. PromotionsVo getOrderPromotionsById(Integer orderPromotionsId);
  32. /**
  33. * 获取子订单订单商品
  34. * @param shopOrderId 子订单Id
  35. */
  36. List<OrderProductVo> getShopOrderProduct(Integer shopOrderId);
  37. /**
  38. * 支付记录(收款记录)
  39. * @param orderId 订单Id
  40. */
  41. List<DiscernReceiptVo> getDiscernReceipt(Integer orderId);
  42. /**
  43. * 获取返佣款
  44. * @param shopOrderId 子订单Id
  45. */
  46. Double getRebateAmountByShopOrder(Integer shopOrderId);
  47. /**
  48. * 是否可以走线上支付
  49. * @param orderId 订单Id
  50. */
  51. int countOfflinePayment(Integer orderId);
  52. /**
  53. * 付供应商费用列表
  54. * @param orderId 订单Id
  55. */
  56. List<Double> getShouldPayShopAmountList(Integer orderId);
  57. }