package com.ruoyi.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.TUploadhistoryMapper;
import com.ruoyi.project.system.domain.TUploadhistory;
import com.ruoyi.project.system.service.ITUploadhistoryService;

/**
 * 上传数据历史Service业务层处理
 *
 * @author ruoyi
 * @date 2021-03-24
 */
@Service
public class TUploadhistoryServiceImpl implements ITUploadhistoryService
{
    @Autowired
    private TUploadhistoryMapper tUploadhistoryMapper;

    /**
     * 查询上传数据历史
     *
     * @param id 上传数据历史ID
     * @return 上传数据历史
     */
    @Override
    public TUploadhistory selectTUploadhistoryById(Long id)
    {
        return tUploadhistoryMapper.selectTUploadhistoryById(id);
    }

    /**
     * 查询上传数据历史列表
     *
     * @param tUploadhistory 上传数据历史
     * @return 上传数据历史
     */
    @Override
    public List<TUploadhistory> selectTUploadhistoryList(TUploadhistory tUploadhistory)
    {
        return tUploadhistoryMapper.selectTUploadhistoryList(tUploadhistory);
    }

    /**
     * 新增上传数据历史
     *
     * @param tUploadhistory 上传数据历史
     * @return 结果
     */
    @Override
    public int insertTUploadhistory(TUploadhistory tUploadhistory)
    {
        return tUploadhistoryMapper.insertTUploadhistory(tUploadhistory);
    }

    /**
     * 修改上传数据历史
     *
     * @param tUploadhistory 上传数据历史
     * @return 结果
     */
    @Override
    public int updateTUploadhistory(TUploadhistory tUploadhistory)
    {
        return tUploadhistoryMapper.updateTUploadhistory(tUploadhistory);
    }

}
