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.TMonthlyQualityReportS3004Mapper;
import com.ruoyi.project.production.domain.TMonthlyQualityReportS3004;
import com.ruoyi.project.production.service.ITMonthlyQualityReportS3004Service;

/**
 * 质量月报S3004Service业务层处理
 *
 * @author ruoyi
 * @date 2023-10-27
 */
@Service
public class TMonthlyQualityReportS3004ServiceImpl implements ITMonthlyQualityReportS3004Service
{
    @Autowired
    private TMonthlyQualityReportS3004Mapper tMonthlyQualityReportS3004Mapper;

    /**
     * 查询质量月报S3004
     *
     * @param id 质量月报S3004ID
     * @return 质量月报S3004
     */
    @Override
    public TMonthlyQualityReportS3004 selectTMonthlyQualityReportS3004ById(Long id)
    {
        return tMonthlyQualityReportS3004Mapper.selectTMonthlyQualityReportS3004ById(id);
    }

    /**
     * 查询质量月报S3004列表
     *
     * @param tMonthlyQualityReportS3004 质量月报S3004
     * @return 质量月报S3004
     */
    @Override
    public List<TMonthlyQualityReportS3004> selectTMonthlyQualityReportS3004List(TMonthlyQualityReportS3004 tMonthlyQualityReportS3004)
    {
        return tMonthlyQualityReportS3004Mapper.selectTMonthlyQualityReportS3004List(tMonthlyQualityReportS3004);
    }

    /**
     * 新增质量月报S3004
     *
     * @param tMonthlyQualityReportS3004 质量月报S3004
     * @return 结果
     */
    @Override
    public int insertTMonthlyQualityReportS3004(TMonthlyQualityReportS3004 tMonthlyQualityReportS3004)
    {
        tMonthlyQualityReportS3004.setCreateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS3004Mapper.insertTMonthlyQualityReportS3004(tMonthlyQualityReportS3004);
    }

    /**
     * 修改质量月报S3004
     *
     * @param tMonthlyQualityReportS3004 质量月报S3004
     * @return 结果
     */
    @Override
    public int updateTMonthlyQualityReportS3004(TMonthlyQualityReportS3004 tMonthlyQualityReportS3004)
    {
        tMonthlyQualityReportS3004.setUpdateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS3004Mapper.updateTMonthlyQualityReportS3004(tMonthlyQualityReportS3004);
    }

    /**
     * 批量删除质量月报S3004
     *
     * @param ids 需要删除的质量月报S3004ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS3004ByIds(Long[] ids)
    {
        return tMonthlyQualityReportS3004Mapper.deleteTMonthlyQualityReportS3004ByIds(ids);
    }

    /**
     * 删除质量月报S3004信息
     *
     * @param id 质量月报S3004ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS3004ById(Long id)
    {
        return tMonthlyQualityReportS3004Mapper.deleteTMonthlyQualityReportS3004ById(id);
    }
}
