Commit 6d89f1fe by liuyang

2024-06-12 添加物料清单导入枚举

parent 541238a5
package com.baosight.hpjx.common;
package com.baosight.hpjx.core.enums;
import com.baosight.hpjx.hp.sc.domain.HPSC002;
......@@ -11,9 +11,14 @@ import com.baosight.hpjx.hp.sc.domain.HPSC102;
*/
public enum DocRouteEnum {
HPSC002("route_001", "HPSC002", "importData", HPSC002.class),
HPSC006("route_002", "HPSC006", "importData", HPSC006 .class),
HPSC102("route_003", "HPSC102", "importData", HPSC102.class),;
HPSC002("route_001", "", 1, "HPSC002", "importData", HPSC002.class),
HPSC006("route_002", "", 1, "HPSC006", "importData", HPSC006.class),
HPSC102("route_003", "",1,"HPSC102", "importData", HPSC102.class)
;
/**
* 唯一标识
*/
private String id;
/**
......@@ -40,7 +45,7 @@ public enum DocRouteEnum {
* 数据转换后的实体类
*/
private Class clazz;
<T> DocRouteEnum(String id, String templateUrl, int startRow, String serviceNme, String methodName,
Class<T> clazz) {
this.id = id;
......@@ -50,7 +55,7 @@ public enum DocRouteEnum {
this.methodName = methodName;
this.clazz = clazz;
}
/**
* 根据ID获取枚举
*
......@@ -65,11 +70,11 @@ public enum DocRouteEnum {
}
return null;
}
public String getId() {
return id;
}
public String getTemplateUrl() {
return templateUrl;
}
......@@ -81,11 +86,11 @@ public enum DocRouteEnum {
public String getServiceNme() {
return serviceNme;
}
public String getMethodName() {
return methodName;
}
public Class getClazz() {
return clazz;
}
......
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