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.RecordDeviceamountDayMapper;
import com.ruoyi.report.domain.RecordDeviceamountDay;
import com.ruoyi.report.service.IRecordDeviceamountDayService;
import com.ruoyi.common.core.text.Convert;

/**
 * 设备产量日报Service业务层处理
 * 
 * @author CaesarBao
 * @date 2020-11-03
 */
@Service
public class RecordDeviceamountDayServiceImpl implements IRecordDeviceamountDayService 
{
    @Autowired
    private RecordDeviceamountDayMapper recordDeviceamountDayMapper;

    /**
     * 查询设备产量日报
     * 
     * @param objid 设备产量日报ID
     * @return 设备产量日报
     */
    @Override
    public RecordDeviceamountDay selectRecordDeviceamountDayById(Long objid)
    {
        return recordDeviceamountDayMapper.selectRecordDeviceamountDayById(objid);
    }

    /**
     * 查询设备产量日报列表
     * 
     * @param recordDeviceamountDay 设备产量日报
     * @return 设备产量日报
     */
    @Override
    public List<RecordDeviceamountDay> selectRecordDeviceamountDayList(RecordDeviceamountDay recordDeviceamountDay)
    {
        return recordDeviceamountDayMapper.selectRecordDeviceamountDayList(recordDeviceamountDay);
    }

    /**
     * 新增设备产量日报
     * 
     * @param recordDeviceamountDay 设备产量日报
     * @return 结果
     */
    @Override
    public int insertRecordDeviceamountDay(RecordDeviceamountDay recordDeviceamountDay)
    {
        return recordDeviceamountDayMapper.insertRecordDeviceamountDay(recordDeviceamountDay);
    }

    /**
     * 修改设备产量日报
     * 
     * @param recordDeviceamountDay 设备产量日报
     * @return 结果
     */
    @Override
    public int updateRecordDeviceamountDay(RecordDeviceamountDay recordDeviceamountDay)
    {
        return recordDeviceamountDayMapper.updateRecordDeviceamountDay(recordDeviceamountDay);
    }

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

    /**
     * 删除设备产量日报信息
     * 
     * @param objid 设备产量日报ID
     * @return 结果
     */
    @Override
    public int deleteRecordDeviceamountDayById(Long objid)
    {
        return recordDeviceamountDayMapper.deleteRecordDeviceamountDayById(objid);
    }
}
