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