|
@@ -205,11 +205,11 @@ public class ImportDataController extends BaseController {
|
|
|
puck.put("y", puck.getDoubleValue("y") * -1);
|
|
|
puck.remove("z");
|
|
|
newJson.put("puck", puck);
|
|
|
- newJson.put("subgroup", objectJson.getInteger("subgroup"));
|
|
|
+ newJson.put("subgroup", objectJson.getString("subgroup"));
|
|
|
roamingPoint.add(newJson);
|
|
|
}
|
|
|
- Map<Integer, List<JSONObject>> subgroup = roamingPoint.stream().collect(
|
|
|
- Collectors.groupingBy(x -> x.getInteger("subgroup")));
|
|
|
+ Map<String, List<JSONObject>> subgroup = roamingPoint.stream().collect(
|
|
|
+ Collectors.groupingBy(x -> x.getString("subgroup")));
|
|
|
FileUtils.writeFile(filePath + File.separator + "roamingPoint.json", JSON.toJSONString(subgroup));
|
|
|
|
|
|
//数据上传oss,让计算服务器下载资源
|
|
@@ -562,11 +562,11 @@ public class ImportDataController extends BaseController {
|
|
|
puck.put("y", puck.getDoubleValue("y") * -1);
|
|
|
puck.remove("z");
|
|
|
newJson.put("puck", puck);
|
|
|
- newJson.put("subgroup", objectJson.getInteger("subgroup"));
|
|
|
+ newJson.put("subgroup", objectJson.getString("subgroup"));
|
|
|
roamingPoint.add(newJson);
|
|
|
}
|
|
|
- Map<Integer, List<JSONObject>> subgroup = roamingPoint.stream().collect(
|
|
|
- Collectors.groupingBy(x -> x.getInteger("subgroup")));
|
|
|
+ Map<String, List<JSONObject>> subgroup = roamingPoint.stream().collect(
|
|
|
+ Collectors.groupingBy(x -> x.getString("subgroup")));
|
|
|
FileUtils.writeFile(basePath + File.separator + "roamingPoint.json", JSON.toJSONString(subgroup));
|
|
|
//数据上传oss,让计算服务器下载资源
|
|
|
uploadToOssUtil.upload(basePath + File.separator + "roamingPoint.json",
|