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.RecordWorkprocedureamountDayMapper;
import com.ruoyi.report.domain.RecordWorkprocedureamountDay;
import com.ruoyi.report.service.IRecordWorkprocedureamountDayService;
import com.ruoyi.common.core.text.Convert;

/**
 * 工序产量日报Service业务层处理
 * 
 * @author CaesarBao
 * @date 2020-11-03
 */
@Service
public class RecordWorkprocedureamountDayServiceImpl implements IRecordWorkprocedureamountDayService 
{
    @Autowired
    private RecordWorkprocedureamountDayMapper recordWorkprocedureamountDayMapper;

    /**
     * 查询工序产量日报
     * 
     * @param objid 工序产量日报ID
     * @return 工序产量日报
     */
    @Override
    public RecordWorkprocedureamountDay selectRecordWorkprocedureamountDayById(Long objid)
    {
        return recordWorkprocedureamountDayMapper.selectRecordWorkprocedureamountDayById(objid);
    }

    /**
     * 查询工序产量日报列表
     * 
     * @param recordWorkprocedureamountDay 工序产量日报
     * @return 工序产量日报
     */
    @Override
    public List<RecordWorkprocedureamountDay> selectRecordWorkprocedureamountDayList(RecordWorkprocedureamountDay recordWorkprocedureamountDay)
    {
        return recordWorkprocedureamountDayMapper.selectRecordWorkprocedureamountDayList(recordWorkprocedureamountDay);
    }

    /**
     * 新增工序产量日报
     * 
     * @param recordWorkprocedureamountDay 工序产量日报
     * @return 结果
     */
    @Override
    public int insertRecordWorkprocedureamountDay(RecordWorkprocedureamountDay recordWorkprocedureamountDay)
    {
        return recordWorkprocedureamountDayMapper.insertRecordWorkprocedureamountDay(recordWorkprocedureamountDay);
    }

    /**
     * 修改工序产量日报
     * 
     * @param recordWorkprocedureamountDay 工序产量日报
     * @return 结果
     */
    @Override
    public int updateRecordWorkprocedureamountDay(RecordWorkprocedureamountDay recordWorkprocedureamountDay)
    {
        return recordWorkprocedureamountDayMapper.updateRecordWorkprocedureamountDay(recordWorkprocedureamountDay);
    }

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

    /**
     * 删除工序产量日报信息
     * 
     * @param objid 工序产量日报ID
     * @return 结果
     */
    @Override
    public int deleteRecordWorkprocedureamountDayById(Long objid)
    {
        return recordWorkprocedureamountDayMapper.deleteRecordWorkprocedureamountDayById(objid);
    }
}
