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.TTsFtplanTmplContentMapper;
import com.ruoyi.project.training.bccnew.domain.TTsFtplanTmplContent;
import com.ruoyi.project.training.bccnew.service.ITTsFtplanTmplContentService;

/**
 * 芳烃培训模版内容Service业务层处理
 *
 * @author ssy
 * @date 2024-07-19
 */
@Service
public class TTsFtplanTmplContentServiceImpl implements ITTsFtplanTmplContentService
{
    @Autowired
    private TTsFtplanTmplContentMapper tTsFtplanTmplContentMapper;

    /**
     * 查询芳烃培训模版内容
     *
     * @param id 芳烃培训模版内容ID
     * @return 芳烃培训模版内容
     */
    @Override
    public TTsFtplanTmplContent selectTTsFtplanTmplContentById(Long id)
    {
        return tTsFtplanTmplContentMapper.selectTTsFtplanTmplContentById(id);
    }

    /**
     * 查询芳烃培训模版内容列表
     *
     * @param tTsFtplanTmplContent 芳烃培训模版内容
     * @return 芳烃培训模版内容
     */
    @Override
    public List<TTsFtplanTmplContent> selectTTsFtplanTmplContentList(TTsFtplanTmplContent tTsFtplanTmplContent)
    {
        return tTsFtplanTmplContentMapper.selectTTsFtplanTmplContentList(tTsFtplanTmplContent);
    }

    /**
     * 新增芳烃培训模版内容
     *
     * @param tTsFtplanTmplContent 芳烃培训模版内容
     * @return 结果
     */
    @Override
    public int insertTTsFtplanTmplContent(TTsFtplanTmplContent tTsFtplanTmplContent)
    {
        return tTsFtplanTmplContentMapper.insertTTsFtplanTmplContent(tTsFtplanTmplContent);
    }

    /**
     * 修改芳烃培训模版内容
     *
     * @param tTsFtplanTmplContent 芳烃培训模版内容
     * @return 结果
     */
    @Override
    public int updateTTsFtplanTmplContent(TTsFtplanTmplContent tTsFtplanTmplContent)
    {
        return tTsFtplanTmplContentMapper.updateTTsFtplanTmplContent(tTsFtplanTmplContent);
    }

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

    /**
     * 删除芳烃培训模版内容信息
     *
     * @param id 芳烃培训模版内容ID
     * @return 结果
     */
    @Override
    public int deleteTTsFtplanTmplContentById(Long id)
    {
        return tTsFtplanTmplContentMapper.deleteTTsFtplanTmplContentById(id);
    }
}
