package com.zyc.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zyc.system.mapper.MassiveDatabaseServicesMapper;
import com.zyc.system.domain.MassiveDatabaseServices;
import com.zyc.system.service.IMassiveDatabaseServicesService;

/**
 * 海量数据库服务Service业务层处理
 * 
 * @author zyc
 * @date 2024-12-26
 */
@Service
public class MassiveDatabaseServicesServiceImpl implements IMassiveDatabaseServicesService 
{
    @Autowired
    private MassiveDatabaseServicesMapper massiveDatabaseServicesMapper;

    /**
     * 查询海量数据库服务
     * 
     * @param id 海量数据库服务主键
     * @return 海量数据库服务
     */
    @Override
    public MassiveDatabaseServices selectMassiveDatabaseServicesById(Integer id)
    {
        return massiveDatabaseServicesMapper.selectMassiveDatabaseServicesById(id);
    }

    /**
     * 查询海量数据库服务列表
     * 
     * @param massiveDatabaseServices 海量数据库服务
     * @return 海量数据库服务
     */
    @Override
    public List<MassiveDatabaseServices> selectMassiveDatabaseServicesList(MassiveDatabaseServices massiveDatabaseServices)
    {
        return massiveDatabaseServicesMapper.selectMassiveDatabaseServicesList(massiveDatabaseServices);
    }

    /**
     * 新增海量数据库服务
     * 
     * @param massiveDatabaseServices 海量数据库服务
     * @return 结果
     */
    @Override
    public int insertMassiveDatabaseServices(MassiveDatabaseServices massiveDatabaseServices)
    {
        return massiveDatabaseServicesMapper.insertMassiveDatabaseServices(massiveDatabaseServices);
    }

    /**
     * 修改海量数据库服务
     * 
     * @param massiveDatabaseServices 海量数据库服务
     * @return 结果
     */
    @Override
    public int updateMassiveDatabaseServices(MassiveDatabaseServices massiveDatabaseServices)
    {
        return massiveDatabaseServicesMapper.updateMassiveDatabaseServices(massiveDatabaseServices);
    }

    /**
     * 批量删除海量数据库服务
     * 
     * @param ids 需要删除的海量数据库服务主键
     * @return 结果
     */
    @Override
    public int deleteMassiveDatabaseServicesByIds(Integer[] ids)
    {
        return massiveDatabaseServicesMapper.deleteMassiveDatabaseServicesByIds(ids);
    }

    /**
     * 删除海量数据库服务信息
     * 
     * @param id 海量数据库服务主键
     * @return 结果
     */
    @Override
    public int deleteMassiveDatabaseServicesById(Integer id)
    {
        return massiveDatabaseServicesMapper.deleteMassiveDatabaseServicesById(id);
    }
}
