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.ScOpcConf;
|
import com.billion.main.sc.mapper.ScOpcConfMapper;
|
import com.billion.main.sc.service.IScOpcConfService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* OPC交互配置Service业务层处理
|
*
|
* @author HDY
|
* @date 2024-11-20
|
*/
|
@Service
|
public class ScOpcConfServiceImpl extends ServiceImpl<ScOpcConfMapper, ScOpcConf> implements IScOpcConfService
|
{
|
@Autowired
|
private ScOpcConfMapper scOpcConfMapper;
|
|
/**
|
* 查询OPC交互配置
|
*
|
* @param id OPC交互配置主键
|
* @return OPC交互配置
|
*/
|
@Override
|
public ScOpcConf selectScOpcConfById(Long id)
|
{
|
return scOpcConfMapper.selectScOpcConfById(id);
|
}
|
|
/**
|
* 查询OPC交互配置列表
|
*
|
* @param scOpcConf OPC交互配置
|
* @return OPC交互配置
|
*/
|
@Override
|
public List<ScOpcConf> selectScOpcConfList(ScOpcConf scOpcConf)
|
{
|
return scOpcConfMapper.selectScOpcConfList(scOpcConf);
|
}
|
|
/**
|
* 新增OPC交互配置
|
*
|
* @param scOpcConf OPC交互配置
|
* @return 结果
|
*/
|
@Override
|
public int insertScOpcConf(ScOpcConf scOpcConf)
|
{
|
scOpcConf.setCreateTime(DateUtils.getNowDate());
|
return scOpcConfMapper.insertScOpcConf(scOpcConf);
|
}
|
|
/**
|
* 修改OPC交互配置
|
*
|
* @param scOpcConf OPC交互配置
|
* @return 结果
|
*/
|
@Override
|
public int updateScOpcConf(ScOpcConf scOpcConf)
|
{
|
scOpcConf.setUpdateTime(DateUtils.getNowDate());
|
return scOpcConfMapper.updateScOpcConf(scOpcConf);
|
}
|
|
/**
|
* 批量删除OPC交互配置
|
*
|
* @param ids 需要删除的OPC交互配置主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteScOpcConfByIds(Long[] ids)
|
{
|
return scOpcConfMapper.deleteScOpcConfByIds(ids);
|
}
|
|
/**
|
* 删除OPC交互配置信息
|
*
|
* @param id OPC交互配置主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteScOpcConfById(Long id)
|
{
|
return scOpcConfMapper.deleteScOpcConfById(id);
|
}
|
}
|