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.DamengDatabaseServicesMapper;
import com.zyc.system.domain.DamengDatabaseServices;
import com.zyc.system.service.IDamengDatabaseServicesService;

/**
 * 达梦数据库服务Service业务层处理
 * 
 * @author zyc
 * @date 2024-12-26
 */
@Service
public class DamengDatabaseServicesServiceImpl implements IDamengDatabaseServicesService 
{
    @Autowired
    private DamengDatabaseServicesMapper damengDatabaseServicesMapper;

    /**
     * 查询达梦数据库服务
     * 
     * @param id 达梦数据库服务主键
     * @return 达梦数据库服务
     */
    @Override
    public DamengDatabaseServices selectDamengDatabaseServicesById(Integer id)
    {
        return damengDatabaseServicesMapper.selectDamengDatabaseServicesById(id);
    }

    /**
     * 查询达梦数据库服务列表
     * 
     * @param damengDatabaseServices 达梦数据库服务
     * @return 达梦数据库服务
     */
    @Override
    public List<DamengDatabaseServices> selectDamengDatabaseServicesList(DamengDatabaseServices damengDatabaseServices)
    {
        return damengDatabaseServicesMapper.selectDamengDatabaseServicesList(damengDatabaseServices);
    }

    /**
     * 新增达梦数据库服务
     * 
     * @param damengDatabaseServices 达梦数据库服务
     * @return 结果
     */
    @Override
    public int insertDamengDatabaseServices(DamengDatabaseServices damengDatabaseServices)
    {
        return damengDatabaseServicesMapper.insertDamengDatabaseServices(damengDatabaseServices);
    }

    /**
     * 修改达梦数据库服务
     * 
     * @param damengDatabaseServices 达梦数据库服务
     * @return 结果
     */
    @Override
    public int updateDamengDatabaseServices(DamengDatabaseServices damengDatabaseServices)
    {
        return damengDatabaseServicesMapper.updateDamengDatabaseServices(damengDatabaseServices);
    }

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

    /**
     * 删除达梦数据库服务信息
     * 
     * @param id 达梦数据库服务主键
     * @return 结果
     */
    @Override
    public int deleteDamengDatabaseServicesById(Integer id)
    {
        return damengDatabaseServicesMapper.deleteDamengDatabaseServicesById(id);
    }
}
