设备大类

This commit is contained in:
sxu 2025-06-19 15:48:01 +08:00
parent c4f244d66d
commit d7bf68da0e
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
package com.bonus.common.houqin.constant;
import java.util.*;
public enum DeviceClassEnum {
PERSON_MONITOR(1, "人员监控类", Arrays.asList(3)),
MACHINE_MONITOR(2, "机械监控类", Arrays.asList(7, 16, 17, 19, 21, 31, 32)),
MATERIAL_MONITOR(3, "材料监控类", Arrays.asList(20)),
METHOD_MONITOR(4, "方法监控类", Arrays.asList(103, 104)),
ENVIRONMENT_MONITOR(5, "环境监控类", Arrays.asList(2, 13, 14, 15, 22)),
CAMERA_MONITOR(6, "视频监控类", Arrays.asList(1, 9));
private final Integer key;
private final String name;
private final List<Integer> deviceTypes;
private DeviceClassEnum(Integer key, String name, List deviceTypes) {
this.key = key;
this.name = name;
this.deviceTypes = deviceTypes;
}
public Integer getKey() {
return key;
}
public String getName() {
return name;
}
public List<Integer> getDeviceTypes() {
return deviceTypes;
}
}