yangys
2024-11-02 f69073b835f1a0c66590130e1830edcdd75ebb8a
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
package com.qianwen.smartman.modules.smis.vo;
 
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qianwen.core.tenant.mp.TenantEntity;
import com.qianwen.core.tool.utils.ObjectUtil;
 
import io.swagger.annotations.ApiModelProperty;
 
 
/**
 * 采集模板
 */
 
public class CollectTemplateVO {
    private static final long serialVersionUID = 1;
    private long id;
    
    @ApiModelProperty("模板名称")
    private String name;
    
    @ApiModelProperty("模板类型")
    private Integer type;
    
    @ApiModelProperty("点位配置(json数组)")
    private String dpConfig;
 
    public long getId() {
        return id;
    }
 
    public void setId(long id) {
        this.id = id;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public Integer getType() {
        return type;
    }
 
    public void setType(Integer type) {
        this.type = type;
    }
 
    public String getDpConfig() {
        return dpConfig;
    }
 
    public void setDpConfig(String dpConfig) {
        this.dpConfig = dpConfig;
    }
    
    public JSONArray getDpConfigJson() {
        //JSONValidator
        if(ObjectUtil.isNotEmpty(this.dpConfig)) {
            return JSONArray.parseArray(dpConfig);
        }else {
            return JSONArray.parseArray("[]");
        }
            
    }
 
}