|
|
|
@ -17,35 +17,54 @@ public class CommonEnumUtil {
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum SOFT_TYPE {
|
|
|
|
|
IMPP(1, "impp-platform", "IMPP平台"),
|
|
|
|
|
CORE(2, "i3core", "i3业务平台"),
|
|
|
|
|
WMS(3, "i3wms", "仓库管理软件"),
|
|
|
|
|
MES(4, "i3mes", "生产管理软件"),
|
|
|
|
|
QMS(5, "i3qms", "质量管理软件"),
|
|
|
|
|
MES_PCN(6, "i3mes-pcn", "生产管理软件-节点中心"),
|
|
|
|
|
SWEB(7, "i3sweb", "供应商服务"),
|
|
|
|
|
|
|
|
|
|
FORM(20,"block-form","智能表单"),
|
|
|
|
|
REPORT(21,"block-report","智能报表"),
|
|
|
|
|
WORKFLOW(22,"block-workflow","智能工作流"),
|
|
|
|
|
JOBFLOW(23,"block-jobflow","智能作业流"),
|
|
|
|
|
SOFTSWITCH(24,"block-softswitch","软件适配器"),
|
|
|
|
|
HARDSWITCH(25,"block-hardswitch","硬件适配器"),
|
|
|
|
|
LAC(26,"lac","连接适配器"),
|
|
|
|
|
ANDON(27,"andon","安灯"),
|
|
|
|
|
APS(28,"APS","高级计划与排程"),
|
|
|
|
|
CENTER(99,"icloud-server","注册中心"),
|
|
|
|
|
SURFACE(98,"i3surface","对外服务"),
|
|
|
|
|
CLOUD(97,"i3cloud","微服务"),
|
|
|
|
|
GATEWAY(96,"impp-gateway","服务网关"),
|
|
|
|
|
CONSOLE(95,"impp-console","服务监控台");
|
|
|
|
|
IMPP(1, 0, 0, "impp-platform", "IMPP平台"),
|
|
|
|
|
CORE(2, 8100, 4, "i3core", "i3业务平台"),
|
|
|
|
|
WMS(3, 8200, 10, "i3wms", "仓库管理软件"),
|
|
|
|
|
MES(4, 8300, 11, "i3mes", "生产管理软件"),
|
|
|
|
|
QMS(5, 0, 0, "i3qms", "质量管理软件"),
|
|
|
|
|
MES_PCN(6, 8350, 12, "i3mes-pcn", "生产管理软件-节点中心"),
|
|
|
|
|
SWEB(7, 8800, 19, "i3sweb", "供应商服务"),
|
|
|
|
|
|
|
|
|
|
FORM(20, 8900, 16, "block-form", "智能表单"),
|
|
|
|
|
REPORT(21, 8910, 17, "block-report", "智能报表"),
|
|
|
|
|
WORKFLOW(22, 0, 0, "block-workflow", "智能工作流"),
|
|
|
|
|
JOBFLOW(23, 0, 0, "block-jobflow", "智能作业流"),
|
|
|
|
|
SOFTSWITCH(24, 8920, 18, "block-softswitch", "软件适配器"),
|
|
|
|
|
HARDSWITCH(25, 0, 0, "block-hardswitch", "硬件适配器"),
|
|
|
|
|
LAC(26, 8600, 13, "lac", "连接适配器"),
|
|
|
|
|
ANDON(27, 8500, 14, "andon", "安灯"),
|
|
|
|
|
APS(28, 8410, 15, "APS", "高级计划与排程"),
|
|
|
|
|
CENTER(99, 8000, 1, "icloud-server", "注册中心"),
|
|
|
|
|
SURFACE(98, 0, 0, "i3surface", "对外服务"),
|
|
|
|
|
CLOUD(97, 0, 0, "i3cloud", "微服务"),
|
|
|
|
|
GATEWAY(96, 9000, 3, "impp-gateway", "服务网关"),
|
|
|
|
|
CONSOLE(95, 8010, 2, "impp-console", "服务监控台");
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 产品ID
|
|
|
|
|
*/
|
|
|
|
|
private int value;
|
|
|
|
|
/**
|
|
|
|
|
* 应用默认端口
|
|
|
|
|
*/
|
|
|
|
|
private int prot;
|
|
|
|
|
/**
|
|
|
|
|
* 应用默认雪花DataBaseId(0-31)共32 个存储区
|
|
|
|
|
*/
|
|
|
|
|
private int snowflakeId;
|
|
|
|
|
/**
|
|
|
|
|
* 产品代码
|
|
|
|
|
*/
|
|
|
|
|
private String code;
|
|
|
|
|
/**
|
|
|
|
|
* 产品描述
|
|
|
|
|
*/
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
private SOFT_TYPE(int value, String code, String description) {
|
|
|
|
|
SOFT_TYPE(int value, int prot, int snowflakeId, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.prot = prot;
|
|
|
|
|
this.snowflakeId = snowflakeId;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
@ -62,6 +81,14 @@ public class CommonEnumUtil {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getProt() {
|
|
|
|
|
return prot;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getSnowflakeId() {
|
|
|
|
|
return snowflakeId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfCode(int val) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
@ -82,6 +109,15 @@ public class CommonEnumUtil {
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static SOFT_TYPE codeOf(String code) {
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].code.equals(code)) {
|
|
|
|
|
return values()[i];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|