|
@@ -84,9 +84,11 @@ public class DataService {
|
|
|
String content = getWithUrl("http://192.168.31.10:874/df/view/executeSql?sqlstr=select * from reportinfo where 检查编号 = " + code);
|
|
|
JSONArray jsonArray = JSON.parseArray(content);
|
|
|
if (jsonArray.size()>0) {
|
|
|
-// return jsonArray,;
|
|
|
- JSONObject json_obj = jsonArray.getJSONObject(0);
|
|
|
- return json_obj;
|
|
|
+ JSONObject jsonObject = null;
|
|
|
+ for (Object object : jsonArray) {
|
|
|
+ jsonObject = JSON.parseObject(object.toString());
|
|
|
+ }
|
|
|
+ return jsonObject;
|
|
|
}else {
|
|
|
return null;
|
|
|
}
|