package com.ruoyi.dezhi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dezhi.mapper.BBusiDezhiVideoPackageTeacherMapper;
import com.ruoyi.dezhi.domain.BBusiDezhiVideoPackageTeacher;
import com.ruoyi.dezhi.service.IBBusiDezhiVideoPackageTeacherService;

/**
 * 视频包老师Service业务层处理
 * 
 * @author mingxue
 * @date 2021-07-22
 */
@Service
public class BBusiDezhiVideoPackageTeacherServiceImpl implements IBBusiDezhiVideoPackageTeacherService 
{
    @Autowired
    private BBusiDezhiVideoPackageTeacherMapper bBusiDezhiVideoPackageTeacherMapper;

    /**
     * 查询视频包老师
     * 
     * @param id 视频包老师ID
     * @return 视频包老师
     */
    @Override
    public BBusiDezhiVideoPackageTeacher selectBBusiDezhiVideoPackageTeacherById(Long id)
    {
        return bBusiDezhiVideoPackageTeacherMapper.selectBBusiDezhiVideoPackageTeacherById(id);
    }

    /**
     * 查询视频包老师列表
     * 
     * @param bBusiDezhiVideoPackageTeacher 视频包老师
     * @return 视频包老师
     */
    @Override
    public List<BBusiDezhiVideoPackageTeacher> selectBBusiDezhiVideoPackageTeacherList(BBusiDezhiVideoPackageTeacher bBusiDezhiVideoPackageTeacher)
    {
        return bBusiDezhiVideoPackageTeacherMapper.selectBBusiDezhiVideoPackageTeacherList(bBusiDezhiVideoPackageTeacher);
    }

    /**
     * 新增视频包老师
     * 
     * @param bBusiDezhiVideoPackageTeacher 视频包老师
     * @return 结果
     */
    @Override
    public int insertBBusiDezhiVideoPackageTeacher(BBusiDezhiVideoPackageTeacher bBusiDezhiVideoPackageTeacher)
    {
        return bBusiDezhiVideoPackageTeacherMapper.insertBBusiDezhiVideoPackageTeacher(bBusiDezhiVideoPackageTeacher);
    }

    /**
     * 修改视频包老师
     * 
     * @param bBusiDezhiVideoPackageTeacher 视频包老师
     * @return 结果
     */
    @Override
    public int updateBBusiDezhiVideoPackageTeacher(BBusiDezhiVideoPackageTeacher bBusiDezhiVideoPackageTeacher)
    {
        return bBusiDezhiVideoPackageTeacherMapper.updateBBusiDezhiVideoPackageTeacher(bBusiDezhiVideoPackageTeacher);
    }

    /**
     * 批量删除视频包老师
     * 
     * @param ids 需要删除的视频包老师ID
     * @return 结果
     */
    @Override
    public int deleteBBusiDezhiVideoPackageTeacherByIds(Long[] ids)
    {
        return bBusiDezhiVideoPackageTeacherMapper.deleteBBusiDezhiVideoPackageTeacherByIds(ids);
    }

    /**
     * 删除视频包老师信息
     * 
     * @param id 视频包老师ID
     * @return 结果
     */
    @Override
    public int deleteBBusiDezhiVideoPackageTeacherById(Long id)
    {
        return bBusiDezhiVideoPackageTeacherMapper.deleteBBusiDezhiVideoPackageTeacherById(id);
    }
}
