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 { /** * 查询系统类型列表 * * @return */ List findProjectCode(); /** * 根据服务器id查询设备订阅列表 * * @return */ Object[] queryEquipmentSubscribeList(String id); /** * 根据系统类型查询控制系统列表 */ List findControlSystems(String type); /** * 查询字节顺序列表 */ List findByteOrder(); /** * 查询参数类型列表 */ List findSystemDataTypeList(); /** * 根据参数组id查询设备采集参数 */ List findParameterById(String id); /** * 根据参数组id查询设备自定义采集参数 */ List findParameterCustomizeById(String id); /** * 根据参数组id查询设备采集参数类型 */ List findDataTypeById(String id); /** * 根据服务器id查询设备列表 * * @return */ List findEquipmentByServerId(String id); /** * 查询当前服务器下设备名称是否重复 * type 1 实设备,0虚设备 * * @return */ Boolean findEquipmentByName(Equipment equipment, Integer type); /** * 查询当前服务器下设备编号是否重复 * * @return */ Boolean findEquipmentByCode(Equipment equipment); /** * 查询函数信息 */ List 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); }