package org.jeecg.modules.iot.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import org.jeecg.common.api.vo.Result;
|
import org.jeecg.modules.iot.entity.Equipment;
|
import org.jeecg.modules.iot.entity.xmlEntity.*;
|
import org.jeecg.modules.iot.entity.xmlEntity.script.FunctionEntity;
|
|
import javax.xml.crypto.Data;
|
import java.util.List;
|
|
/**
|
* @Description: 设备
|
* @Author: cuikaidong
|
* @Date: 2024-12-23
|
* @Version: V1.0
|
*/
|
public interface IEquipmentService extends IService<Equipment> {
|
|
/**
|
* 查询系统类型列表
|
*
|
* @return
|
*/
|
List<SystemType> findProjectCode();
|
|
/**
|
* 根据服务器id查询设备订阅列表
|
*
|
* @return
|
*/
|
Object[] queryEquipmentSubscribeList(String id);
|
|
/**
|
* 根据系统类型查询控制系统列表
|
*/
|
List<ControlSystem> findControlSystems(String type);
|
|
/**
|
* 查询字节顺序列表
|
*/
|
List<ByteOrder> findByteOrder();
|
|
/**
|
* 查询参数类型列表
|
*/
|
List<SystemDataType> findSystemDataTypeList();
|
|
/**
|
* 根据参数组id查询设备采集参数
|
*/
|
List<Parameter> findParameterById(String id);
|
|
/**
|
* 根据参数组id查询设备自定义采集参数
|
*/
|
List<Parameter> findParameterCustomizeById(String id);
|
|
/**
|
* 根据参数组id查询设备采集参数类型
|
*/
|
List<Parameter> findDataTypeById(String id);
|
|
/**
|
* 根据服务器id查询设备列表
|
*
|
* @return
|
*/
|
List<Equipment> findEquipmentByServerId(String id);
|
|
/**
|
* 查询当前服务器下设备名称是否重复
|
* type 1 实设备,0虚设备
|
*
|
* @return
|
*/
|
Boolean findEquipmentByName(Equipment equipment, Integer type);
|
|
/**
|
* 查询当前服务器下设备编号是否重复
|
*
|
* @return
|
*/
|
Boolean findEquipmentByCode(Equipment equipment);
|
|
/**
|
* 查询函数信息
|
*/
|
List<FunctionEntity> findFunctionInformationList(String functionType);
|
|
/**
|
* 根据生成配置时间,创建对应的表
|
*/
|
void createEmptyEquipmentTable(java.util.Date deployDate, String serverId);
|
|
/**
|
* 虚设备添加
|
*
|
* @param equipment
|
* @return
|
*/
|
Result<?> addEmpty(Equipment equipment);
|
|
/**
|
* 根据设备编码查询设备信息
|
*
|
* @return
|
*/
|
Equipment findEquipmentByCode(String id);
|
|
/**
|
* 写入influxdb数据
|
*
|
* @return
|
*/
|
void insertMysqlData(String tableName, String[] columns, Object[] values);
|
}
|