Commit fcd919e1 by cjh

1.删除多余class

2.修改返回报文中map,list类型数据转成json返回
parent fe91fa64
...@@ -12,6 +12,7 @@ import java.util.HashMap; ...@@ -12,6 +12,7 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import com.google.gson.Gson;
import log.Log; import log.Log;
import log.LogFactory; import log.LogFactory;
...@@ -243,6 +244,10 @@ public class NoUiPresentationUtil { ...@@ -243,6 +244,10 @@ public class NoUiPresentationUtil {
String data = value.toString().trim(); String data = value.toString().trim();
return data; return data;
} }
if(List.class.isAssignableFrom(dataType) || Map.class.isAssignableFrom(dataType)){
return new Gson().toJson(value);
}
return null; return null;
} }
......
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