AdaKing88
2023-08-23 ae35159387a55199e8ab150ebb97d89d68a235bd
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
package org.jeecg.common.system.query;
 
import java.io.Serializable;
 
/**
 * @Description: QueryCondition
 * @author: jeecg-boot
 */
public class QueryCondition implements Serializable {
 
    private static final long serialVersionUID = 4740166316629191651L;
    
    private String field;
    /** 组件的类型(例如:input、select、radio) */
    private String type;
    /**
     * 对应的数据库字段的类型
     * 支持:int、bigDecimal、short、long、float、double、boolean
     */
    private String dbType;
    private String rule;
    private String val;
    
    public String getField() {
        return field;
    }
 
    public void setField(String field) {
        this.field = field;
    }
 
    public String getType() {
        return type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
 
    public String getDbType() {
        return dbType;
    }
 
    public void setDbType(String dbType) {
        this.dbType = dbType;
    }
 
    public String getRule() {
        return rule;
    }
 
    public void setRule(String rule) {
        this.rule = rule;
    }
 
    public String getVal() {
        return val;
    }
 
    public void setVal(String val) {
        this.val = val;
    }
 
    @Override
    public String toString(){
        StringBuffer sb =new StringBuffer();
        if(field == null || "".equals(field)){
            return "";
        }
        sb.append(this.field).append(" ").append(this.rule).append(" ").append(this.type).append(" ").append(this.dbType).append(" ").append(this.val);
        return sb.toString();
    }
}