列表界面里面的设备类型列改成显示设备类别

This commit is contained in:
2025-10-21 15:25:23 +08:00
parent 76b30c715c
commit b776f6ff76
3 changed files with 21 additions and 0 deletions

View File

@ -73,4 +73,13 @@ public enum DeviceCategory
}
return null;
}
public static String getInfoByCode(String code) {
for (DeviceCategory category : DeviceCategory.values()) {
if (category.code.equals(code)) {
return category.info;
}
}
return null;
}
}