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.TMonthlyQualityReportS1301Mapper;
import com.ruoyi.project.production.domain.TMonthlyQualityReportS1301;
import com.ruoyi.project.production.service.ITMonthlyQualityReportS1301Service;

/**
 * 质量月报S1301Service业务层处理
 *
 * @author ruoyi
 * @date 2023-10-27
 */
@Service
public class TMonthlyQualityReportS1301ServiceImpl implements ITMonthlyQualityReportS1301Service
{
    @Autowired
    private TMonthlyQualityReportS1301Mapper tMonthlyQualityReportS1301Mapper;

    /**
     * 查询质量月报S1301
     *
     * @param id 质量月报S1301ID
     * @return 质量月报S1301
     */
    @Override
    public TMonthlyQualityReportS1301 selectTMonthlyQualityReportS1301ById(Long id)
    {
        return tMonthlyQualityReportS1301Mapper.selectTMonthlyQualityReportS1301ById(id);
    }

    /**
     * 查询质量月报S1301列表
     *
     * @param tMonthlyQualityReportS1301 质量月报S1301
     * @return 质量月报S1301
     */
    @Override
    public List<TMonthlyQualityReportS1301> selectTMonthlyQualityReportS1301List(TMonthlyQualityReportS1301 tMonthlyQualityReportS1301)
    {
        return tMonthlyQualityReportS1301Mapper.selectTMonthlyQualityReportS1301List(tMonthlyQualityReportS1301);
    }

    /**
     * 新增质量月报S1301
     *
     * @param tMonthlyQualityReportS1301 质量月报S1301
     * @return 结果
     */
    @Override
    public int insertTMonthlyQualityReportS1301(TMonthlyQualityReportS1301 tMonthlyQualityReportS1301)
    {
        tMonthlyQualityReportS1301.setCreateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS1301Mapper.insertTMonthlyQualityReportS1301(tMonthlyQualityReportS1301);
    }

    /**
     * 修改质量月报S1301
     *
     * @param tMonthlyQualityReportS1301 质量月报S1301
     * @return 结果
     */
    @Override
    public int updateTMonthlyQualityReportS1301(TMonthlyQualityReportS1301 tMonthlyQualityReportS1301)
    {
        tMonthlyQualityReportS1301.setUpdateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS1301Mapper.updateTMonthlyQualityReportS1301(tMonthlyQualityReportS1301);
    }

    /**
     * 批量删除质量月报S1301
     *
     * @param ids 需要删除的质量月报S1301ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS1301ByIds(Long[] ids)
    {
        return tMonthlyQualityReportS1301Mapper.deleteTMonthlyQualityReportS1301ByIds(ids);
    }

    /**
     * 删除质量月报S1301信息
     *
     * @param id 质量月报S1301ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS1301ById(Long id)
    {
        return tMonthlyQualityReportS1301Mapper.deleteTMonthlyQualityReportS1301ById(id);
    }
}
