From 50c7ed237397d8852701f14c44bc145d658d88b7 Mon Sep 17 00:00:00 2001 From: hwh2023 <598694955@qq.com> Date: Tue, 23 Apr 2024 11:28:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=AE=A1=E7=90=86=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E6=96=87=E4=BB=B6=E5=A4=B9=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../File/FileInfo/FileInfoService.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/File/FileInfo/FileInfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/File/FileInfo/FileInfoService.cs index ef802bbad..0eb33dba8 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/File/FileInfo/FileInfoService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/File/FileInfo/FileInfoService.cs @@ -128,15 +128,17 @@ namespace Learun.Application.OA.File.FileInfo fileCondition = " AND F_FolderId = '0'"; } strSql.Append(@"SELECT * - FROM ( SELECT F_FolderId AS F_FileId , + FROM ( SELECT a.F_FolderId AS F_FileId , F_ParentId AS F_FolderId , F_FolderName AS F_FileName , - '' AS F_FileSize , + b.filesize AS F_FileSize , 'folder' AS F_FileType , - F_CreateUserId, + a.F_CreateUserId, F_ModifyDate, F_IsShare - FROM LR_OA_FileFolder where F_DeleteMark = 0"); + FROM LR_OA_FileFolder a "); + strSql.Append(" left join (select a.f_createuserid,a.f_folderid,sum(convert(float, f_filesize)) as filesize from LR_OA_FileInfo a group by a.f_createuserid,a.f_folderid having a.f_createuserid='System') b on b.f_folderid=a.f_folderid "); + strSql.Append(" where F_DeleteMark = 0 "); strSql.Append(folderCondition); strSql.Append(" UNION "); strSql.Append(@"SELECT F_FileId ,