lyhzzz 3 mēneši atpakaļ
vecāks
revīzija
a8e561a027

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

@@ -483,14 +483,17 @@ public class CopyCaseService {
      * 复制路线
      */
     private void cpPath(Integer oldCaseId,Integer newCaseId,HashMap<Integer, Integer> fusionNumIdMap){
+        log.info("fusionNumIdMap:{}",fusionNumIdMap);
         List<CasePath> casePaths = casePathService.getByCaseId(oldCaseId);
         for (CasePath casePath : casePaths) {
             casePath.setId(null);
             casePath.setCaseId(newCaseId);
             String path = casePath.getPath();
+            log.info("casePath:{}",path);
             for (Integer oldId : fusionNumIdMap.keySet()) {
                 path = path.replaceAll("\"modelId\":\""+oldId+"\"","\"modelId\":\""+fusionNumIdMap.get(oldId)+"\"");
             }
+            log.info("casePath:{}",path);
             casePath.setPath(path);
 
             casePathService.save(casePath);