feat(制品库功能完善): 虚拟仓库支持选择虚拟仓库

This commit is contained in:
OTTO 2024-07-26 14:33:38 +08:00
parent 63d7c166fe
commit 129e36a830
1 changed files with 3 additions and 1 deletions

View File

@ -123,7 +123,9 @@ public class PmsProductLibraryRepositoriesServiceImpl implements IPmsProductLibr
throw new ServiceException("请选择相同格式的制品库作为虚拟仓库成员(制品库格式[%s])", groupRepositoriesOperateVo.getFormat());
}
}
checkDockerRepoParameter(groupRepositoriesOperateVo.getDocker(), groupRepositoriesOperateVo.getId());
if (ProductLibraryRepositoriesFormatEnum.DOCKER.getKey().equals(groupRepositoriesOperateVo.getFormat())) {
checkDockerRepoParameter(groupRepositoriesOperateVo.getDocker(), groupRepositoriesOperateVo.getId());
}
}
private void checkDockerRepoParameter(NexusRepoDockerVo nexusRepoDockerVo, Long oldRepoId) {