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.GovernmentExtranetAccessMapper;
import com.zyc.system.domain.GovernmentExtranetAccess;
import com.zyc.system.service.IGovernmentExtranetAccessService;

/**
 * 政务外网接入Service业务层处理
 * 
 * @author zyc
 * @date 2024-12-26
 */
@Service
public class GovernmentExtranetAccessServiceImpl implements IGovernmentExtranetAccessService 
{
    @Autowired
    private GovernmentExtranetAccessMapper governmentExtranetAccessMapper;

    /**
     * 查询政务外网接入
     * 
     * @param id 政务外网接入主键
     * @return 政务外网接入
     */
    @Override
    public GovernmentExtranetAccess selectGovernmentExtranetAccessById(Integer id)
    {
        return governmentExtranetAccessMapper.selectGovernmentExtranetAccessById(id);
    }

    /**
     * 查询政务外网接入列表
     * 
     * @param governmentExtranetAccess 政务外网接入
     * @return 政务外网接入
     */
    @Override
    public List<GovernmentExtranetAccess> selectGovernmentExtranetAccessList(GovernmentExtranetAccess governmentExtranetAccess)
    {
        return governmentExtranetAccessMapper.selectGovernmentExtranetAccessList(governmentExtranetAccess);
    }

    /**
     * 新增政务外网接入
     * 
     * @param governmentExtranetAccess 政务外网接入
     * @return 结果
     */
    @Override
    public int insertGovernmentExtranetAccess(GovernmentExtranetAccess governmentExtranetAccess)
    {
        return governmentExtranetAccessMapper.insertGovernmentExtranetAccess(governmentExtranetAccess);
    }

    /**
     * 修改政务外网接入
     * 
     * @param governmentExtranetAccess 政务外网接入
     * @return 结果
     */
    @Override
    public int updateGovernmentExtranetAccess(GovernmentExtranetAccess governmentExtranetAccess)
    {
        return governmentExtranetAccessMapper.updateGovernmentExtranetAccess(governmentExtranetAccess);
    }

    /**
     * 批量删除政务外网接入
     * 
     * @param ids 需要删除的政务外网接入主键
     * @return 结果
     */
    @Override
    public int deleteGovernmentExtranetAccessByIds(Integer[] ids)
    {
        return governmentExtranetAccessMapper.deleteGovernmentExtranetAccessByIds(ids);
    }

    /**
     * 删除政务外网接入信息
     * 
     * @param id 政务外网接入主键
     * @return 结果
     */
    @Override
    public int deleteGovernmentExtranetAccessById(Integer id)
    {
        return governmentExtranetAccessMapper.deleteGovernmentExtranetAccessById(id);
    }
}
