package com.ruoyi.mall.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mall.mapper.MallAcceptRateSettingMapper;
import com.ruoyi.mall.domain.MallAcceptRateSetting;
import com.ruoyi.mall.service.IMallAcceptRateSettingService;

/**
 * 录取率范围设定Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-26
 */
@Service
public class MallAcceptRateSettingServiceImpl implements IMallAcceptRateSettingService 
{
    @Autowired
    private MallAcceptRateSettingMapper mallAcceptRateSettingMapper;

    /**
     * 查询录取率范围设定
     * 
     * @param rateMatchId 录取率范围设定主键
     * @return 录取率范围设定
     */
    @Override
    public MallAcceptRateSetting selectMallAcceptRateSettingByRateMatchId(Long rateMatchId)
    {
        return mallAcceptRateSettingMapper.selectMallAcceptRateSettingByRateMatchId(rateMatchId);
    }

    /**
     * 查询录取率范围设定列表
     * 
     * @param mallAcceptRateSetting 录取率范围设定
     * @return 录取率范围设定
     */
    @Override
    public List<MallAcceptRateSetting> selectMallAcceptRateSettingList(MallAcceptRateSetting mallAcceptRateSetting)
    {
        return mallAcceptRateSettingMapper.selectMallAcceptRateSettingList(mallAcceptRateSetting);
    }

    /**
     * 新增录取率范围设定
     * 
     * @param mallAcceptRateSetting 录取率范围设定
     * @return 结果
     */
    @Override
    public int insertMallAcceptRateSetting(MallAcceptRateSetting mallAcceptRateSetting)
    {
        return mallAcceptRateSettingMapper.insertMallAcceptRateSetting(mallAcceptRateSetting);
    }

    /**
     * 修改录取率范围设定
     * 
     * @param mallAcceptRateSetting 录取率范围设定
     * @return 结果
     */
    @Override
    public int updateMallAcceptRateSetting(MallAcceptRateSetting mallAcceptRateSetting)
    {
        return mallAcceptRateSettingMapper.updateMallAcceptRateSetting(mallAcceptRateSetting);
    }

    /**
     * 批量删除录取率范围设定
     * 
     * @param rateMatchIds 需要删除的录取率范围设定主键
     * @return 结果
     */
    @Override
    public int deleteMallAcceptRateSettingByRateMatchIds(Long[] rateMatchIds)
    {
        return mallAcceptRateSettingMapper.deleteMallAcceptRateSettingByRateMatchIds(rateMatchIds);
    }

    /**
     * 删除录取率范围设定信息
     * 
     * @param rateMatchId 录取率范围设定主键
     * @return 结果
     */
    @Override
    public int deleteMallAcceptRateSettingByRateMatchId(Long rateMatchId)
    {
        return mallAcceptRateSettingMapper.deleteMallAcceptRateSettingByRateMatchId(rateMatchId);
    }
}
