package com.ruoyi.project.patrol.emergency.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.patrol.emergency.mapper.TEmergencyCofferdamMapper;
import com.ruoyi.project.patrol.emergency.domain.TEmergencyCofferdam;
import com.ruoyi.project.patrol.emergency.service.ITEmergencyCofferdamService;

/**
 * 蒸汽裂解装置各区域围堰Service业务层处理
 * 
 * @author admin
 * @date 2023-11-06
 */
@Service
public class TEmergencyCofferdamServiceImpl implements ITEmergencyCofferdamService 
{
    @Autowired
    private TEmergencyCofferdamMapper tEmergencyCofferdamMapper;

    /**
     * 查询蒸汽裂解装置各区域围堰
     * 
     * @param id 蒸汽裂解装置各区域围堰主键
     * @return 蒸汽裂解装置各区域围堰
     */
    @Override
    public TEmergencyCofferdam selectTEmergencyCofferdamById(Long id)
    {
        return tEmergencyCofferdamMapper.selectTEmergencyCofferdamById(id);
    }

    /**
     * 查询蒸汽裂解装置各区域围堰列表
     * 
     * @param tEmergencyCofferdam 蒸汽裂解装置各区域围堰
     * @return 蒸汽裂解装置各区域围堰
     */
    @Override
    public List<TEmergencyCofferdam> selectTEmergencyCofferdamList(TEmergencyCofferdam tEmergencyCofferdam)
    {
        return tEmergencyCofferdamMapper.selectTEmergencyCofferdamList(tEmergencyCofferdam);
    }

    /**
     * 新增蒸汽裂解装置各区域围堰
     * 
     * @param tEmergencyCofferdam 蒸汽裂解装置各区域围堰
     * @return 结果
     */
    @Override
    public int insertTEmergencyCofferdam(TEmergencyCofferdam tEmergencyCofferdam)
    {
        return tEmergencyCofferdamMapper.insertTEmergencyCofferdam(tEmergencyCofferdam);
    }

    /**
     * 修改蒸汽裂解装置各区域围堰
     * 
     * @param tEmergencyCofferdam 蒸汽裂解装置各区域围堰
     * @return 结果
     */
    @Override
    public int updateTEmergencyCofferdam(TEmergencyCofferdam tEmergencyCofferdam)
    {
        return tEmergencyCofferdamMapper.updateTEmergencyCofferdam(tEmergencyCofferdam);
    }

    /**
     * 批量删除蒸汽裂解装置各区域围堰
     * 
     * @param ids 需要删除的蒸汽裂解装置各区域围堰主键
     * @return 结果
     */
    @Override
    public int deleteTEmergencyCofferdamByIds(Long[] ids)
    {
        return tEmergencyCofferdamMapper.deleteTEmergencyCofferdamByIds(ids);
    }

    /**
     * 删除蒸汽裂解装置各区域围堰信息
     * 
     * @param id 蒸汽裂解装置各区域围堰主键
     * @return 结果
     */
    @Override
    public int deleteTEmergencyCofferdamById(Long id)
    {
        return tEmergencyCofferdamMapper.deleteTEmergencyCofferdamById(id);
    }
}
