package com.ruoyi.project.training.bccnew.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.training.bccnew.mapper.TTsYsplanTmplContentMapper;
import com.ruoyi.project.training.bccnew.domain.TTsYsplanTmplContent;
import com.ruoyi.project.training.bccnew.service.ITTsYsplanTmplContentService;

/**
 * 转岗培训模版内容Service业务层处理
 *
 * @author ssy
 * @date 2024-07-19
 */
@Service
public class TTsYsplanTmplContentServiceImpl implements ITTsYsplanTmplContentService
{
    @Autowired
    private TTsYsplanTmplContentMapper tTsYsplanTmplContentMapper;

    /**
     * 查询转岗培训模版内容
     *
     * @param id 转岗培训模版内容ID
     * @return 转岗培训模版内容
     */
    @Override
    public TTsYsplanTmplContent selectTTsYsplanTmplContentById(Long id)
    {
        return tTsYsplanTmplContentMapper.selectTTsYsplanTmplContentById(id);
    }

    /**
     * 查询转岗培训模版内容列表
     *
     * @param tTsYsplanTmplContent 转岗培训模版内容
     * @return 转岗培训模版内容
     */
    @Override
    public List<TTsYsplanTmplContent> selectTTsYsplanTmplContentList(TTsYsplanTmplContent tTsYsplanTmplContent)
    {
        return tTsYsplanTmplContentMapper.selectTTsYsplanTmplContentList(tTsYsplanTmplContent);
    }

    /**
     * 新增转岗培训模版内容
     *
     * @param tTsYsplanTmplContent 转岗培训模版内容
     * @return 结果
     */
    @Override
    public int insertTTsYsplanTmplContent(TTsYsplanTmplContent tTsYsplanTmplContent)
    {
        return tTsYsplanTmplContentMapper.insertTTsYsplanTmplContent(tTsYsplanTmplContent);
    }

    /**
     * 修改转岗培训模版内容
     *
     * @param tTsYsplanTmplContent 转岗培训模版内容
     * @return 结果
     */
    @Override
    public int updateTTsYsplanTmplContent(TTsYsplanTmplContent tTsYsplanTmplContent)
    {
        return tTsYsplanTmplContentMapper.updateTTsYsplanTmplContent(tTsYsplanTmplContent);
    }

    /**
     * 批量删除转岗培训模版内容
     *
     * @param ids 需要删除的转岗培训模版内容ID
     * @return 结果
     */
    @Override
    public int deleteTTsYsplanTmplContentByIds(Long[] ids)
    {
        return tTsYsplanTmplContentMapper.deleteTTsYsplanTmplContentByIds(ids);
    }

    /**
     * 删除转岗培训模版内容信息
     *
     * @param id 转岗培训模版内容ID
     * @return 结果
     */
    @Override
    public int deleteTTsYsplanTmplContentById(Long id)
    {
        return tTsYsplanTmplContentMapper.deleteTTsYsplanTmplContentById(id);
    }
}
