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

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.patrol.commonuse.mapper.TCommonuseManholeCoverMapper;
import com.ruoyi.project.patrol.commonuse.domain.TCommonuseManholeCover;
import com.ruoyi.project.patrol.commonuse.service.ITCommonuseManholeCoverService;

/**
 * 地井盖Service业务层处理
 * 
 * @author admin
 * @date 2023-11-08
 */
@Service
public class TCommonuseManholeCoverServiceImpl implements ITCommonuseManholeCoverService 
{
    @Autowired
    private TCommonuseManholeCoverMapper tCommonuseManholeCoverMapper;

    /**
     * 查询地井盖
     * 
     * @param id 地井盖主键
     * @return 地井盖
     */
    @Override
    public TCommonuseManholeCover selectTCommonuseManholeCoverById(Long id)
    {
        return tCommonuseManholeCoverMapper.selectTCommonuseManholeCoverById(id);
    }

    /**
     * 查询地井盖列表
     * 
     * @param tCommonuseManholeCover 地井盖
     * @return 地井盖
     */
    @Override
    public List<TCommonuseManholeCover> selectTCommonuseManholeCoverList(TCommonuseManholeCover tCommonuseManholeCover)
    {
        return tCommonuseManholeCoverMapper.selectTCommonuseManholeCoverList(tCommonuseManholeCover);
    }

    /**
     * 新增地井盖
     * 
     * @param tCommonuseManholeCover 地井盖
     * @return 结果
     */
    @Override
    public int insertTCommonuseManholeCover(TCommonuseManholeCover tCommonuseManholeCover)
    {
        return tCommonuseManholeCoverMapper.insertTCommonuseManholeCover(tCommonuseManholeCover);
    }

    /**
     * 修改地井盖
     * 
     * @param tCommonuseManholeCover 地井盖
     * @return 结果
     */
    @Override
    public int updateTCommonuseManholeCover(TCommonuseManholeCover tCommonuseManholeCover)
    {
        return tCommonuseManholeCoverMapper.updateTCommonuseManholeCover(tCommonuseManholeCover);
    }

    /**
     * 批量删除地井盖
     * 
     * @param ids 需要删除的地井盖主键
     * @return 结果
     */
    @Override
    public int deleteTCommonuseManholeCoverByIds(Long[] ids)
    {
        return tCommonuseManholeCoverMapper.deleteTCommonuseManholeCoverByIds(ids);
    }

    /**
     * 删除地井盖信息
     * 
     * @param id 地井盖主键
     * @return 结果
     */
    @Override
    public int deleteTCommonuseManholeCoverById(Long id)
    {
        return tCommonuseManholeCoverMapper.deleteTCommonuseManholeCoverById(id);
    }
}
