package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.mapper.DistanceMultiplierMapper;
import com.ruoyi.system.domain.DistanceMultiplier;
import com.ruoyi.system.service.IDistanceMultiplierService;

/**
 * DistanceMultiplierService业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-23
 */
@Service
public class DistanceMultiplierServiceImpl extends ServiceImpl<BaseMapper<DistanceMultiplier>,DistanceMultiplier> implements IDistanceMultiplierService
{
    @Autowired
    private DistanceMultiplierMapper distanceMultiplierMapper;

    /**
     * 查询DistanceMultiplier
     * 
     * @param id DistanceMultiplier主键
     * @return DistanceMultiplier
     */
    @Override
    public DistanceMultiplier selectDistanceMultiplierById(Long id)
    {
        return distanceMultiplierMapper.selectDistanceMultiplierById(id);
    }

    /**
     * 查询DistanceMultiplier列表
     * 
     * @param distanceMultiplier DistanceMultiplier
     * @return DistanceMultiplier
     */
    @Override
    public List<DistanceMultiplier> selectDistanceMultiplierList(DistanceMultiplier distanceMultiplier)
    {
        return distanceMultiplierMapper.selectDistanceMultiplierList(distanceMultiplier);
    }

    /**
     * 新增DistanceMultiplier
     * 
     * @param distanceMultiplier DistanceMultiplier
     * @return 结果
     */
    @Override
    public int insertDistanceMultiplier(DistanceMultiplier distanceMultiplier)
    {
        return distanceMultiplierMapper.insertDistanceMultiplier(distanceMultiplier);
    }

    /**
     * 修改DistanceMultiplier
     * 
     * @param distanceMultiplier DistanceMultiplier
     * @return 结果
     */
    @Override
    public int updateDistanceMultiplier(DistanceMultiplier distanceMultiplier)
    {
        return distanceMultiplierMapper.updateDistanceMultiplier(distanceMultiplier);
    }

    /**
     * 批量删除DistanceMultiplier
     * 
     * @param ids 需要删除的DistanceMultiplier主键
     * @return 结果
     */
    @Override
    public int deleteDistanceMultiplierByIds(Long[] ids)
    {
        return distanceMultiplierMapper.deleteDistanceMultiplierByIds(ids);
    }

    /**
     * 删除DistanceMultiplier信息
     * 
     * @param id DistanceMultiplier主键
     * @return 结果
     */
    @Override
    public int deleteDistanceMultiplierById(Long id)
    {
        return distanceMultiplierMapper.deleteDistanceMultiplierById(id);
    }
}
