Commit 907ab143 by lvxinyong

map list support

parent c9b4cd1d
......@@ -132,6 +132,11 @@ public class NoUiPresentationUtil {
dataField.setValue(Double.valueOf(data.replaceAll(",", "")).longValue());
return;
}
if(List.class.isAssignableFrom(dataType) || Map.class.isAssignableFrom(dataType)){
String data = value.toString().trim();
dataField.setValue(new Gson().fromJson(data, dataType));
return;
}
throw new NoUiException("Unsupported data type", ErrorCodes.UNSUPPORTED_DATA_TYPE);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment