|
|
@@ -54,7 +54,7 @@ public class CodeConfigServiceImpl implements CodeConfigService { |
|
|
@Override |
|
|
@Override |
|
|
public CodeConfig update(CodeConfig codeConfig) { |
|
|
public CodeConfig update(CodeConfig codeConfig) { |
|
|
Long id = this.codeConfigDao.queryByCodeRepoName(codeConfig.getCodeRepoName()); |
|
|
Long id = this.codeConfigDao.queryByCodeRepoName(codeConfig.getCodeRepoName()); |
|
|
if(id != null){ |
|
|
|
|
|
|
|
|
if(id != null && !id.equals(codeConfig.getId())){ |
|
|
throw new IllegalStateException("代码仓库名称已存在"); |
|
|
throw new IllegalStateException("代码仓库名称已存在"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|