| | |
| | | package org.jeecg.common.system.query; |
| | | |
| | | import lombok.Getter; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | |
| | | /** |
| | |
| | | * |
| | | * @Author Sunjianlei |
| | | */ |
| | | @Getter |
| | | public enum MatchTypeEnum { |
| | | |
| | | /**查询链接规则 AND*/ |
| | |
| | | this.value = value; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public static MatchTypeEnum getByValue(Object value) { |
| | | if (oConvertUtils.isEmpty(value)) { |
| | | return null; |
| | | } |
| | | return getByValue(value.toString()); |
| | | } |
| | | |
| | | public static MatchTypeEnum getByValue(String value) { |
| | | if (oConvertUtils.isEmpty(value)) { |
| | | return null; |
| | | } |
| | | for (MatchTypeEnum val : values()) { |
| | | if (val.getValue().toLowerCase().equals(value.toLowerCase())) { |
| | | if (val.getValue().equalsIgnoreCase(value)) { |
| | | return val; |
| | | } |
| | | } |