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.RelationalDatabaseServicesMapper;
import com.zyc.system.domain.RelationalDatabaseServices;
import com.zyc.system.service.IRelationalDatabaseServicesService;

/**
 * 关系型数据库服务Service业务层处理
 * 
 * @author zyc
 * @date 2024-12-26
 */
@Service
public class RelationalDatabaseServicesServiceImpl implements IRelationalDatabaseServicesService 
{
    @Autowired
    private RelationalDatabaseServicesMapper relationalDatabaseServicesMapper;

    /**
     * 查询关系型数据库服务
     * 
     * @param id 关系型数据库服务主键
     * @return 关系型数据库服务
     */
    @Override
    public RelationalDatabaseServices selectRelationalDatabaseServicesById(Integer id)
    {
        return relationalDatabaseServicesMapper.selectRelationalDatabaseServicesById(id);
    }

    /**
     * 查询关系型数据库服务列表
     * 
     * @param relationalDatabaseServices 关系型数据库服务
     * @return 关系型数据库服务
     */
    @Override
    public List<RelationalDatabaseServices> selectRelationalDatabaseServicesList(RelationalDatabaseServices relationalDatabaseServices)
    {
        return relationalDatabaseServicesMapper.selectRelationalDatabaseServicesList(relationalDatabaseServices);
    }

    /**
     * 新增关系型数据库服务
     * 
     * @param relationalDatabaseServices 关系型数据库服务
     * @return 结果
     */
    @Override
    public int insertRelationalDatabaseServices(RelationalDatabaseServices relationalDatabaseServices)
    {
        return relationalDatabaseServicesMapper.insertRelationalDatabaseServices(relationalDatabaseServices);
    }

    /**
     * 修改关系型数据库服务
     * 
     * @param relationalDatabaseServices 关系型数据库服务
     * @return 结果
     */
    @Override
    public int updateRelationalDatabaseServices(RelationalDatabaseServices relationalDatabaseServices)
    {
        return relationalDatabaseServicesMapper.updateRelationalDatabaseServices(relationalDatabaseServices);
    }

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

    /**
     * 删除关系型数据库服务信息
     * 
     * @param id 关系型数据库服务主键
     * @return 结果
     */
    @Override
    public int deleteRelationalDatabaseServicesById(Integer id)
    {
        return relationalDatabaseServicesMapper.deleteRelationalDatabaseServicesById(id);
    }
}
