forked from angelo/java-retail-app
## Feat - 迁移产品销售统计
This commit is contained in:
parent
1789bfbcd5
commit
b96864383a
|
@ -46,4 +46,16 @@ public enum EWaresType {
|
||||||
}
|
}
|
||||||
return null;
|
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