package com.ruoyi.syzy.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.syzy.mapper.BBusiWishUniversitiesEnrollBrochureMapper;
import com.ruoyi.syzy.domain.BBusiWishUniversitiesEnrollBrochure;
import com.ruoyi.syzy.service.IBBusiWishUniversitiesEnrollBrochureService;

/**
 * 院校招生简章Service业务层处理
 * 
 * @author voluntary
 * @date 2024-09-27
 */
@Service
public class BBusiWishUniversitiesEnrollBrochureServiceImpl implements IBBusiWishUniversitiesEnrollBrochureService 
{
    @Autowired
    private BBusiWishUniversitiesEnrollBrochureMapper bBusiWishUniversitiesEnrollBrochureMapper;

    /**
     * 查询院校招生简章
     * 
     * @param id 院校招生简章主键
     * @return 院校招生简章
     */
    @Override
    public BBusiWishUniversitiesEnrollBrochure selectBBusiWishUniversitiesEnrollBrochureById(Long id)
    {
        return bBusiWishUniversitiesEnrollBrochureMapper.selectBBusiWishUniversitiesEnrollBrochureById(id);
    }

    /**
     * 查询院校招生简章列表
     * 
     * @param bBusiWishUniversitiesEnrollBrochure 院校招生简章
     * @return 院校招生简章
     */
    @Override
    public List<BBusiWishUniversitiesEnrollBrochure> selectBBusiWishUniversitiesEnrollBrochureList(BBusiWishUniversitiesEnrollBrochure bBusiWishUniversitiesEnrollBrochure)
    {
        return bBusiWishUniversitiesEnrollBrochureMapper.selectBBusiWishUniversitiesEnrollBrochureList(bBusiWishUniversitiesEnrollBrochure);
    }

    /**
     * 新增院校招生简章
     * 
     * @param bBusiWishUniversitiesEnrollBrochure 院校招生简章
     * @return 结果
     */
    @Override
    public int insertBBusiWishUniversitiesEnrollBrochure(BBusiWishUniversitiesEnrollBrochure bBusiWishUniversitiesEnrollBrochure)
    {
        bBusiWishUniversitiesEnrollBrochure.setCreateTime(DateUtils.getNowDate());
        return bBusiWishUniversitiesEnrollBrochureMapper.insertBBusiWishUniversitiesEnrollBrochure(bBusiWishUniversitiesEnrollBrochure);
    }

    /**
     * 修改院校招生简章
     * 
     * @param bBusiWishUniversitiesEnrollBrochure 院校招生简章
     * @return 结果
     */
    @Override
    public int updateBBusiWishUniversitiesEnrollBrochure(BBusiWishUniversitiesEnrollBrochure bBusiWishUniversitiesEnrollBrochure)
    {
        bBusiWishUniversitiesEnrollBrochure.setUpdateTime(DateUtils.getNowDate());
        return bBusiWishUniversitiesEnrollBrochureMapper.updateBBusiWishUniversitiesEnrollBrochure(bBusiWishUniversitiesEnrollBrochure);
    }

    /**
     * 批量删除院校招生简章
     * 
     * @param ids 需要删除的院校招生简章主键
     * @return 结果
     */
    @Override
    public int deleteBBusiWishUniversitiesEnrollBrochureByIds(Long[] ids)
    {
        return bBusiWishUniversitiesEnrollBrochureMapper.deleteBBusiWishUniversitiesEnrollBrochureByIds(ids);
    }

    /**
     * 删除院校招生简章信息
     * 
     * @param id 院校招生简章主键
     * @return 结果
     */
    @Override
    public int deleteBBusiWishUniversitiesEnrollBrochureById(Long id)
    {
        return bBusiWishUniversitiesEnrollBrochureMapper.deleteBBusiWishUniversitiesEnrollBrochureById(id);
    }
}
