新增判空

parent 7fc6ee47
......@@ -186,16 +186,16 @@ public class MinistrySuspectInfoController {
jsonArray.add(jsonObject);
Object[] os = jsonArray.toArray();
Map<String,Object> mapQg = call.getGabZyInfoByJyaq("asj",os,gabConfig);
List<Map<String,Object>> asjbhList = (List<Map<String,Object>>)mapQg.get("dataResult");
resultList = (List<Map<String,Object>>)mapQg.get("dataResult");
if(!asjbhList.isEmpty() && asjbhList != null){
if(!resultList.isEmpty() && resultList != null){
resultObj.put("code", ResultEnum.SUCCESS.getCode());
resultObj.put("message",ResultEnum.SUCCESS.getMessage());
}else {
resultObj.put("code", ResultEnum.SUCCESS.getCode());
resultObj.put("message","无数据");
}
resultObj.put("dataList",asjbhList);
resultObj.put("dataList",resultList);
} catch (Exception e) {
e.printStackTrace();
resultObj.put("code", ResultEnum.RESULT_ERROR.getCode());
......
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