|
@@ -567,7 +567,8 @@ public class ImportDataController extends BaseController {
|
|
roamingPoint.add(newJson);
|
|
roamingPoint.add(newJson);
|
|
}
|
|
}
|
|
Map<String, List<JSONObject>> subgroup = roamingPoint.stream().collect(
|
|
Map<String, List<JSONObject>> subgroup = roamingPoint.stream().collect(
|
|
- Collectors.groupingBy(x -> x.getString("subgroup")));
|
|
|
|
|
|
+ Collectors.groupingBy(x -> x.getString("subgroup"))).entrySet().stream()
|
|
|
|
+ .collect(Collectors.toMap(e -> "floor" + e.getKey(), Map.Entry::getValue));
|
|
FileUtils.writeFile(basePath + File.separator + "roamingPoint.json", JSON.toJSONString(subgroup));
|
|
FileUtils.writeFile(basePath + File.separator + "roamingPoint.json", JSON.toJSONString(subgroup));
|
|
//数据上传oss,让计算服务器下载资源
|
|
//数据上传oss,让计算服务器下载资源
|
|
uploadToOssUtil.upload(basePath + File.separator + "roamingPoint.json",
|
|
uploadToOssUtil.upload(basePath + File.separator + "roamingPoint.json",
|