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;
|
}
|
}
|