package com.zd.airbottle.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zd.airbottle.mapper.QpQualificationApplyRecordMapper;
import com.zd.airbottle.domain.QpQualificationApplyRecord;
import com.zd.airbottle.service.IQpQualificationApplyRecordService;

/**
 * 资格申请详情Service业务层处理
 * 
 * @author zd
 * @date 2022-05-11
 */
@Service
public class QpQualificationApplyRecordServiceImpl implements IQpQualificationApplyRecordService 
{
    @Autowired
    private QpQualificationApplyRecordMapper qpQualificationApplyRecordMapper;

    /**
     * 查询资格申请详情
     * 
     * @param id 资格申请详情主键
     * @return 资格申请详情
     */
    @Override
    public QpQualificationApplyRecord selectQpQualificationApplyRecordById(Long id)
    {
        return qpQualificationApplyRecordMapper.selectQpQualificationApplyRecordById(id);
    }

    /**
     * 查询资格申请详情列表
     * 
     * @param qpQualificationApplyRecord 资格申请详情
     * @return 资格申请详情
     */
    @Override
    public List<QpQualificationApplyRecord> selectQpQualificationApplyRecordList(QpQualificationApplyRecord qpQualificationApplyRecord)
    {
        return qpQualificationApplyRecordMapper.selectQpQualificationApplyRecordList(qpQualificationApplyRecord);
    }

    /**
     * 新增资格申请详情
     * 
     * @param qpQualificationApplyRecord 资格申请详情
     * @return 结果
     */
    @Override
    public int insertQpQualificationApplyRecord(QpQualificationApplyRecord qpQualificationApplyRecord)
    {
        return qpQualificationApplyRecordMapper.insertQpQualificationApplyRecord(qpQualificationApplyRecord);
    }

    /**
     * 修改资格申请详情
     * 
     * @param qpQualificationApplyRecord 资格申请详情
     * @return 结果
     */
    @Override
    public int updateQpQualificationApplyRecord(QpQualificationApplyRecord qpQualificationApplyRecord)
    {
        return qpQualificationApplyRecordMapper.updateQpQualificationApplyRecord(qpQualificationApplyRecord);
    }

    /**
     * 批量删除资格申请详情
     * 
     * @param ids 需要删除的资格申请详情主键
     * @return 结果
     */
    @Override
    public int deleteQpQualificationApplyRecordByIds(Long[] ids)
    {
        return qpQualificationApplyRecordMapper.deleteQpQualificationApplyRecordByIds(ids);
    }

    /**
     * 删除资格申请详情信息
     * 
     * @param id 资格申请详情主键
     * @return 结果
     */
    @Override
    public int deleteQpQualificationApplyRecordById(Long id)
    {
        return qpQualificationApplyRecordMapper.deleteQpQualificationApplyRecordById(id);
    }
}
