Commit 88067595 by gaopeng

作品应用类型映射枚举类加方法

parent b435d651
...@@ -62,4 +62,24 @@ public enum AppProductTypeEnum { ...@@ -62,4 +62,24 @@ public enum AppProductTypeEnum {
} }
return null; return null;
} }
/**
* 根据作品类型编码获取应用类型编码
* @param productTypeCode 作品类型编码
* @return
*/
public static String getAppTypeCodeByProductTypeCode(String productTypeCode) {
if (StringUtil.isEmpty(productTypeCode)) {
return null;
}
AppProductTypeEnum[] var1 = values();
int var2 = var1.length;
for (int var3 = 0; var3 < var2; ++var3) {
AppProductTypeEnum appProductTypeEnum = var1[var3];
if (appProductTypeEnum.productTypeCode.equals(productTypeCode)) {
return appProductTypeEnum.appTypeCode;
}
}
return null;
}
} }
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