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.BBusiWishUniversitiesImageMapper;
import com.ruoyi.syzy.domain.BBusiWishUniversitiesImage;
import com.ruoyi.syzy.service.IBBusiWishUniversitiesImageService;

/**
 * 学校介绍vr/视频/图片Service业务层处理
 * 
 * @author mingxue
 * @date 2022-06-23
 */
@Service
public class BBusiWishUniversitiesImageServiceImpl implements IBBusiWishUniversitiesImageService 
{
    @Autowired
    private BBusiWishUniversitiesImageMapper bBusiWishUniversitiesImageMapper;

    /**
     * 查询学校介绍vr/视频/图片
     * 
     * @param id 学校介绍vr/视频/图片ID
     * @return 学校介绍vr/视频/图片
     */
    @Override
    public BBusiWishUniversitiesImage selectBBusiWishUniversitiesImageById(String id)
    {
        return bBusiWishUniversitiesImageMapper.selectBBusiWishUniversitiesImageById(id);
    }

    /**
     * 查询学校介绍vr/视频/图片列表
     * 
     * @param bBusiWishUniversitiesImage 学校介绍vr/视频/图片
     * @return 学校介绍vr/视频/图片
     */
    @Override
    public List<BBusiWishUniversitiesImage> selectBBusiWishUniversitiesImageList(BBusiWishUniversitiesImage bBusiWishUniversitiesImage)
    {
        return bBusiWishUniversitiesImageMapper.selectBBusiWishUniversitiesImageList(bBusiWishUniversitiesImage);
    }

    /**
     * 新增学校介绍vr/视频/图片
     * 
     * @param bBusiWishUniversitiesImage 学校介绍vr/视频/图片
     * @return 结果
     */
    @Override
    public int insertBBusiWishUniversitiesImage(BBusiWishUniversitiesImage bBusiWishUniversitiesImage)
    {
        bBusiWishUniversitiesImage.setCreateTime(DateUtils.getNowDate());
        return bBusiWishUniversitiesImageMapper.insertBBusiWishUniversitiesImage(bBusiWishUniversitiesImage);
    }

    /**
     * 修改学校介绍vr/视频/图片
     * 
     * @param bBusiWishUniversitiesImage 学校介绍vr/视频/图片
     * @return 结果
     */
    @Override
    public int updateBBusiWishUniversitiesImage(BBusiWishUniversitiesImage bBusiWishUniversitiesImage)
    {
        bBusiWishUniversitiesImage.setUpdateTime(DateUtils.getNowDate());
        return bBusiWishUniversitiesImageMapper.updateBBusiWishUniversitiesImage(bBusiWishUniversitiesImage);
    }

    /**
     * 批量删除学校介绍vr/视频/图片
     * 
     * @param ids 需要删除的学校介绍vr/视频/图片ID
     * @return 结果
     */
    @Override
    public int deleteBBusiWishUniversitiesImageByIds(String[] ids)
    {
        return bBusiWishUniversitiesImageMapper.deleteBBusiWishUniversitiesImageByIds(ids);
    }

    /**
     * 删除学校介绍vr/视频/图片信息
     * 
     * @param id 学校介绍vr/视频/图片ID
     * @return 结果
     */
    @Override
    public int deleteBBusiWishUniversitiesImageById(String id)
    {
        return bBusiWishUniversitiesImageMapper.deleteBBusiWishUniversitiesImageById(id);
    }
}
