|
|
@@ -77,6 +77,14 @@ public enum TradeState {
|
|
|
return caption;
|
|
|
}
|
|
|
|
|
|
+ public static String getCaption(String source) {
|
|
|
+ TradeState stateEnum = getMap().get(source);
|
|
|
+ if(stateEnum == null) {
|
|
|
+ return "未知";
|
|
|
+ }
|
|
|
+ return stateEnum.getCaption();
|
|
|
+ }
|
|
|
+
|
|
|
public String toString() {
|
|
|
JSONObject rs = new JSONObject();
|
|
|
rs.put("state", state);
|