Commit d2fcff1e by yangyang

快手热力图(湖南)

parent 1f4b2797
......@@ -631,15 +631,20 @@ public class SkTrailController extends ApiController implements ExcelControllerI
queryWrapper.eq("user_id", userid);
queryWrapper.orderByDesc("active_time");
List<TbYwDzqqKuaishouActiveInfo> listAll = ksTrailMapper.selectList(queryWrapper);
List<TbYwDzqqKuaishouActiveInfo> listResult = new ArrayList<>();
// 经纬度处理
listAll.stream().forEach(p->{
if(StringUtils.isNotBlank(p.getLongitudeLatitude())){
String xy[] = p.getLongitudeLatitude().split(",");
p.setX(xy[0]);
p.setY(xy[1]);
// 经纬度核验
if(KECheckUtil.checkLoLaChinese(xy[0],xy[1])) {
p.setX(xy[0]);
p.setY(xy[1]);
listResult.add(p);
}
}
});
mapResult.put("list",listAll);
mapResult.put("list",listResult);
// 返回字段描述
Field[] declaredFields = TbYwDzqqKuaishouActiveInfo.class.getDeclaredFields();
List<Map<String,String>> mapsList = new ArrayList<>();
......@@ -655,7 +660,7 @@ public class SkTrailController extends ApiController implements ExcelControllerI
}
}
mapResult.put("column",mapsList);
return new MapRestResult(200, "OK", listAll.size(), mapResult);
return new MapRestResult(200, "OK", listResult.size(), mapResult);
}
......
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