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.TMonthlyQualityReportS6301Mapper;
import com.ruoyi.project.production.domain.TMonthlyQualityReportS6301;
import com.ruoyi.project.production.service.ITMonthlyQualityReportS6301Service;

/**
 * 质量月报S6301Service业务层处理
 *
 * @author ruoyi
 * @date 2023-10-27
 */
@Service
public class TMonthlyQualityReportS6301ServiceImpl implements ITMonthlyQualityReportS6301Service
{
    @Autowired
    private TMonthlyQualityReportS6301Mapper tMonthlyQualityReportS6301Mapper;

    /**
     * 查询质量月报S6301
     *
     * @param id 质量月报S6301ID
     * @return 质量月报S6301
     */
    @Override
    public TMonthlyQualityReportS6301 selectTMonthlyQualityReportS6301ById(Long id)
    {
        return tMonthlyQualityReportS6301Mapper.selectTMonthlyQualityReportS6301ById(id);
    }

    /**
     * 查询质量月报S6301列表
     *
     * @param tMonthlyQualityReportS6301 质量月报S6301
     * @return 质量月报S6301
     */
    @Override
    public List<TMonthlyQualityReportS6301> selectTMonthlyQualityReportS6301List(TMonthlyQualityReportS6301 tMonthlyQualityReportS6301)
    {
        return tMonthlyQualityReportS6301Mapper.selectTMonthlyQualityReportS6301List(tMonthlyQualityReportS6301);
    }

    /**
     * 新增质量月报S6301
     *
     * @param tMonthlyQualityReportS6301 质量月报S6301
     * @return 结果
     */
    @Override
    public int insertTMonthlyQualityReportS6301(TMonthlyQualityReportS6301 tMonthlyQualityReportS6301)
    {
        tMonthlyQualityReportS6301.setCreateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS6301Mapper.insertTMonthlyQualityReportS6301(tMonthlyQualityReportS6301);
    }

    /**
     * 修改质量月报S6301
     *
     * @param tMonthlyQualityReportS6301 质量月报S6301
     * @return 结果
     */
    @Override
    public int updateTMonthlyQualityReportS6301(TMonthlyQualityReportS6301 tMonthlyQualityReportS6301)
    {
        tMonthlyQualityReportS6301.setUpdateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS6301Mapper.updateTMonthlyQualityReportS6301(tMonthlyQualityReportS6301);
    }

    /**
     * 批量删除质量月报S6301
     *
     * @param ids 需要删除的质量月报S6301ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS6301ByIds(Long[] ids)
    {
        return tMonthlyQualityReportS6301Mapper.deleteTMonthlyQualityReportS6301ByIds(ids);
    }

    /**
     * 删除质量月报S6301信息
     *
     * @param id 质量月报S6301ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS6301ById(Long id)
    {
        return tMonthlyQualityReportS6301Mapper.deleteTMonthlyQualityReportS6301ById(id);
    }
}
