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.TTsLjplanTmplContentMapper;
import com.ruoyi.project.training.bccnew.domain.TTsLjplanTmplContent;
import com.ruoyi.project.training.bccnew.service.ITTsLjplanTmplContentService;

/**
 * 裂解培训模版内容Service业务层处理
 *
 * @author ssy
 * @date 2024-07-19
 */
@Service
public class TTsLjplanTmplContentServiceImpl implements ITTsLjplanTmplContentService
{
    @Autowired
    private TTsLjplanTmplContentMapper tTsLjplanTmplContentMapper;

    /**
     * 查询裂解培训模版内容
     *
     * @param id 裂解培训模版内容ID
     * @return 裂解培训模版内容
     */
    @Override
    public TTsLjplanTmplContent selectTTsLjplanTmplContentById(Long id)
    {
        return tTsLjplanTmplContentMapper.selectTTsLjplanTmplContentById(id);
    }

    /**
     * 查询裂解培训模版内容列表
     *
     * @param tTsLjplanTmplContent 裂解培训模版内容
     * @return 裂解培训模版内容
     */
    @Override
    public List<TTsLjplanTmplContent> selectTTsLjplanTmplContentList(TTsLjplanTmplContent tTsLjplanTmplContent)
    {
        return tTsLjplanTmplContentMapper.selectTTsLjplanTmplContentList(tTsLjplanTmplContent);
    }

    /**
     * 新增裂解培训模版内容
     *
     * @param tTsLjplanTmplContent 裂解培训模版内容
     * @return 结果
     */
    @Override
    public int insertTTsLjplanTmplContent(TTsLjplanTmplContent tTsLjplanTmplContent)
    {
        return tTsLjplanTmplContentMapper.insertTTsLjplanTmplContent(tTsLjplanTmplContent);
    }

    /**
     * 修改裂解培训模版内容
     *
     * @param tTsLjplanTmplContent 裂解培训模版内容
     * @return 结果
     */
    @Override
    public int updateTTsLjplanTmplContent(TTsLjplanTmplContent tTsLjplanTmplContent)
    {
        return tTsLjplanTmplContentMapper.updateTTsLjplanTmplContent(tTsLjplanTmplContent);
    }

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

    /**
     * 删除裂解培训模版内容信息
     *
     * @param id 裂解培训模版内容ID
     * @return 结果
     */
    @Override
    public int deleteTTsLjplanTmplContentById(Long id)
    {
        return tTsLjplanTmplContentMapper.deleteTTsLjplanTmplContentById(id);
    }
}
