表单提交

This commit is contained in:
hzj
2024-05-09 15:05:23 +08:00
parent 4936d22884
commit 1b85acaa74
38 changed files with 1816 additions and 22 deletions

View File

@@ -0,0 +1,31 @@
package com.njcn.process.enums;
import lombok.Getter;
@Getter
public enum ApplyFormEnum {
ONLINE_MONITORING_EXCEEDS (1, "电能质量-在线监测超标问题申请单"),
MONITORING_ABNORMAL (2, "电能质量-运维监控异常申请单"),
USER_COMPLAINT(3, "电能质量-用户投诉申请单"),
GENERAL_TEST_EXCEEDED (4, "电能质量-普测超标问题申请单"),
MONITORINGRETURNED (5, "监测设备退运申请单"),
;
private final Integer code;
private final String message;
ApplyFormEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
public static ApplyFormEnum getAlarmTypeEnumByCode(Integer code) {
for (ApplyFormEnum alarmTypeEnum : ApplyFormEnum.values()) {
if (alarmTypeEnum.getCode().equals(code)) {
return alarmTypeEnum;
}
}
return null;
}
}