Browse Source

优化删除模型版本

dev-czh
chenzhihang 1 year ago
parent
commit
19ec863dcb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java

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

@@ -1132,7 +1132,7 @@ public class ModelsServiceImpl implements ModelsService {
String parentModel = JSON.toJSONString(map);
modelDependency1Dao.deleteModelDependency(parentModel);
dvcUtils.deleteDirectory(rootPath);
FileUtil.renameFile(rootPath, rootPath + "_deleted");
FileUtil.renameFile(rootPath, rootPath + "_deleted" + System.currentTimeMillis());
}

public List<ModelsVo> convert(List<Map<String, Object>> lst, String modelTopic, String modelTagName, String modelTypeName) {


Loading…
Cancel
Save