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.TMonthlyQualityReportS6107Mapper;
import com.ruoyi.project.production.domain.TMonthlyQualityReportS6107;
import com.ruoyi.project.production.service.ITMonthlyQualityReportS6107Service;

/**
 * 质量月报S6107Service业务层处理
 *
 * @author ruoyi
 * @date 2023-10-27
 */
@Service
public class TMonthlyQualityReportS6107ServiceImpl implements ITMonthlyQualityReportS6107Service
{
    @Autowired
    private TMonthlyQualityReportS6107Mapper tMonthlyQualityReportS6107Mapper;

    /**
     * 查询质量月报S6107
     *
     * @param id 质量月报S6107ID
     * @return 质量月报S6107
     */
    @Override
    public TMonthlyQualityReportS6107 selectTMonthlyQualityReportS6107ById(Long id)
    {
        return tMonthlyQualityReportS6107Mapper.selectTMonthlyQualityReportS6107ById(id);
    }

    /**
     * 查询质量月报S6107列表
     *
     * @param tMonthlyQualityReportS6107 质量月报S6107
     * @return 质量月报S6107
     */
    @Override
    public List<TMonthlyQualityReportS6107> selectTMonthlyQualityReportS6107List(TMonthlyQualityReportS6107 tMonthlyQualityReportS6107)
    {
        return tMonthlyQualityReportS6107Mapper.selectTMonthlyQualityReportS6107List(tMonthlyQualityReportS6107);
    }

    /**
     * 新增质量月报S6107
     *
     * @param tMonthlyQualityReportS6107 质量月报S6107
     * @return 结果
     */
    @Override
    public int insertTMonthlyQualityReportS6107(TMonthlyQualityReportS6107 tMonthlyQualityReportS6107)
    {
        tMonthlyQualityReportS6107.setCreateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS6107Mapper.insertTMonthlyQualityReportS6107(tMonthlyQualityReportS6107);
    }

    /**
     * 修改质量月报S6107
     *
     * @param tMonthlyQualityReportS6107 质量月报S6107
     * @return 结果
     */
    @Override
    public int updateTMonthlyQualityReportS6107(TMonthlyQualityReportS6107 tMonthlyQualityReportS6107)
    {
        tMonthlyQualityReportS6107.setUpdateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS6107Mapper.updateTMonthlyQualityReportS6107(tMonthlyQualityReportS6107);
    }

    /**
     * 批量删除质量月报S6107
     *
     * @param ids 需要删除的质量月报S6107ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS6107ByIds(Long[] ids)
    {
        return tMonthlyQualityReportS6107Mapper.deleteTMonthlyQualityReportS6107ByIds(ids);
    }

    /**
     * 删除质量月报S6107信息
     *
     * @param id 质量月报S6107ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS6107ById(Long id)
    {
        return tMonthlyQualityReportS6107Mapper.deleteTMonthlyQualityReportS6107ById(id);
    }
}
