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

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.production.mapper.TMonthlyQualityReportS3010Mapper;
import com.ruoyi.project.production.domain.TMonthlyQualityReportS3010;
import com.ruoyi.project.production.service.ITMonthlyQualityReportS3010Service;

/**
 * 质量月报S3010Service业务层处理
 *
 * @author ruoyi
 * @date 2023-10-27
 */
@Service
public class TMonthlyQualityReportS3010ServiceImpl implements ITMonthlyQualityReportS3010Service
{
    @Autowired
    private TMonthlyQualityReportS3010Mapper tMonthlyQualityReportS3010Mapper;

    /**
     * 查询质量月报S3010
     *
     * @param id 质量月报S3010ID
     * @return 质量月报S3010
     */
    @Override
    public TMonthlyQualityReportS3010 selectTMonthlyQualityReportS3010ById(Long id)
    {
        return tMonthlyQualityReportS3010Mapper.selectTMonthlyQualityReportS3010ById(id);
    }

    /**
     * 查询质量月报S3010列表
     *
     * @param tMonthlyQualityReportS3010 质量月报S3010
     * @return 质量月报S3010
     */
    @Override
    public List<TMonthlyQualityReportS3010> selectTMonthlyQualityReportS3010List(TMonthlyQualityReportS3010 tMonthlyQualityReportS3010)
    {
        return tMonthlyQualityReportS3010Mapper.selectTMonthlyQualityReportS3010List(tMonthlyQualityReportS3010);
    }

    /**
     * 新增质量月报S3010
     *
     * @param tMonthlyQualityReportS3010 质量月报S3010
     * @return 结果
     */
    @Override
    public int insertTMonthlyQualityReportS3010(TMonthlyQualityReportS3010 tMonthlyQualityReportS3010)
    {
        tMonthlyQualityReportS3010.setCreateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS3010Mapper.insertTMonthlyQualityReportS3010(tMonthlyQualityReportS3010);
    }

    /**
     * 修改质量月报S3010
     *
     * @param tMonthlyQualityReportS3010 质量月报S3010
     * @return 结果
     */
    @Override
    public int updateTMonthlyQualityReportS3010(TMonthlyQualityReportS3010 tMonthlyQualityReportS3010)
    {
        tMonthlyQualityReportS3010.setUpdateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS3010Mapper.updateTMonthlyQualityReportS3010(tMonthlyQualityReportS3010);
    }

    /**
     * 批量删除质量月报S3010
     *
     * @param ids 需要删除的质量月报S3010ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS3010ByIds(Long[] ids)
    {
        return tMonthlyQualityReportS3010Mapper.deleteTMonthlyQualityReportS3010ByIds(ids);
    }

    /**
     * 删除质量月报S3010信息
     *
     * @param id 质量月报S3010ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS3010ById(Long id)
    {
        return tMonthlyQualityReportS3010Mapper.deleteTMonthlyQualityReportS3010ById(id);
    }
}
