修改提交
This commit is contained in:
@@ -24,4 +24,13 @@ public enum LastlegOrderType {
|
||||
public String label() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public static String labelOf(String code) {
|
||||
if (code == null || code.isBlank()) return code;
|
||||
try {
|
||||
return valueOf(code.trim()).label;
|
||||
} catch (IllegalArgumentException exception) {
|
||||
return code;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user