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
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.EmptyParameter;
 
import java.util.List;
import java.util.Set;
 
/**
 * @Description: 虚设备参数
 * @Author: cuikaidong
 * @Date: 2025-1-7
 * @Version: V1.0
 */
public interface IEmptyParameterService extends IService<EmptyParameter> {
 
    /**
     * 根据设备ids,查询参数列表
     *
     * @param ids
     * @return
     */
    List<EmptyParameter> findParameterByEquipmentIds(Set<String> ids);
 
    /**
     * 脚本编译
     *
     * @param emptyParameter
     */
    Result<?> handleCompile(EmptyParameter emptyParameter);
 
    /**
     * 保存脚本
     *
     * @param emptyParameter
     */
    Result<?> preserveScript(EmptyParameter emptyParameter);
 
    /**
     * 根据设备id查询设备下有多少个参数
     *
     * @param equipmentId
     * @return
     */
    Integer findEmptyParameterCode(String equipmentId);
 
    /**
     * 查询虚设备下参数名称是否重复
     *
     * @return
     */
    Boolean findEmptyParameterByName(EmptyParameter emptyParameter);
 
    /**
     * 根据生成配置时间,创建对应的字段
     */
    void createEmptyEmptyField(java.util.Date deployDate, String serverId);
}