package cn.pluss.platform.merchantOrderSplit.impl;

import cn.pluss.platform.entity.MerchantOrderSplitRefund;
import cn.pluss.platform.mapper.MerchantOrderSplitRefundMapper;
import cn.pluss.platform.merchantOrderSplit.MerchantOrderSplitRefundService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 分账订单退款详情表 服务实现类
 * </p>
 *
 * @author bzg
 * @since 2022-07-04
 */
@Service
public class MerchantOrderSplitRefundServiceImpl extends ServiceImpl<MerchantOrderSplitRefundMapper, MerchantOrderSplitRefund> implements MerchantOrderSplitRefundService {

    @Override
    public MerchantOrderSplitRefund getByMercRefunNo(String mercRefundNo) {
        QueryWrapper<MerchantOrderSplitRefund> queryWrapper = new QueryWrapper<MerchantOrderSplitRefund>()
                .eq("mercRefundNo",mercRefundNo);
        return baseMapper.selectOne(queryWrapper);
    }
}
