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.ApmApplicationPerformanceManagementServicesMapper;
import com.zyc.system.domain.ApmApplicationPerformanceManagementServices;
import com.zyc.system.service.IApmApplicationPerformanceManagementServicesService;

/**
 * APM应用性能管理服务Service业务层处理
 * 
 * @author zyc
 * @date 2024-12-26
 */
@Service
public class ApmApplicationPerformanceManagementServicesServiceImpl implements IApmApplicationPerformanceManagementServicesService 
{
    @Autowired
    private ApmApplicationPerformanceManagementServicesMapper apmApplicationPerformanceManagementServicesMapper;

    /**
     * 查询APM应用性能管理服务
     * 
     * @param id APM应用性能管理服务主键
     * @return APM应用性能管理服务
     */
    @Override
    public ApmApplicationPerformanceManagementServices selectApmApplicationPerformanceManagementServicesById(Integer id)
    {
        return apmApplicationPerformanceManagementServicesMapper.selectApmApplicationPerformanceManagementServicesById(id);
    }

    /**
     * 查询APM应用性能管理服务列表
     * 
     * @param apmApplicationPerformanceManagementServices APM应用性能管理服务
     * @return APM应用性能管理服务
     */
    @Override
    public List<ApmApplicationPerformanceManagementServices> selectApmApplicationPerformanceManagementServicesList(ApmApplicationPerformanceManagementServices apmApplicationPerformanceManagementServices)
    {
        return apmApplicationPerformanceManagementServicesMapper.selectApmApplicationPerformanceManagementServicesList(apmApplicationPerformanceManagementServices);
    }

    /**
     * 新增APM应用性能管理服务
     * 
     * @param apmApplicationPerformanceManagementServices APM应用性能管理服务
     * @return 结果
     */
    @Override
    public int insertApmApplicationPerformanceManagementServices(ApmApplicationPerformanceManagementServices apmApplicationPerformanceManagementServices)
    {
        return apmApplicationPerformanceManagementServicesMapper.insertApmApplicationPerformanceManagementServices(apmApplicationPerformanceManagementServices);
    }

    /**
     * 修改APM应用性能管理服务
     * 
     * @param apmApplicationPerformanceManagementServices APM应用性能管理服务
     * @return 结果
     */
    @Override
    public int updateApmApplicationPerformanceManagementServices(ApmApplicationPerformanceManagementServices apmApplicationPerformanceManagementServices)
    {
        return apmApplicationPerformanceManagementServicesMapper.updateApmApplicationPerformanceManagementServices(apmApplicationPerformanceManagementServices);
    }

    /**
     * 批量删除APM应用性能管理服务
     * 
     * @param ids 需要删除的APM应用性能管理服务主键
     * @return 结果
     */
    @Override
    public int deleteApmApplicationPerformanceManagementServicesByIds(Integer[] ids)
    {
        return apmApplicationPerformanceManagementServicesMapper.deleteApmApplicationPerformanceManagementServicesByIds(ids);
    }

    /**
     * 删除APM应用性能管理服务信息
     * 
     * @param id APM应用性能管理服务主键
     * @return 结果
     */
    @Override
    public int deleteApmApplicationPerformanceManagementServicesById(Integer id)
    {
        return apmApplicationPerformanceManagementServicesMapper.deleteApmApplicationPerformanceManagementServicesById(id);
    }
}
