package com.ruoyi.report.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.report.mapper.RecordMaterialcodeamountDayMapper;
import com.ruoyi.report.domain.RecordMaterialcodeamountDay;
import com.ruoyi.report.service.IRecordMaterialcodeamountDayService;
import com.ruoyi.common.core.text.Convert;

/**
 * 规格产量日报Service业务层处理
 * 
 * @author CaesarBao
 * @date 2020-11-04
 */
@Service
public class RecordMaterialcodeamountDayServiceImpl implements IRecordMaterialcodeamountDayService 
{
    @Autowired
    private RecordMaterialcodeamountDayMapper recordMaterialcodeamountDayMapper;

    /**
     * 查询规格产量日报
     * 
     * @param objid 规格产量日报ID
     * @return 规格产量日报
     */
    @Override
    public RecordMaterialcodeamountDay selectRecordMaterialcodeamountDayById(Long objid)
    {
        return recordMaterialcodeamountDayMapper.selectRecordMaterialcodeamountDayById(objid);
    }

    /**
     * 查询规格产量日报列表
     * 
     * @param recordMaterialcodeamountDay 规格产量日报
     * @return 规格产量日报
     */
    @Override
    public List<RecordMaterialcodeamountDay> selectRecordMaterialcodeamountDayList(RecordMaterialcodeamountDay recordMaterialcodeamountDay)
    {
        return recordMaterialcodeamountDayMapper.selectRecordMaterialcodeamountDayList(recordMaterialcodeamountDay);
    }

    /**
     * 新增规格产量日报
     * 
     * @param recordMaterialcodeamountDay 规格产量日报
     * @return 结果
     */
    @Override
    public int insertRecordMaterialcodeamountDay(RecordMaterialcodeamountDay recordMaterialcodeamountDay)
    {
        return recordMaterialcodeamountDayMapper.insertRecordMaterialcodeamountDay(recordMaterialcodeamountDay);
    }

    /**
     * 修改规格产量日报
     * 
     * @param recordMaterialcodeamountDay 规格产量日报
     * @return 结果
     */
    @Override
    public int updateRecordMaterialcodeamountDay(RecordMaterialcodeamountDay recordMaterialcodeamountDay)
    {
        return recordMaterialcodeamountDayMapper.updateRecordMaterialcodeamountDay(recordMaterialcodeamountDay);
    }

    /**
     * 删除规格产量日报对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteRecordMaterialcodeamountDayByIds(String ids)
    {
        return recordMaterialcodeamountDayMapper.deleteRecordMaterialcodeamountDayByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除规格产量日报信息
     * 
     * @param objid 规格产量日报ID
     * @return 结果
     */
    @Override
    public int deleteRecordMaterialcodeamountDayById(Long objid)
    {
        return recordMaterialcodeamountDayMapper.deleteRecordMaterialcodeamountDayById(objid);
    }
}
