package cn.pluss.platform.merchantOrderSplit;

import cn.pluss.platform.entity.MerchantOrder;
import cn.pluss.platform.entity.MerchantOrderSplit;
import cn.pluss.platform.entity.MerchantOrderSplitDetail;
import cn.pluss.platform.vo.SplitOrderVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 订单分账信息表 服务类
 * </p>
 *
 * @author bzg
 * @since 2021-11-26
 */
public interface MerchantOrderSplitService extends IService<MerchantOrderSplit> {

    void checkMerchantOrderSplit(MerchantOrder order);

    MerchantOrderSplit getByMercOrderNo(String mercOrderNo);

    /**
     * 根据订单号查询分账订单
     * @param ordNo
     * @return
     */
    MerchantOrderSplit getByOrderNumber(String ordNo);

    /**
     * 组装返回参数
     * @param order
     * @param splitDetailList
     * @return
     */
    SplitOrderVo resultChannelParam(MerchantOrderSplit order, List<MerchantOrderSplitDetail> splitDetailList);
}
