|
@@ -87,15 +87,15 @@ public class AiService {
|
|
|
if (jsonObject.containsKey("floors")) {
|
|
|
JSONArray floors = jsonObject.getJSONArray("floors");
|
|
|
List<Floors> floors1 = floors.toJavaList(Floors.class);
|
|
|
- for (Floors floors2 : floors1) {
|
|
|
- floors2.getShapes().forEach(shape -> {
|
|
|
- if (shape.getCategory().equalsIgnoreCase("Tag")){
|
|
|
- shape.setCategory(nameToClassNameMap.get(shape.getName()));
|
|
|
- }else {
|
|
|
- shape.setName(classNameToNameMap.get(shape.getCategory()));
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
+// for (Floors floors2 : floors1) {
|
|
|
+// floors2.getShapes().forEach(shape -> {
|
|
|
+// if (shape.getCategory().contains("Tag")){
|
|
|
+// shape.setCategory(nameToClassNameMap.get(shape.getName()));
|
|
|
+// }else {
|
|
|
+// shape.setName(classNameToNameMap.get(shape.getCategory()));
|
|
|
+// }
|
|
|
+// });
|
|
|
+// }
|
|
|
|
|
|
floorUser.setFloors(floors1);
|
|
|
}
|