cuikaidong
2025-06-12 44e283b774bb1168d0c17dfe5070a1ca8e2274cd
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
package org.jeecg.common.util.jsonschema.validate;
 
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
import org.jeecg.common.util.jsonschema.CommonProperty;
 
import com.alibaba.fastjson.JSONObject;
 
public class PopupProperty extends CommonProperty {
    
    private static final long serialVersionUID = -3200493311633999539L;
    
    private String code;
    
    private String destFields;
    
    private String orgFields;
    
    public String getCode() {
        return code;
    }
 
    public void setCode(String code) {
        this.code = code;
    }
 
    public String getDestFields() {
        return destFields;
    }
 
    public void setDestFields(String destFields) {
        this.destFields = destFields;
    }
 
    public String getOrgFields() {
        return orgFields;
    }
 
    public void setOrgFields(String orgFields) {
        this.orgFields = orgFields;
    }
 
    public PopupProperty() {}
    
    public PopupProperty(String key,String title,String code,String destFields,String orgFields) {
        this.view = "popup";
        this.type = "string";
        this.key = key;
        this.title = title;
        this.code = code;
        this.destFields=destFields;
        this.orgFields=orgFields;
    }
    
 
    @Override
    public Map<String, Object> getPropertyJson() {
        Map<String,Object> map = new HashMap<>();
        map.put("key",getKey());
        JSONObject prop = getCommonJson();
        if(code!=null) {
            prop.put("code",code);
        }
        if(destFields!=null) {
            prop.put("destFields",destFields);
        }
        if(orgFields!=null) {
            prop.put("orgFields",orgFields);
        }
        map.put("prop",prop);
        return map;
    }
 
}