fix(项目管理): 修改文件管理模块树默认节点名称

This commit is contained in:
song-tianyang 2024-02-05 14:36:10 +08:00 committed by 刘瑞斌
parent 8a5f6ceac1
commit 6164e4291c
5 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,5 @@
fake_error.id.not_blank=ID不能为空 fake_error.id.not_blank=ID不能为空
file.module.default.name=未规划文件
fake_error.project_id.length_range=项目ID长度必须在{min}-{max}之间 fake_error.project_id.length_range=项目ID长度必须在{min}-{max}之间
fake_error.project_id.not_blank=项目ID不能为空 fake_error.project_id.not_blank=项目ID不能为空
fake_error.create_user.length_range=创建人长度必须在{min}-{max}之间 fake_error.create_user.length_range=创建人长度必须在{min}-{max}之间

View File

@ -1,4 +1,5 @@
fake_error.id.not_blank=ID is required fake_error.id.not_blank=ID is required
file.module.default.name=Unplanned file
fake_error.project_id.length_range=Project ID length must be between {min} and {max} fake_error.project_id.length_range=Project ID length must be between {min} and {max}
fake_error.project_id.not_blank=Project ID is required fake_error.project_id.not_blank=Project ID is required
fake_error.name.length_range=Name length must be between {min} and {max} fake_error.name.length_range=Name length must be between {min} and {max}

View File

@ -1,4 +1,5 @@
fake_error.id.not_blank=ID不能为空 fake_error.id.not_blank=ID不能为空
file.module.default.name=未规划文件
fake_error.project_id.length_range=项目ID长度必须在{min}-{max}之间 fake_error.project_id.length_range=项目ID长度必须在{min}-{max}之间
fake_error.project_id.not_blank=项目ID不能为空 fake_error.project_id.not_blank=项目ID不能为空
fake_error.name.length_range=误报名称长度必须在{min}-{max}之间 fake_error.name.length_range=误报名称长度必须在{min}-{max}之间

View File

@ -1,4 +1,5 @@
fake_error.id.not_blank=ID不能為空 fake_error.id.not_blank=ID不能為空
file.module.default.name=未規劃文件
fake_error.project_id.length_range=項目ID長度必須在{min}-{max}之間 fake_error.project_id.length_range=項目ID長度必須在{min}-{max}之間
fake_error.project_id.not_blank=項目ID不能為空 fake_error.project_id.not_blank=項目ID不能為空
fake_error.name.length_range=誤報名稱長度必須在{min}-{max}之間 fake_error.name.length_range=誤報名稱長度必須在{min}-{max}之間

View File

@ -51,13 +51,13 @@ public class FileModuleService extends ModuleTreeService implements CleanupProje
public List<BaseTreeNode> getTree(String projectId) { public List<BaseTreeNode> getTree(String projectId) {
List<BaseTreeNode> fileModuleList = extFileModuleMapper.selectBaseByProjectId(projectId, ModuleConstants.NODE_TYPE_DEFAULT); List<BaseTreeNode> fileModuleList = extFileModuleMapper.selectBaseByProjectId(projectId, ModuleConstants.NODE_TYPE_DEFAULT);
return super.buildTreeAndCountResource(fileModuleList, true, Translator.get("default.module")); return super.buildTreeAndCountResource(fileModuleList, true, Translator.get("file.module.default.name"));
} }
public List<BaseTreeNode> getTreeOnlyIdsAndResourceCount(String projectId, String storage, List<ModuleCountDTO> moduleCountDTOList) { public List<BaseTreeNode> getTreeOnlyIdsAndResourceCount(String projectId, String storage, List<ModuleCountDTO> moduleCountDTOList) {
//节点内容只有Id和parentId //节点内容只有Id和parentId
List<BaseTreeNode> fileModuleList = extFileModuleMapper.selectIdAndParentIdByProjectId(projectId, storage); List<BaseTreeNode> fileModuleList = extFileModuleMapper.selectIdAndParentIdByProjectId(projectId, storage);
return super.buildTreeAndCountResource(fileModuleList, moduleCountDTOList, true, Translator.get("default.module")); return super.buildTreeAndCountResource(fileModuleList, moduleCountDTOList, true, Translator.get("file.module.default.name"));
} }
public String add(FileModuleCreateRequest request, String operator) { public String add(FileModuleCreateRequest request, String operator) {