Преглед изворни кода

引入 layui 前的最后一次提交

reghao пре 4 година
родитељ
комит
0aecd65a80

+ 6 - 4
dmaster/src/main/java/cn/reghao/autodop/dmaster/app/db/config/AppOrchestrationCrudService.java

@@ -53,7 +53,7 @@ public class AppOrchestrationCrudService implements CrudOps<AppOrchestration> {
         }
         app.setIsDelete(false);
         appRepository.save(app);
-        buildDeployAppCrudService.insert(BuildDeployApp.of(app));
+        //buildDeployAppCrudService.insert(BuildDeployApp.of(app));
     }
 
     public void copy(String from, String to) throws Exception {
@@ -67,7 +67,7 @@ public class AppOrchestrationCrudService implements CrudOps<AppOrchestration> {
             toApp = (AppOrchestration) fromApp.clone();
             copyToDifferentBranch(toApp, to);
             appRepository.save(toApp);
-            buildDeployAppCrudService.insert(BuildDeployApp.of(toApp));
+            //buildDeployAppCrudService.insert(BuildDeployApp.of(toApp));
         }
     }
 
@@ -84,6 +84,8 @@ public class AppOrchestrationCrudService implements CrudOps<AppOrchestration> {
         app.setRunningConfig(null);
         app.setNotifierConfig(null);*/
         app.setDeployConfigs(null);
+        app.setRunningConfig(null);
+        app.setNotifyReceivers(null);
         /*if (app.getRunningConfig() != null) {
             app.getRunningConfig().setLogConfigs(null);
         }*/
@@ -103,7 +105,7 @@ public class AppOrchestrationCrudService implements CrudOps<AppOrchestration> {
             app.setUpdateTime(LocalDateTime.now());
             app.setIsDelete(false);
             appRepository.save(app);
-            buildDeployAppCrudService.update(BuildDeployApp.of(app));
+            //buildDeployAppCrudService.update(BuildDeployApp.of(app));
         }
     }
 
@@ -125,7 +127,7 @@ public class AppOrchestrationCrudService implements CrudOps<AppOrchestration> {
         } else {
             appEntity.setIsDelete(true);
             appRepository.save(appEntity);
-            buildDeployAppCrudService.delete(appEntity.getAppId());
+            //buildDeployAppCrudService.delete(appEntity.getAppId());
         }
     }