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

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.training.mapper.TWorklicenseCertificateMapper;
import com.ruoyi.project.training.domain.TWorklicenseCertificate;
import com.ruoyi.project.training.service.ITWorklicenseCertificateService;

/**
 * 上岗证/作业证书一览Service业务层处理
 *
 * @author ssy
 * @date 2024-03-04
 */
@Service
public class TWorklicenseCertificateServiceImpl implements ITWorklicenseCertificateService
{
    @Autowired
    private TWorklicenseCertificateMapper tWorklicenseCertificateMapper;

    /**
     * 查询上岗证/作业证书一览
     *
     * @param id 上岗证/作业证书一览ID
     * @return 上岗证/作业证书一览
     */
    @Override
    public TWorklicenseCertificate selectTWorklicenseCertificateById(Long id)
    {
        return tWorklicenseCertificateMapper.selectTWorklicenseCertificateById(id);
    }

    /**
     * 查询上岗证/作业证书一览列表
     *
     * @param tWorklicenseCertificate 上岗证/作业证书一览
     * @return 上岗证/作业证书一览
     */
    @Override
    public List<TWorklicenseCertificate> selectTWorklicenseCertificateList(TWorklicenseCertificate tWorklicenseCertificate)
    {
        return tWorklicenseCertificateMapper.selectTWorklicenseCertificateList(tWorklicenseCertificate);
    }

    /**
     * 新增上岗证/作业证书一览
     *
     * @param tWorklicenseCertificate 上岗证/作业证书一览
     * @return 结果
     */
    @Override
    public int insertTWorklicenseCertificate(TWorklicenseCertificate tWorklicenseCertificate)
    {
        return tWorklicenseCertificateMapper.insertTWorklicenseCertificate(tWorklicenseCertificate);
    }

    /**
     * 修改上岗证/作业证书一览
     *
     * @param tWorklicenseCertificate 上岗证/作业证书一览
     * @return 结果
     */
    @Override
    public int updateTWorklicenseCertificate(TWorklicenseCertificate tWorklicenseCertificate)
    {
        return tWorklicenseCertificateMapper.updateTWorklicenseCertificate(tWorklicenseCertificate);
    }

    /**
     * 批量删除上岗证/作业证书一览
     *
     * @param ids 需要删除的上岗证/作业证书一览ID
     * @return 结果
     */
    @Override
    public int deleteTWorklicenseCertificateByIds(Long[] ids)
    {
        return tWorklicenseCertificateMapper.deleteTWorklicenseCertificateByIds(ids);
    }

    /**
     * 删除上岗证/作业证书一览信息
     *
     * @param id 上岗证/作业证书一览ID
     * @return 结果
     */
    @Override
    public int deleteTWorklicenseCertificateById(Long id)
    {
        return tWorklicenseCertificateMapper.deleteTWorklicenseCertificateById(id);
    }
}
