1.实际结果 {"result":"error","count":0,"data":null,"msg":"系统异常"}
系统异常是程序代码有问题,有可能数据类型转换有错
qOSDriverAdjustLog.setCoordinatescore(StringUtils.isBlank(coordinatescore)?null:Double.parseDouble(coordinatescore));
StringUtils.isBlank(coordinatescore)?null:Double.parseDouble(coordinatescore)
StringUtils.isBlank(A)?null:A
qOSDriverAdjustLog.setCoordinatescore(A?null:B);
if(StringUtils.isBlank(coordinatescore)==true){
null
}else{
A
}
return JsonUtils.getReturnJson(Constant.SUCCESS, "批量更新订单信息成功!", result, checklist.size() == 0 ? null : checklist);
checklist.size() == 0 ? null : checklist
if(checklist.size() == 0 ){
null
}else{
checklist
}
2. {"result":"error","count":0,"data":null,"msg":"系统异常"}
系统异常是
if (!listCrmOrderManagerStat.isEmpty() && listCrmOrderManagerStat.size() > 0) {
return JsonUtils.getReturnJson("success", "统计管理员的累计成功!",
listCrmOrderManagerStat.size(), listCrmOrderManagerStat);
}
应该是
if (null != listCrmOrderManagerStat && listCrmOrderManagerStat.size() > 0) {
return JsonUtils.getReturnJson("success", "统计管理员的累计成功!",
listCrmOrderManagerStat.size(), listCrmOrderManagerStat);
}
系统异常是
if (listCrmOrderManagerVo.isEmpty() || listCrmOrderManagerVo.size() <= 0) {
return JsonUtils.getReturnJson("success", " 首页订单关键统计数据查询成功!", 0,
null);
}
应该是
if (null==listCrmOrderManagerVo || listCrmOrderManagerVo.size() <= 0) {
return JsonUtils.getReturnJson("success", " 首页订单关键统计数据查询成功!", 0,
null);
}