package com.fzzy.igds.constant;
|
|
/**
|
* @Description 分机类型
|
* @Author CZT
|
* @Date 2025/11/26 09:25
|
*/
|
public enum DeviceSerType {
|
|
TYPE_01("01", "01-综合控制柜"),
|
TYPE_02("02", "02-独立粮情分机"),
|
TYPE_03("03", "02-独立通风分机"),
|
TYPE_99("99", "99-独立终端");
|
|
private String code;
|
private String msg;
|
|
DeviceSerType(String code, String msg) {
|
this.code = code;
|
this.msg = msg;
|
}
|
|
public String getCode() {
|
return code;
|
}
|
|
public String getMsg() {
|
return msg;
|
}
|
|
public static String getMsg(String code) {
|
if (null == code) return null;
|
|
if (DeviceSerType.TYPE_01.getCode().equals(code)) return DeviceSerType.TYPE_01.getMsg();
|
if (DeviceSerType.TYPE_02.getCode().equals(code)) return DeviceSerType.TYPE_02.getMsg();
|
|
return DeviceSerType.TYPE_99.getMsg();
|
}
|
}
|