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.TMonthlyQualityReportS4013Mapper;
import com.ruoyi.project.production.domain.TMonthlyQualityReportS4013;
import com.ruoyi.project.production.service.ITMonthlyQualityReportS4013Service;

/**
 * 质量月报S4013Service业务层处理
 *
 * @author ruoyi
 * @date 2023-10-27
 */
@Service
public class TMonthlyQualityReportS4013ServiceImpl implements ITMonthlyQualityReportS4013Service
{
    @Autowired
    private TMonthlyQualityReportS4013Mapper tMonthlyQualityReportS4013Mapper;

    /**
     * 查询质量月报S4013
     *
     * @param id 质量月报S4013ID
     * @return 质量月报S4013
     */
    @Override
    public TMonthlyQualityReportS4013 selectTMonthlyQualityReportS4013ById(Long id)
    {
        return tMonthlyQualityReportS4013Mapper.selectTMonthlyQualityReportS4013ById(id);
    }

    /**
     * 查询质量月报S4013列表
     *
     * @param tMonthlyQualityReportS4013 质量月报S4013
     * @return 质量月报S4013
     */
    @Override
    public List<TMonthlyQualityReportS4013> selectTMonthlyQualityReportS4013List(TMonthlyQualityReportS4013 tMonthlyQualityReportS4013)
    {
        return tMonthlyQualityReportS4013Mapper.selectTMonthlyQualityReportS4013List(tMonthlyQualityReportS4013);
    }

    /**
     * 新增质量月报S4013
     *
     * @param tMonthlyQualityReportS4013 质量月报S4013
     * @return 结果
     */
    @Override
    public int insertTMonthlyQualityReportS4013(TMonthlyQualityReportS4013 tMonthlyQualityReportS4013)
    {
        tMonthlyQualityReportS4013.setCreateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS4013Mapper.insertTMonthlyQualityReportS4013(tMonthlyQualityReportS4013);
    }

    /**
     * 修改质量月报S4013
     *
     * @param tMonthlyQualityReportS4013 质量月报S4013
     * @return 结果
     */
    @Override
    public int updateTMonthlyQualityReportS4013(TMonthlyQualityReportS4013 tMonthlyQualityReportS4013)
    {
        tMonthlyQualityReportS4013.setUpdateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS4013Mapper.updateTMonthlyQualityReportS4013(tMonthlyQualityReportS4013);
    }

    /**
     * 批量删除质量月报S4013
     *
     * @param ids 需要删除的质量月报S4013ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS4013ByIds(Long[] ids)
    {
        return tMonthlyQualityReportS4013Mapper.deleteTMonthlyQualityReportS4013ByIds(ids);
    }

    /**
     * 删除质量月报S4013信息
     *
     * @param id 质量月报S4013ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS4013ById(Long id)
    {
        return tMonthlyQualityReportS4013Mapper.deleteTMonthlyQualityReportS4013ById(id);
    }
}
