package com.aucma.report.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aucma.report.mapper.ReportQualityInspectionMapper;
import com.aucma.report.domain.ReportQualityInspection;
import com.aucma.report.service.IReportQualityInspectionService;

/**
 * 质检记录管理Service业务层处理
 * 
 * @author Yinq
 * @date 2023-11-21
 */
@Service
public class ReportQualityInspectionServiceImpl implements IReportQualityInspectionService 
{
    @Autowired
    private ReportQualityInspectionMapper reportQualityInspectionMapper;

    /**
     * 查询质检记录管理
     * 
     * @param objId 质检记录管理主键
     * @return 质检记录管理
     */
    @Override
    public ReportQualityInspection selectReportQualityInspectionByObjId(Long objId)
    {
        return reportQualityInspectionMapper.selectReportQualityInspectionByObjId(objId);
    }

    /**
     * 查询质检记录管理列表
     * 
     * @param reportQualityInspection 质检记录管理
     * @return 质检记录管理
     */
    @Override
    public List<ReportQualityInspection> selectReportQualityInspectionList(ReportQualityInspection reportQualityInspection)
    {
        return reportQualityInspectionMapper.selectReportQualityInspectionList(reportQualityInspection);
    }

    /**
     * 新增质检记录管理
     * 
     * @param reportQualityInspection 质检记录管理
     * @return 结果
     */
    @Override
    public int insertReportQualityInspection(ReportQualityInspection reportQualityInspection)
    {
        return reportQualityInspectionMapper.insertReportQualityInspection(reportQualityInspection);
    }

    /**
     * 修改质检记录管理
     * 
     * @param reportQualityInspection 质检记录管理
     * @return 结果
     */
    @Override
    public int updateReportQualityInspection(ReportQualityInspection reportQualityInspection)
    {
        return reportQualityInspectionMapper.updateReportQualityInspection(reportQualityInspection);
    }

    /**
     * 批量删除质检记录管理
     * 
     * @param objIds 需要删除的质检记录管理主键
     * @return 结果
     */
    @Override
    public int deleteReportQualityInspectionByObjIds(Long[] objIds)
    {
        return reportQualityInspectionMapper.deleteReportQualityInspectionByObjIds(objIds);
    }

    /**
     * 删除质检记录管理信息
     * 
     * @param objId 质检记录管理主键
     * @return 结果
     */
    @Override
    public int deleteReportQualityInspectionByObjId(Long objId)
    {
        return reportQualityInspectionMapper.deleteReportQualityInspectionByObjId(objId);
    }



}
