From 64f046ed41c2ae607dc065c82b6d454f64e90584 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期四, 19 六月 2025 21:52:33 +0800 Subject: [PATCH] 预警分析管理-电源告警 --- src/main/java/com/whyc/constant/WorkflowTypeEnum.java | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/whyc/constant/WorkflowTypeEnum.java b/src/main/java/com/whyc/constant/WorkflowTypeEnum.java new file mode 100644 index 0000000..4524e61 --- /dev/null +++ b/src/main/java/com/whyc/constant/WorkflowTypeEnum.java @@ -0,0 +1,58 @@ +package com.whyc.constant; + +/** + * TODO 姣忔鏂板娴佺▼鏃�,闇�瑕佹寔缁淮鎶� + */ +public enum WorkflowTypeEnum { + + DEVICE_DEFAULT(0,"鏈畾涔夌殑娴佺▼鐢宠鍗�","FG-WDY"), + DEVICE_REPAIR(1,"璁惧缁翠慨鐢宠鍗�","FG-WX"), + DEVICE_IN(2,"璁惧鍏ュ簱鐢宠鍗�","FG-RK"), + DEVICE_SCRAP(3,"璁惧鎶ュ簾鐢宠鍗�","FG-BF"), + DEVICE_OUT(4,"璁惧鍑哄簱鐢宠鍗�","FG-CK"); + + + private Integer type; + private String name; + + private String namingPrefix; + + WorkflowTypeEnum(Integer type, String name, String namingPrefix) { + this.type = type; + this.name = name; + this.namingPrefix = namingPrefix; + } + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getNamingPrefix() { + return namingPrefix; + } + + public void setNamingPrefix(String namingPrefix) { + this.namingPrefix = namingPrefix; + } + + public static WorkflowTypeEnum getByType(Integer type) { + for (WorkflowTypeEnum value : WorkflowTypeEnum.values()) { + if (value.getType().equals(type)) { + return value; + } + } + return DEVICE_DEFAULT; + } +} -- Gitblit v1.9.1