|
@ -1,5 +1,6 @@ |
|
|
package com.epmet.jmreport.converter; |
|
|
package com.epmet.jmreport.converter; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import org.jeecg.modules.jmreport.desreport.render.handler.convert.ApiDataConvertAdapter; |
|
|
import org.jeecg.modules.jmreport.desreport.render.handler.convert.ApiDataConvertAdapter; |
|
@ -63,7 +64,7 @@ public abstract class BaseApiResultConvertAdapter implements ApiDataConvertAdapt |
|
|
if (data instanceof JSONObject) { |
|
|
if (data instanceof JSONObject) { |
|
|
// data是个对象,还要解析里层的
|
|
|
// data是个对象,还要解析里层的
|
|
|
JSONObject dataJO = (JSONObject) data; |
|
|
JSONObject dataJO = (JSONObject) data; |
|
|
if (!dataJO.containsKey("list")) { |
|
|
if (!dataJO.containsKey("total")) { |
|
|
// 就是单个对象,详情查询等
|
|
|
// 就是单个对象,详情查询等
|
|
|
return null; |
|
|
return null; |
|
|
} else { |
|
|
} else { |
|
@ -71,7 +72,7 @@ public abstract class BaseApiResultConvertAdapter implements ApiDataConvertAdapt |
|
|
return dataJO.getString("pages"); |
|
|
return dataJO.getString("pages"); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
// todo data就是个列表,不知道返回什么,需要测试
|
|
|
// data就是个列表
|
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|