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.TMonthlyQualityReportS3022Mapper;
import com.ruoyi.project.production.domain.TMonthlyQualityReportS3022;
import com.ruoyi.project.production.service.ITMonthlyQualityReportS3022Service;

/**
 * 质量月报S3022Service业务层处理
 *
 * @author ruoyi
 * @date 2023-10-27
 */
@Service
public class TMonthlyQualityReportS3022ServiceImpl implements ITMonthlyQualityReportS3022Service
{
    @Autowired
    private TMonthlyQualityReportS3022Mapper tMonthlyQualityReportS3022Mapper;

    /**
     * 查询质量月报S3022
     *
     * @param id 质量月报S3022ID
     * @return 质量月报S3022
     */
    @Override
    public TMonthlyQualityReportS3022 selectTMonthlyQualityReportS3022ById(Long id)
    {
        return tMonthlyQualityReportS3022Mapper.selectTMonthlyQualityReportS3022ById(id);
    }

    /**
     * 查询质量月报S3022列表
     *
     * @param tMonthlyQualityReportS3022 质量月报S3022
     * @return 质量月报S3022
     */
    @Override
    public List<TMonthlyQualityReportS3022> selectTMonthlyQualityReportS3022List(TMonthlyQualityReportS3022 tMonthlyQualityReportS3022)
    {
        return tMonthlyQualityReportS3022Mapper.selectTMonthlyQualityReportS3022List(tMonthlyQualityReportS3022);
    }

    /**
     * 新增质量月报S3022
     *
     * @param tMonthlyQualityReportS3022 质量月报S3022
     * @return 结果
     */
    @Override
    public int insertTMonthlyQualityReportS3022(TMonthlyQualityReportS3022 tMonthlyQualityReportS3022)
    {
        tMonthlyQualityReportS3022.setCreateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS3022Mapper.insertTMonthlyQualityReportS3022(tMonthlyQualityReportS3022);
    }

    /**
     * 修改质量月报S3022
     *
     * @param tMonthlyQualityReportS3022 质量月报S3022
     * @return 结果
     */
    @Override
    public int updateTMonthlyQualityReportS3022(TMonthlyQualityReportS3022 tMonthlyQualityReportS3022)
    {
        tMonthlyQualityReportS3022.setUpdateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS3022Mapper.updateTMonthlyQualityReportS3022(tMonthlyQualityReportS3022);
    }

    /**
     * 批量删除质量月报S3022
     *
     * @param ids 需要删除的质量月报S3022ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS3022ByIds(Long[] ids)
    {
        return tMonthlyQualityReportS3022Mapper.deleteTMonthlyQualityReportS3022ByIds(ids);
    }

    /**
     * 删除质量月报S3022信息
     *
     * @param id 质量月报S3022ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS3022ById(Long id)
    {
        return tMonthlyQualityReportS3022Mapper.deleteTMonthlyQualityReportS3022ById(id);
    }
}
