Commit 7e007d18 by jianan

出账检核-增加币种49

parent 58d0380b
package com.yd.csf.service.enums;
import org.apache.commons.lang3.StringUtils;
/**
* 项目类型码枚举
* XS("销售佣金", "1")
......@@ -47,11 +49,11 @@ public enum FortuneTypeEnum {
* @return 对应的枚举实例
*/
public static FortuneTypeEnum getByItemValue(String itemValue) {
if (itemValue == null) {
return null;
if (StringUtils.isBlank(itemValue)) {
throw new IllegalArgumentException("itemValue is blank");
}
for (FortuneTypeEnum type : FortuneTypeEnum.values()) {
if (type.getItemValue().equals(itemValue)) {
if (type.itemValue.equals(itemValue)) {
return type;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment