package com.aucma.report.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aucma.report.mapper.BoxTemperatureHistoryMapper;
import com.aucma.report.domain.BoxTemperatureHistory;
import com.aucma.report.service.IBoxTemperatureHistoryService;

/**
 * 测温记录报表Service业务层处理
 * 
 * @author Yinq
 * @date 2024-03-13
 */
@Service
public class BoxTemperatureHistoryServiceImpl implements IBoxTemperatureHistoryService 
{
    @Autowired
    private BoxTemperatureHistoryMapper boxTemperatureHistoryMapper;

    /**
     * 查询测温记录报表
     * 
     * @param objId 测温记录报表主键
     * @return 测温记录报表
     */
    @Override
    public BoxTemperatureHistory selectBoxTemperatureHistoryByObjId(Long objId)
    {
        return boxTemperatureHistoryMapper.selectBoxTemperatureHistoryByObjId(objId);
    }

    /**
     * 查询测温记录报表列表
     * 
     * @param boxTemperatureHistory 测温记录报表
     * @return 测温记录报表
     */
    @Override
    public List<BoxTemperatureHistory> selectBoxTemperatureHistoryList(BoxTemperatureHistory boxTemperatureHistory)
    {
        return boxTemperatureHistoryMapper.selectBoxTemperatureHistoryList(boxTemperatureHistory);
    }

    /**
     * 新增测温记录报表
     * 
     * @param boxTemperatureHistory 测温记录报表
     * @return 结果
     */
    @Override
    public int insertBoxTemperatureHistory(BoxTemperatureHistory boxTemperatureHistory)
    {
        return boxTemperatureHistoryMapper.insertBoxTemperatureHistory(boxTemperatureHistory);
    }

    /**
     * 修改测温记录报表
     * 
     * @param boxTemperatureHistory 测温记录报表
     * @return 结果
     */
    @Override
    public int updateBoxTemperatureHistory(BoxTemperatureHistory boxTemperatureHistory)
    {
        return boxTemperatureHistoryMapper.updateBoxTemperatureHistory(boxTemperatureHistory);
    }

    /**
     * 批量删除测温记录报表
     * 
     * @param objIds 需要删除的测温记录报表主键
     * @return 结果
     */
    @Override
    public int deleteBoxTemperatureHistoryByObjIds(Long[] objIds)
    {
        return boxTemperatureHistoryMapper.deleteBoxTemperatureHistoryByObjIds(objIds);
    }

    /**
     * 删除测温记录报表信息
     * 
     * @param objId 测温记录报表主键
     * @return 结果
     */
    @Override
    public int deleteBoxTemperatureHistoryByObjId(Long objId)
    {
        return boxTemperatureHistoryMapper.deleteBoxTemperatureHistoryByObjId(objId);
    }
}
