package com.gxwebsoft.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.shop.entity.ShopOrder;
import com.gxwebsoft.shop.param.ShopOrderParam;

import java.util.List;

/**
 * 订单Service
 *
 * @author 科技小王子
 * @since 2024-09-10 21:05:07
 */
public interface ShopOrderService extends IService<ShopOrder> {

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<ShopOrder>
     */
    PageResult<ShopOrder> pageRel(ShopOrderParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<ShopOrder>
     */
    List<ShopOrder> listRel(ShopOrderParam param);

    /**
     * 根据id查询
     *
     * @param orderId 订单号
     * @return ShopOrder
     */
    ShopOrder getByIdRel(Integer orderId);

    void onPaySuccess(ShopOrder order);
}
