Merge remote-tracking branch 'origin/dev-czh' into dev

This commit is contained in:
chenzhihang 2024-09-02 11:01:24 +08:00
commit 37250cee31
1 changed files with 1 additions and 1 deletions

View File

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