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.TMonthlyQualityReportS3011Mapper;
import com.ruoyi.project.production.domain.TMonthlyQualityReportS3011;
import com.ruoyi.project.production.service.ITMonthlyQualityReportS3011Service;

/**
 * 质量月报S3011Service业务层处理
 *
 * @author ruoyi
 * @date 2023-10-27
 */
@Service
public class TMonthlyQualityReportS3011ServiceImpl implements ITMonthlyQualityReportS3011Service
{
    @Autowired
    private TMonthlyQualityReportS3011Mapper tMonthlyQualityReportS3011Mapper;

    /**
     * 查询质量月报S3011
     *
     * @param id 质量月报S3011ID
     * @return 质量月报S3011
     */
    @Override
    public TMonthlyQualityReportS3011 selectTMonthlyQualityReportS3011ById(Long id)
    {
        return tMonthlyQualityReportS3011Mapper.selectTMonthlyQualityReportS3011ById(id);
    }

    /**
     * 查询质量月报S3011列表
     *
     * @param tMonthlyQualityReportS3011 质量月报S3011
     * @return 质量月报S3011
     */
    @Override
    public List<TMonthlyQualityReportS3011> selectTMonthlyQualityReportS3011List(TMonthlyQualityReportS3011 tMonthlyQualityReportS3011)
    {
        return tMonthlyQualityReportS3011Mapper.selectTMonthlyQualityReportS3011List(tMonthlyQualityReportS3011);
    }

    /**
     * 新增质量月报S3011
     *
     * @param tMonthlyQualityReportS3011 质量月报S3011
     * @return 结果
     */
    @Override
    public int insertTMonthlyQualityReportS3011(TMonthlyQualityReportS3011 tMonthlyQualityReportS3011)
    {
        tMonthlyQualityReportS3011.setCreateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS3011Mapper.insertTMonthlyQualityReportS3011(tMonthlyQualityReportS3011);
    }

    /**
     * 修改质量月报S3011
     *
     * @param tMonthlyQualityReportS3011 质量月报S3011
     * @return 结果
     */
    @Override
    public int updateTMonthlyQualityReportS3011(TMonthlyQualityReportS3011 tMonthlyQualityReportS3011)
    {
        tMonthlyQualityReportS3011.setUpdateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS3011Mapper.updateTMonthlyQualityReportS3011(tMonthlyQualityReportS3011);
    }

    /**
     * 批量删除质量月报S3011
     *
     * @param ids 需要删除的质量月报S3011ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS3011ByIds(Long[] ids)
    {
        return tMonthlyQualityReportS3011Mapper.deleteTMonthlyQualityReportS3011ByIds(ids);
    }

    /**
     * 删除质量月报S3011信息
     *
     * @param id 质量月报S3011ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS3011ById(Long id)
    {
        return tMonthlyQualityReportS3011Mapper.deleteTMonthlyQualityReportS3011ById(id);
    }
}
