package cn.pluss.platform.mapper;

import cn.pluss.platform.entity.MerchantOrderSplit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 订单分账信息表 Mapper 接口
 * </p>
 *
 * @author bzg
 * @since 2021-11-26
 */
public interface MerchantOrderSplitMapper extends BaseMapper<MerchantOrderSplit> {

    @Select("SELECT * from tb_pluss_merchant_order_split where mercOrderNo = #{mercOrderNo} limit 1")
    MerchantOrderSplit getByMercOrderNo(String mercOrderNo);

    @Select("SELECT * from tb_pluss_merchant_order_split where orderNumber = #{orderNumber} limit 1")
    MerchantOrderSplit getByOrderNumber(String orderNumber);
}
