|
|
|
@@ -179,6 +179,14 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
} |
|
|
|
|
|
|
|
public String newCreateVersion(NewDatasetVo datasetVo) throws Exception { |
|
|
|
List<Map<String, Object>> versionList = getVersionList(datasetVo.getIdentifier(), datasetVo.getOwner()); |
|
|
|
for (Map<String, Object> versionMap : versionList) { |
|
|
|
String version = (String) versionMap.get("name"); |
|
|
|
if (version.equals(datasetVo.getVersion())) { |
|
|
|
throw new Exception("版本已存在"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
String token = gitService.checkoutToken(); |
|
|
|
Jedis jedis = new Jedis(redisHost, redisPort); |
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser(); |
|
|
|
|