forked from angelo/java-retail-app
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
7d4e5ba0a9
|
@ -46,4 +46,16 @@ public enum EWaresType {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String getEnumLabelByValue(Integer value) {
|
||||
if (null == value) {
|
||||
return "";
|
||||
}
|
||||
for (EWaresType eApproveStatus : EWaresType.values()) {
|
||||
if (eApproveStatus.getValue().equals(value)) {
|
||||
return eApproveStatus.getLabel();
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue