package com.jcdm.main.da.collectionParamConf.service.impl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.jcdm.common.utils.DateUtils;
|
import com.jcdm.main.da.collectionParamConf.domain.DaCollectionParamConf;
|
import com.jcdm.main.da.collectionParamConf.mapper.DaCollectionParamConfMapper;
|
import com.jcdm.main.da.collectionParamConf.service.IDaCollectionParamConfService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* 采集参数配置Service业务层处理
|
*
|
* @author ruimin
|
* @date 2023-12-25
|
*/
|
@Service
|
public class DaCollectionParamConfServiceImpl extends ServiceImpl<DaCollectionParamConfMapper,DaCollectionParamConf> implements IDaCollectionParamConfService
|
{
|
@Autowired
|
private DaCollectionParamConfMapper daCollectionParamConfMapper;
|
|
/**
|
* 查询采集参数配置
|
*
|
* @param id 采集参数配置主键
|
* @return 采集参数配置
|
*/
|
@Override
|
public DaCollectionParamConf selectDaCollectionParamConfById(Long id)
|
{
|
return daCollectionParamConfMapper.selectDaCollectionParamConfById(id);
|
}
|
|
/**
|
* 查询采集参数配置列表
|
*
|
* @param daCollectionParamConf 采集参数配置
|
* @return 采集参数配置
|
*/
|
@Override
|
public List<DaCollectionParamConf> selectDaCollectionParamConfList(DaCollectionParamConf daCollectionParamConf)
|
{
|
return daCollectionParamConfMapper.selectDaCollectionParamConfList(daCollectionParamConf);
|
}
|
|
/**
|
* 新增采集参数配置
|
*
|
* @param daCollectionParamConf 采集参数配置
|
* @return 结果
|
*/
|
@Override
|
public int insertDaCollectionParamConf(DaCollectionParamConf daCollectionParamConf)
|
{
|
daCollectionParamConf.setCreateTime(DateUtils.getNowDate());
|
return daCollectionParamConfMapper.insertDaCollectionParamConf(daCollectionParamConf);
|
}
|
|
/**
|
* 修改采集参数配置
|
*
|
* @param daCollectionParamConf 采集参数配置
|
* @return 结果
|
*/
|
@Override
|
public int updateDaCollectionParamConf(DaCollectionParamConf daCollectionParamConf)
|
{
|
daCollectionParamConf.setUpdateTime(DateUtils.getNowDate());
|
return daCollectionParamConfMapper.updateDaCollectionParamConf(daCollectionParamConf);
|
}
|
|
/**
|
* 批量删除采集参数配置
|
*
|
* @param ids 需要删除的采集参数配置主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteDaCollectionParamConfByIds(Long[] ids)
|
{
|
return daCollectionParamConfMapper.deleteDaCollectionParamConfByIds(ids);
|
}
|
|
/**
|
* 删除采集参数配置信息
|
*
|
* @param id 采集参数配置主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteDaCollectionParamConfById(Long id)
|
{
|
return daCollectionParamConfMapper.deleteDaCollectionParamConfById(id);
|
}
|
}
|