package cn.pluss.platform.mapper;

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

/**
 * <p>
 * 分账明细详情表 Mapper 接口
 * </p>
 *
 * @author bzg
 * @since 2022-07-01
 */
public interface MerchantOrderSplitDetailMapper extends BaseMapper<MerchantOrderSplitDetail> {

    @Select("SELECT * FROM tb_pluss_merchant_order_split_detail WHERE  orderNumber = #{orderNumber} and merchantCode = #{merchantCode} ")
    MerchantOrderSplitDetail getByOrderNumberAndMerchantCode(@Param("orderNumber") String orderNumber, @Param("merchantCode") String merchantCode);
}
