if(SysUtil.isNotEmpty(postBody))
{
Gson gson = new Gson();
List<Jieweichao_PushResponse> reponseList = gson.fromJson(postBody, new TypeToken<List<Jieweichao_PushResponse>>(){}.getType());
if(CollectionUtil.isNotEmpty(reponseList)){
for(Jieweichao_PushResponse response:reponseList){
logger.info("extractRequetListFromNotification " + response.toString());
if(null != response&&SysUtil.isNotEmpty(response.getTaskID())){
RequestBase_Notification request = new RequestBase_Notification();
request.setTelphone(response.getMobile());
request.setMessage(response.getReportCode());
request.setOrderno(response.getOutTradeNo());
request.setUniqueId(response.getTaskID());
request.setSuccess(response.getStatus().equals("4"));
requestList.add(request);
}
}
}
}
{
Gson gson = new Gson();
List<Jieweichao_PushResponse> reponseList = gson.fromJson(postBody, new TypeToken<List<Jieweichao_PushResponse>>(){}.getType());
if(CollectionUtil.isNotEmpty(reponseList)){
for(Jieweichao_PushResponse response:reponseList){
logger.info("extractRequetListFromNotification " + response.toString());
if(null != response&&SysUtil.isNotEmpty(response.getTaskID())){
RequestBase_Notification request = new RequestBase_Notification();
request.setTelphone(response.getMobile());
request.setMessage(response.getReportCode());
request.setOrderno(response.getOutTradeNo());
request.setUniqueId(response.getTaskID());
request.setSuccess(response.getStatus().equals("4"));
requestList.add(request);
}
}
}
}