package com.billion.main.sc.service.impl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.billion.common.utils.DateUtils;
|
import com.billion.main.sc.domain.ScCollectionParamConf;
|
import com.billion.main.sc.mapper.ScCollectionParamConfMapper;
|
import com.billion.main.sc.service.IScCollectionParamConfService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* 参数采集配置Service业务层处理
|
*
|
* @author HDY
|
* @date 2024-11-21
|
*/
|
@Service
|
public class ScCollectionParamConfServiceImpl extends ServiceImpl<ScCollectionParamConfMapper, ScCollectionParamConf> implements IScCollectionParamConfService
|
{
|
@Autowired
|
private ScCollectionParamConfMapper scCollectionParamConfMapper;
|
|
/**
|
* 查询参数采集配置
|
*
|
* @param id 参数采集配置主键
|
* @return 参数采集配置
|
*/
|
@Override
|
public ScCollectionParamConf selectScCollectionParamConfById(Long id)
|
{
|
return scCollectionParamConfMapper.selectScCollectionParamConfById(id);
|
}
|
|
/**
|
* 查询参数采集配置列表
|
*
|
* @param scCollectionParamConf 参数采集配置
|
* @return 参数采集配置
|
*/
|
@Override
|
public List<ScCollectionParamConf> selectScCollectionParamConfList(ScCollectionParamConf scCollectionParamConf)
|
{
|
return scCollectionParamConfMapper.selectScCollectionParamConfList(scCollectionParamConf);
|
}
|
|
/**
|
* 新增参数采集配置
|
*
|
* @param scCollectionParamConf 参数采集配置
|
* @return 结果
|
*/
|
@Override
|
public int insertScCollectionParamConf(ScCollectionParamConf scCollectionParamConf)
|
{
|
scCollectionParamConf.setCreateTime(DateUtils.getNowDate());
|
return scCollectionParamConfMapper.insertScCollectionParamConf(scCollectionParamConf);
|
}
|
|
/**
|
* 修改参数采集配置
|
*
|
* @param scCollectionParamConf 参数采集配置
|
* @return 结果
|
*/
|
@Override
|
public int updateScCollectionParamConf(ScCollectionParamConf scCollectionParamConf)
|
{
|
scCollectionParamConf.setUpdateTime(DateUtils.getNowDate());
|
return scCollectionParamConfMapper.updateScCollectionParamConf(scCollectionParamConf);
|
}
|
|
/**
|
* 批量删除参数采集配置
|
*
|
* @param ids 需要删除的参数采集配置主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteScCollectionParamConfByIds(Long[] ids)
|
{
|
return scCollectionParamConfMapper.deleteScCollectionParamConfByIds(ids);
|
}
|
|
/**
|
* 删除参数采集配置信息
|
*
|
* @param id 参数采集配置主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteScCollectionParamConfById(Long id)
|
{
|
return scCollectionParamConfMapper.deleteScCollectionParamConfById(id);
|
}
|
}
|