package com.jcdm.main.da.testDeviceInterfaceTemp.service.impl;
|
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.jcdm.common.utils.DateUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.jcdm.main.da.testDeviceInterfaceTemp.mapper.DaTestDeviceInterfaceTempMapper;
|
import com.jcdm.main.da.testDeviceInterfaceTemp.domain.DaTestDeviceInterfaceTemp;
|
import com.jcdm.main.da.testDeviceInterfaceTemp.service.IDaTestDeviceInterfaceTempService;
|
|
/**
|
* 测试设备接口数据备份Service业务层处理
|
*
|
* @author Yi
|
* @date 2024-07-03
|
*/
|
@Service
|
public class DaTestDeviceInterfaceTempServiceImpl extends ServiceImpl<DaTestDeviceInterfaceTempMapper, DaTestDeviceInterfaceTemp> implements IDaTestDeviceInterfaceTempService
|
{
|
@Autowired
|
private DaTestDeviceInterfaceTempMapper daTestDeviceInterfaceTempMapper;
|
|
/**
|
* 查询测试设备接口数据备份
|
*
|
* @param id 测试设备接口数据备份主键
|
* @return 测试设备接口数据备份
|
*/
|
@Override
|
public DaTestDeviceInterfaceTemp selectDaTestDeviceInterfaceTempById(Long id)
|
{
|
return daTestDeviceInterfaceTempMapper.selectDaTestDeviceInterfaceTempById(id);
|
}
|
|
/**
|
* 查询测试设备接口数据备份列表
|
*
|
* @param daTestDeviceInterfaceTemp 测试设备接口数据备份
|
* @return 测试设备接口数据备份
|
*/
|
@Override
|
public List<DaTestDeviceInterfaceTemp> selectDaTestDeviceInterfaceTempList(DaTestDeviceInterfaceTemp daTestDeviceInterfaceTemp)
|
{
|
return daTestDeviceInterfaceTempMapper.selectDaTestDeviceInterfaceTempList(daTestDeviceInterfaceTemp);
|
}
|
|
/**
|
* 新增测试设备接口数据备份
|
*
|
* @param daTestDeviceInterfaceTemp 测试设备接口数据备份
|
* @return 结果
|
*/
|
@Override
|
public int insertDaTestDeviceInterfaceTemp(DaTestDeviceInterfaceTemp daTestDeviceInterfaceTemp)
|
{
|
daTestDeviceInterfaceTemp.setCreateTime(DateUtils.getNowDate());
|
return daTestDeviceInterfaceTempMapper.insertDaTestDeviceInterfaceTemp(daTestDeviceInterfaceTemp);
|
}
|
|
/**
|
* 修改测试设备接口数据备份
|
*
|
* @param daTestDeviceInterfaceTemp 测试设备接口数据备份
|
* @return 结果
|
*/
|
@Override
|
public int updateDaTestDeviceInterfaceTemp(DaTestDeviceInterfaceTemp daTestDeviceInterfaceTemp)
|
{
|
daTestDeviceInterfaceTemp.setUpdateTime(DateUtils.getNowDate());
|
return daTestDeviceInterfaceTempMapper.updateDaTestDeviceInterfaceTemp(daTestDeviceInterfaceTemp);
|
}
|
|
/**
|
* 批量删除测试设备接口数据备份
|
*
|
* @param ids 需要删除的测试设备接口数据备份主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteDaTestDeviceInterfaceTempByIds(Long[] ids)
|
{
|
return daTestDeviceInterfaceTempMapper.deleteDaTestDeviceInterfaceTempByIds(ids);
|
}
|
|
/**
|
* 删除测试设备接口数据备份信息
|
*
|
* @param id 测试设备接口数据备份主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteDaTestDeviceInterfaceTempById(Long id)
|
{
|
return daTestDeviceInterfaceTempMapper.deleteDaTestDeviceInterfaceTempById(id);
|
}
|
}
|