xiewj 5 月之前
父节点
当前提交
833f668b33
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      720yun_fd_manage/gis_service/src/main/java/com/gis/service/impl/WorkServiceImpl.java

+ 5 - 2
720yun_fd_manage/gis_service/src/main/java/com/gis/service/impl/WorkServiceImpl.java

@@ -1873,8 +1873,11 @@ public class WorkServiceImpl extends ServiceImpl<WorkMapper, WorkEntity> impleme
                 content.put(setTypeMapping.get(hotspotType), resJson);
             }
         }
-
-        workHot.setContent(content.toJSONString().replace("\\\"","\""));
+        if (hotspotType.equalsIgnoreCase("textarea")){
+            workHot.setContent(content.toJSONString());
+        }else {
+            workHot.setContent(content.toJSONString().replace("\\\"","\""));
+        }
     }
     public static boolean isJSONValid(String test) {
         try {