update 修改查询停车减免接口字段

This commit is contained in:
Lemon
2026-03-20 14:03:43 +08:00
parent 21c28dc8ab
commit 5a3aa39b59
3 changed files with 27 additions and 2 deletions

View File

@@ -35,4 +35,18 @@ public enum ParkingPlatformEnum {
public void setLabel(String label) {
this.label = label;
}
/**
* 根据code获取label
* @param code
* @return
*/
public static String getByCode(String code) {
for (ParkingPlatformEnum value : ParkingPlatformEnum.values()) {
if (value.getCode().equals(code)) {
return value.getLabel();
}
}
return null;
}
}