package com.ruoyi.project.shiftmgr.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.shiftmgr.mapper.TShiftAnnualAssessmentMapper;
import com.ruoyi.project.shiftmgr.domain.TShiftAnnualAssessment;
import com.ruoyi.project.shiftmgr.service.ITShiftAnnualAssessmentService;

/**
 * 年度考核信息Service业务层处理
 *
 * @author ruoyi
 * @date 2022-08-05
 */
@Service
public class TShiftAnnualAssessmentServiceImpl implements ITShiftAnnualAssessmentService
{
    @Autowired
    private TShiftAnnualAssessmentMapper tShiftAnnualAssessmentMapper;

    /**
     * 查询年度考核信息
     *
     * @param id 年度考核信息ID
     * @return 年度考核信息
     */
    @Override
    public TShiftAnnualAssessment selectTShiftAnnualAssessmentById(Long id)
    {
        return tShiftAnnualAssessmentMapper.selectTShiftAnnualAssessmentById(id);
    }

    /**
     * 查询年度考核信息列表
     *
     * @param tShiftAnnualAssessment 年度考核信息
     * @return 年度考核信息
     */
    @Override
    public List<TShiftAnnualAssessment> selectTShiftAnnualAssessmentList(TShiftAnnualAssessment tShiftAnnualAssessment)
    {
        return tShiftAnnualAssessmentMapper.selectTShiftAnnualAssessmentList(tShiftAnnualAssessment);
    }

    /**
     * 新增年度考核信息
     *
     * @param tShiftAnnualAssessment 年度考核信息
     * @return 结果
     */
    @Override
    public int insertTShiftAnnualAssessment(TShiftAnnualAssessment tShiftAnnualAssessment)
    {
        return tShiftAnnualAssessmentMapper.insertTShiftAnnualAssessment(tShiftAnnualAssessment);
    }

    /**
     * 修改年度考核信息
     *
     * @param tShiftAnnualAssessment 年度考核信息
     * @return 结果
     */
    @Override
    public int updateTShiftAnnualAssessment(TShiftAnnualAssessment tShiftAnnualAssessment)
    {
        return tShiftAnnualAssessmentMapper.updateTShiftAnnualAssessment(tShiftAnnualAssessment);
    }

    /**
     * 批量删除年度考核信息
     *
     * @param ids 需要删除的年度考核信息ID
     * @return 结果
     */
    @Override
    public int deleteTShiftAnnualAssessmentByIds(Long[] ids)
    {
        return tShiftAnnualAssessmentMapper.deleteTShiftAnnualAssessmentByIds(ids);
    }

    /**
     * 删除年度考核信息信息
     *
     * @param id 年度考核信息ID
     * @return 结果
     */
    @Override
    public int deleteTShiftAnnualAssessmentById(Long id)
    {
        return tShiftAnnualAssessmentMapper.deleteTShiftAnnualAssessmentById(id);
    }
}
