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.TMonthlyQualityReportS6101Mapper;
import com.ruoyi.project.production.domain.TMonthlyQualityReportS6101;
import com.ruoyi.project.production.service.ITMonthlyQualityReportS6101Service;

/**
 * 质量月报S6101Service业务层处理
 *
 * @author ruoyi
 * @date 2023-10-27
 */
@Service
public class TMonthlyQualityReportS6101ServiceImpl implements ITMonthlyQualityReportS6101Service
{
    @Autowired
    private TMonthlyQualityReportS6101Mapper tMonthlyQualityReportS6101Mapper;

    /**
     * 查询质量月报S6101
     *
     * @param id 质量月报S6101ID
     * @return 质量月报S6101
     */
    @Override
    public TMonthlyQualityReportS6101 selectTMonthlyQualityReportS6101ById(Long id)
    {
        return tMonthlyQualityReportS6101Mapper.selectTMonthlyQualityReportS6101ById(id);
    }

    /**
     * 查询质量月报S6101列表
     *
     * @param tMonthlyQualityReportS6101 质量月报S6101
     * @return 质量月报S6101
     */
    @Override
    public List<TMonthlyQualityReportS6101> selectTMonthlyQualityReportS6101List(TMonthlyQualityReportS6101 tMonthlyQualityReportS6101)
    {
        return tMonthlyQualityReportS6101Mapper.selectTMonthlyQualityReportS6101List(tMonthlyQualityReportS6101);
    }

    /**
     * 新增质量月报S6101
     *
     * @param tMonthlyQualityReportS6101 质量月报S6101
     * @return 结果
     */
    @Override
    public int insertTMonthlyQualityReportS6101(TMonthlyQualityReportS6101 tMonthlyQualityReportS6101)
    {
        tMonthlyQualityReportS6101.setCreateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS6101Mapper.insertTMonthlyQualityReportS6101(tMonthlyQualityReportS6101);
    }

    /**
     * 修改质量月报S6101
     *
     * @param tMonthlyQualityReportS6101 质量月报S6101
     * @return 结果
     */
    @Override
    public int updateTMonthlyQualityReportS6101(TMonthlyQualityReportS6101 tMonthlyQualityReportS6101)
    {
        tMonthlyQualityReportS6101.setUpdateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS6101Mapper.updateTMonthlyQualityReportS6101(tMonthlyQualityReportS6101);
    }

    /**
     * 批量删除质量月报S6101
     *
     * @param ids 需要删除的质量月报S6101ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS6101ByIds(Long[] ids)
    {
        return tMonthlyQualityReportS6101Mapper.deleteTMonthlyQualityReportS6101ByIds(ids);
    }

    /**
     * 删除质量月报S6101信息
     *
     * @param id 质量月报S6101ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS6101ById(Long id)
    {
        return tMonthlyQualityReportS6101Mapper.deleteTMonthlyQualityReportS6101ById(id);
    }
}
