|
@@ -4,7 +4,6 @@ import com.diagbot.core.KeyedNamed;
|
|
|
import lombok.Setter;
|
|
|
|
|
|
/**
|
|
|
- *
|
|
|
* @author wangfeng
|
|
|
* @Description: TODO
|
|
|
* @date 2018年11月21日 下午2:31:42
|
|
@@ -26,7 +25,7 @@ public enum StatusEnum implements KeyedNamed {
|
|
|
|
|
|
public static StatusEnum getEnum(Integer key) {
|
|
|
for (StatusEnum item : StatusEnum.values()) {
|
|
|
- if (item.key == key) {
|
|
|
+ if (item.key.equals(key)) {
|
|
|
return item;
|
|
|
}
|
|
|
}
|