cuikaidong
2025-06-12 066063ed92fdd40da4dfe21770557f3adba3e1af
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
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);
}