diff --git a/saturn-console-api/src/main/java/com/vip/saturn/job/console/service/impl/SystemConfigServiceImpl.java b/saturn-console-api/src/main/java/com/vip/saturn/job/console/service/impl/SystemConfigServiceImpl.java index a0c63547b..2390730e0 100644 --- a/saturn-console-api/src/main/java/com/vip/saturn/job/console/service/impl/SystemConfigServiceImpl.java +++ b/saturn-console-api/src/main/java/com/vip/saturn/job/console/service/impl/SystemConfigServiceImpl.java @@ -205,7 +205,7 @@ public Integer createConfig(SystemConfig systemConfig) throws SaturnJobConsoleEx } @Override - public Integer updateConfig(SystemConfig systemConfig) { + public Integer updateConfig(SystemConfig systemConfig) throws SaturnJobConsoleException { List properties = new ArrayList<>(); properties.add(systemConfig.getProperty()); List systemConfigs = systemConfig4SqlService.selectByPropertiesAndLastly(properties); @@ -219,7 +219,7 @@ public Integer updateConfig(SystemConfig systemConfig) { return result; } } - return 0; + throw new SaturnJobConsoleException("systemConfig not existed, update fail"); } @Override