fix(用例管理): 修复用例关联文件后再继续关联文件时统计出错的问题

--bug=1036164 --user=宋天阳 【用例管理】功能用例,关联文件,文件数量显示错误 https://www.tapd.cn/55049933/s/1465543
This commit is contained in:
song-tianyang 2024-02-27 15:35:58 +08:00 committed by 刘瑞斌
parent 51bb45d2df
commit 95586e1efa
3 changed files with 21 additions and 18 deletions

View File

@ -113,6 +113,8 @@
functional_case.update_time,
functional_case.review_status,
functional_case.last_execute_result,
functional_case.delete_user,
functional_case.delete_time,
functional_case.tags
FROM
functional_case

View File

@ -457,6 +457,7 @@ public class FileMetadataService {
FileManagementQuery myFileCountDTO = new FileManagementQuery();
myFileCountDTO.setProjectId(request.getProjectId());
myFileCountDTO.setStorage(null);
myFileCountDTO.setHiddenIds(pageDTO.getHiddenIds());
long allCount = extFileMetadataMapper.fileCount(myFileCountDTO);
myFileCountDTO.setOperator(operator);
long myFileCount = extFileMetadataMapper.fileCount(myFileCountDTO);

View File

@ -163,7 +163,7 @@
projectId: appStore.currentProjectId,
current: propsRes.value.msPagination?.current,
pageSize: propsRes.value.msPagination?.pageSize,
combine: combine.value,
combine: { ...combine.value, ...props.getListFunParams.combine },
storageItemCount: storageItemCount.value,
});
}