|
|
|
@@ -183,7 +183,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
for (Map<String, Object> versionMap : versionList) { |
|
|
|
String version = (String) versionMap.get("name"); |
|
|
|
if (version.equals(datasetVo.getVersion())) { |
|
|
|
throw new Exception("版本已存在"); |
|
|
|
throw new Exception("数据集版本已存在,请勿重复创建"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@@ -334,7 +334,6 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
String ci4sUsername = loginUser.getUsername(); |
|
|
|
String userReq = jedis.get(ci4sUsername + "_gitUserInfo"); |
|
|
|
Map<String, Object> userInfo = JsonUtils.jsonToMap(userReq); |
|
|
|
Integer userId = (Integer) userInfo.get("user_id"); |
|
|
|
// 拼接查询url |
|
|
|
String url = gitendpoint + "/api/projects.json?sort_direction=praises_count&sort_by=desc&category_id=" + Constant.Git_Category_Id; |
|
|
|
|
|
|
|
|