lyhzzz 3 月之前
父节点
当前提交
773c7ed93e
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/main/java/com/fdkankan/fusion/service/impl/CopyCaseService.java

+ 5 - 0
src/main/java/com/fdkankan/fusion/service/impl/CopyCaseService.java

@@ -328,6 +328,11 @@ public class CopyCaseService {
                 caseTagPoint.setTagPointId(null);
                 caseTagPoint.setTagId(newTagId);
                 caseTagPoint.setFusionNumId(fusionNumIdMap.get(caseTagPoint.getFusionNumId()));
+                String path = caseTagPoint.getPose();
+                for (Integer oldId : fusionNumIdMap.keySet()) {
+                    path = path.replaceAll("\"modelId\":\""+oldId+"\"","\"modelId\":\""+fusionNumIdMap.get(oldId)+"\"");
+                }
+                caseTagPoint.setPose(path);
                 caseTagPointService.save(caseTagPoint);
             }