新火炬后端单体项目初始化代码
zhangherong
2025-06-26 e403747d53db86c9de3986e9b281d35279446567
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
package org.jeecg.common.system.query;
 
import lombok.Getter;
import org.jeecg.common.util.oConvertUtils;
 
/**
 * 查询链接规则
 *
 * @Author Sunjianlei
 */
@Getter
public enum MatchTypeEnum {
 
    /**查询链接规则 AND*/
    AND("AND"),
    /**查询链接规则 OR*/
    OR("OR");
 
    private String value;
 
    MatchTypeEnum(String value) {
        this.value = value;
    }
 
    public static MatchTypeEnum getByValue(String value) {
        if (oConvertUtils.isEmpty(value)) {
            return null;
        }
        for (MatchTypeEnum val : values()) {
            if (val.getValue().equalsIgnoreCase(value)) {
                return val;
            }
        }
        return null;
    }
}