Browse Source

优化数据集模型保存版本

dev
chenzhihang 8 months ago
parent
commit
d51cd143e2
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java
  2. +1
    -1
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/NewDatasetServiceImpl.java

+ 1
- 1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java View File

@@ -698,7 +698,7 @@ public class ModelsServiceImpl implements ModelsService {
Map<String, Object> userInfo = getUserInfo(ci4sUsername, gitLinkPassword);
gitLinkPassword = decrypt(gitLinkPassword);

if (modelsVo.getVersion() == null) {
if (StringUtils.isEmpty(modelsVo.getVersion())) {
List<Map<String, Object>> versionList = getVersionList(modelsVo.getIdentifier(), modelsVo.getOwner());
//自动填充版本
String nextVersion = incrementVersion(versionList);


+ 1
- 1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/NewDatasetServiceImpl.java View File

@@ -182,7 +182,7 @@ public class NewDatasetServiceImpl implements NewDatasetService {
}

public String newCreateVersion(NewDatasetVo datasetVo) throws Exception {
if (datasetVo.getVersion() == null) {
if (StringUtils.isEmpty(datasetVo.getVersion())) {
List<Map<String, Object>> versionList = getVersionList(datasetVo.getIdentifier(), datasetVo.getOwner());
//自动填充版本
String nextVersion = incrementVersion(versionList);


Loading…
Cancel
Save