package com.ruoyi.supplier.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.supplier.mapper.TCanteenQualificationMapper;
import com.ruoyi.supplier.domain.TCanteenQualification;
import com.ruoyi.supplier.service.ITCanteenQualificationService;

/**
 * 供应商资质Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-22
 */
@Service
public class TCanteenQualificationServiceImpl implements ITCanteenQualificationService 
{
    @Autowired
    private TCanteenQualificationMapper tCanteenQualificationMapper;

    /**
     * 查询供应商资质
     * 
     * @param qualificationId 供应商资质主键
     * @return 供应商资质
     */
    @Override
    public TCanteenQualification selectTCanteenQualificationByQualificationId(Long qualificationId)
    {
        return tCanteenQualificationMapper.selectTCanteenQualificationByQualificationId(qualificationId);
    }

    /**
     * 查询供应商资质列表
     * 
     * @param tCanteenQualification 供应商资质
     * @return 供应商资质
     */
    @Override
    public List<TCanteenQualification> selectTCanteenQualificationList(TCanteenQualification tCanteenQualification)
    {
        return tCanteenQualificationMapper.selectTCanteenQualificationList(tCanteenQualification);
    }

    /**
     * 新增供应商资质
     * 
     * @param tCanteenQualification 供应商资质
     * @return 结果
     */
    @Override
    public int insertTCanteenQualification(TCanteenQualification tCanteenQualification)
    {
        return tCanteenQualificationMapper.insertTCanteenQualification(tCanteenQualification);
    }

    /**
     * 修改供应商资质
     * 
     * @param tCanteenQualification 供应商资质
     * @return 结果
     */
    @Override
    public int updateTCanteenQualification(TCanteenQualification tCanteenQualification)
    {
        return tCanteenQualificationMapper.updateTCanteenQualification(tCanteenQualification);
    }

    /**
     * 批量删除供应商资质
     * 
     * @param qualificationIds 需要删除的供应商资质主键
     * @return 结果
     */
    @Override
    public int deleteTCanteenQualificationByQualificationIds(Long[] qualificationIds)
    {
        return tCanteenQualificationMapper.deleteTCanteenQualificationByQualificationIds(qualificationIds);
    }

    /**
     * 删除供应商资质信息
     * 
     * @param qualificationId 供应商资质主键
     * @return 结果
     */
    @Override
    public int deleteTCanteenQualificationByQualificationId(Long qualificationId)
    {
        return tCanteenQualificationMapper.deleteTCanteenQualificationByQualificationId(qualificationId);
    }
}
