Commit 91ba21e4 authored by suhuiguang's avatar suhuiguang

1.TEST

parent 1f73d507
Pipeline #240 passed with stage
in 3 minutes 53 seconds
package com.yeejoin.amos.latentdanger.common.enums;
import com.yeejoin.amos.boot.biz.common.utils.DynamicEnumUtil;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import java.util.HashMap;
import java.util.Map;
......@@ -108,13 +106,14 @@ public enum LatentDangerLevelEnum {
public static LatentDangerLevelEnum addEnumDynamic(String enumName, String name, String code,
String riskSourceDangerLevelCode, Integer order) {
LatentDangerLevelEnum dangerLevelEnum = DynamicEnumUtil.addEnum(LatentDangerLevelEnum.class, enumName,
new Class[]{String.class, String.class, String.class, Integer.class}, new Object[]{name, code,
riskSourceDangerLevelCode, order});
if (!ValidationUtil.isEmpty(dangerLevelEnum)) {
supervisionDangerLevelEnumMap.put(code, dangerLevelEnum);
}
return dangerLevelEnum;
// LatentDangerLevelEnum dangerLevelEnum = DynamicEnumUtil.addEnum(LatentDangerLevelEnum.class, enumName,
// new Class[]{String.class, String.class, String.class, Integer.class}, new Object[]{name, code,
// riskSourceDangerLevelCode, order});
// if (!ValidationUtil.isEmpty(dangerLevelEnum)) {
// supervisionDangerLevelEnumMap.put(code, dangerLevelEnum);
// }
// return dangerLevelEnum;
return null;
}
public String getName() {
......
package com.yeejoin.amos.latentdanger.common.enums;
import com.yeejoin.amos.boot.biz.common.utils.DynamicEnumUtil;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import java.util.HashMap;
......@@ -86,11 +85,12 @@ public enum LatentDangerReformTypeEnum {
}
public static LatentDangerReformTypeEnum addEnumDynamic(String enumName, String name, String code) {
LatentDangerReformTypeEnum dangerReformTypeEnum = DynamicEnumUtil.addEnum(LatentDangerReformTypeEnum.class, enumName,
new Class[]{String.class, String.class}, new Object[]{name, code});
if (!ValidationUtil.isEmpty(dangerReformTypeEnum)) {
supervisionReformTypeEnumMap.put(code, dangerReformTypeEnum);
}
return dangerReformTypeEnum;
// LatentDangerReformTypeEnum dangerReformTypeEnum = DynamicEnumUtil.addEnum(LatentDangerReformTypeEnum.class, enumName,
// new Class[]{String.class, String.class}, new Object[]{name, code});
// if (!ValidationUtil.isEmpty(dangerReformTypeEnum)) {
// supervisionReformTypeEnumMap.put(code, dangerReformTypeEnum);
// }
// return dangerReformTypeEnum;
return null;
}
}
package com.yeejoin.amos.latentdanger.common.enums;
import com.yeejoin.amos.boot.biz.common.utils.DynamicEnumUtil;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import java.util.HashMap;
import java.util.Map;
......@@ -63,11 +61,12 @@ public enum LatentDangerStateEnum {
}
public static LatentDangerStateEnum addEnumDynamic(String enumName, String name, String code) {
LatentDangerStateEnum dangerStateEnum = DynamicEnumUtil.addEnum(LatentDangerStateEnum.class, enumName,
new Class[]{String.class, String.class}, new Object[]{name, code});
if (!ValidationUtil.isEmpty(dangerStateEnum)) {
enumMap.put(code, dangerStateEnum);
}
return dangerStateEnum;
// LatentDangerStateEnum dangerStateEnum = DynamicEnumUtil.addEnum(LatentDangerStateEnum.class, enumName,
// new Class[]{String.class, String.class}, new Object[]{name, code});
// if (!ValidationUtil.isEmpty(dangerStateEnum)) {
// enumMap.put(code, dangerStateEnum);
// }
// return dangerStateEnum;
return null;
}
}
......@@ -16,7 +16,6 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import org.typroject.tyboot.core.restful.utils.ResponseModel;
import sun.reflect.generics.tree.VoidDescriptor;
import java.util.List;
import java.util.Map;
......
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