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.TMonthlyQualityReportS2400Mapper;
import com.ruoyi.project.production.domain.TMonthlyQualityReportS2400;
import com.ruoyi.project.production.service.ITMonthlyQualityReportS2400Service;

/**
 * 质量月报S2400Service业务层处理
 *
 * @author ruoyi
 * @date 2023-10-27
 */
@Service
public class TMonthlyQualityReportS2400ServiceImpl implements ITMonthlyQualityReportS2400Service
{
    @Autowired
    private TMonthlyQualityReportS2400Mapper tMonthlyQualityReportS2400Mapper;

    /**
     * 查询质量月报S2400
     *
     * @param id 质量月报S2400ID
     * @return 质量月报S2400
     */
    @Override
    public TMonthlyQualityReportS2400 selectTMonthlyQualityReportS2400ById(Long id)
    {
        return tMonthlyQualityReportS2400Mapper.selectTMonthlyQualityReportS2400ById(id);
    }

    /**
     * 查询质量月报S2400列表
     *
     * @param tMonthlyQualityReportS2400 质量月报S2400
     * @return 质量月报S2400
     */
    @Override
    public List<TMonthlyQualityReportS2400> selectTMonthlyQualityReportS2400List(TMonthlyQualityReportS2400 tMonthlyQualityReportS2400)
    {
        return tMonthlyQualityReportS2400Mapper.selectTMonthlyQualityReportS2400List(tMonthlyQualityReportS2400);
    }

    /**
     * 新增质量月报S2400
     *
     * @param tMonthlyQualityReportS2400 质量月报S2400
     * @return 结果
     */
    @Override
    public int insertTMonthlyQualityReportS2400(TMonthlyQualityReportS2400 tMonthlyQualityReportS2400)
    {
        tMonthlyQualityReportS2400.setCreateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS2400Mapper.insertTMonthlyQualityReportS2400(tMonthlyQualityReportS2400);
    }

    /**
     * 修改质量月报S2400
     *
     * @param tMonthlyQualityReportS2400 质量月报S2400
     * @return 结果
     */
    @Override
    public int updateTMonthlyQualityReportS2400(TMonthlyQualityReportS2400 tMonthlyQualityReportS2400)
    {
        tMonthlyQualityReportS2400.setUpdateTime(DateUtils.getNowDate());
        return tMonthlyQualityReportS2400Mapper.updateTMonthlyQualityReportS2400(tMonthlyQualityReportS2400);
    }

    /**
     * 批量删除质量月报S2400
     *
     * @param ids 需要删除的质量月报S2400ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS2400ByIds(Long[] ids)
    {
        return tMonthlyQualityReportS2400Mapper.deleteTMonthlyQualityReportS2400ByIds(ids);
    }

    /**
     * 删除质量月报S2400信息
     *
     * @param id 质量月报S2400ID
     * @return 结果
     */
    @Override
    public int deleteTMonthlyQualityReportS2400ById(Long id)
    {
        return tMonthlyQualityReportS2400Mapper.deleteTMonthlyQualityReportS2400ById(id);
    }
}
