From 2b8516545785cbd52f10630c09243b5bc9751b4a Mon Sep 17 00:00:00 2001 From: dyy <807692433@qq.com> Date: Thu, 5 Sep 2024 16:52:16 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E4=BA=BA?= =?UTF-8?q?=E8=84=B8=E7=B3=BB=E7=BB=9F=E8=8E=B7=E5=8F=96=E6=96=B0=E7=94=9F?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=96=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/Arrangelesson.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs index 6f91ae6e3..848418fdb 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs @@ -363,13 +363,16 @@ namespace Learun.Application.WebApi.Modules return Fail("缺少参数:Grade"); } string query = "{\"Grade\":\"" + grade + "\"}"; - var list = stuInfoFreshIBLL.GetList2(query).Where(m => !string.IsNullOrEmpty(m.ExamPhoto)); + var list = stuInfoFreshIBLL.GetList2(query); foreach (var item in list) { - var annexesFileEntity = annexesFileIBLL.GetEntityByFolderId(item.ExamPhoto); - if (annexesFileEntity != null && annexesFileEntity.F_FilePath.IndexOf("Resource") != -1) + if (!string.IsNullOrEmpty(item.ExamPhoto)) { - item.ExamPhoto = webrootpath + "/" + annexesFileEntity.F_FilePath.Substring(annexesFileEntity.F_FilePath.IndexOf("Resource")); + var annexesFileEntity = annexesFileIBLL.GetEntityByFolderId(item.ExamPhoto); + if (annexesFileEntity != null && annexesFileEntity.F_FilePath.IndexOf("Resource") != -1) + { + item.ExamPhoto = webrootpath + "/" + annexesFileEntity.F_FilePath.Substring(annexesFileEntity.F_FilePath.IndexOf("Resource")); + } } } return Success(list.Select(m => new