Merge remote-tracking branch 'origin/dev-czh' into dev
This commit is contained in:
commit
37250cee31
|
@ -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("代码仓库名称已存在");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue