package com.ruoyi.project.sems.safecheck.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.sems.safecheck.mapper.TSpecPersonweekcheckMapper;
import com.ruoyi.project.sems.safecheck.domain.TSpecPersonweekcheck;
import com.ruoyi.project.sems.safecheck.service.ITSpecPersonweekcheckService;

import javax.annotation.Resource;

/**
 * 每周个人安全检查Service业务层处理
 *
 * @author Li
 * @date 2023-08-29
 */
@Service
public class TSpecPersonweekcheckServiceImpl implements ITSpecPersonweekcheckService
{
    @Resource
    private TSpecPersonweekcheckMapper tSpecPersonweekcheckMapper;

    /**
     * 查询每周个人安全检查
     *
     * @param id 每周个人安全检查ID
     * @return 每周个人安全检查
     */
    @Override
    public TSpecPersonweekcheck selectTSpecPersonweekcheckById(Long id)
    {
        return tSpecPersonweekcheckMapper.selectTSpecPersonweekcheckById(id);
    }

    /**
     * 查询每周个人安全检查列表
     *
     * @param tSpecPersonweekcheck 每周个人安全检查
     * @return 每周个人安全检查
     */
    @Override
    public List<TSpecPersonweekcheck> selectTSpecPersonweekcheckList(TSpecPersonweekcheck tSpecPersonweekcheck)
    {
        return tSpecPersonweekcheckMapper.selectTSpecPersonweekcheckList(tSpecPersonweekcheck);
    }

    /**
     * 新增每周个人安全检查
     *
     * @param tSpecPersonweekcheck 每周个人安全检查
     * @return 结果
     */
    @Override
    public int insertTSpecPersonweekcheck(TSpecPersonweekcheck tSpecPersonweekcheck)
    {
        return tSpecPersonweekcheckMapper.insertTSpecPersonweekcheck(tSpecPersonweekcheck);
    }

    /**
     * 修改每周个人安全检查
     *
     * @param tSpecPersonweekcheck 每周个人安全检查
     * @return 结果
     */
    @Override
    public int updateTSpecPersonweekcheck(TSpecPersonweekcheck tSpecPersonweekcheck)
    {
        return tSpecPersonweekcheckMapper.updateTSpecPersonweekcheck(tSpecPersonweekcheck);
    }

    /**
     * 批量删除每周个人安全检查
     *
     * @param ids 需要删除的每周个人安全检查ID
     * @return 结果
     */
    @Override
    public int deleteTSpecPersonweekcheckByIds(Long[] ids)
    {
        return tSpecPersonweekcheckMapper.deleteTSpecPersonweekcheckByIds(ids);
    }

    /**
     * 删除每周个人安全检查信息
     *
     * @param id 每周个人安全检查ID
     * @return 结果
     */
    @Override
    public int deleteTSpecPersonweekcheckById(Long id)
    {
        return tSpecPersonweekcheckMapper.deleteTSpecPersonweekcheckById(id);
    }
}
