mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 修改查询停车减免接口字段
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user