Bläddra i källkod

【修改】人脸系统获取新生列表接口优化;

西昌分支
dyy 2 månader sedan
förälder
incheckning
2b85165457
1 ändrade filer med 7 tillägg och 4 borttagningar
  1. +7
    -4
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs

+ 7
- 4
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs Visa fil

@@ -363,13 +363,16 @@ namespace Learun.Application.WebApi.Modules
return Fail("缺少参数:Grade"); return Fail("缺少参数:Grade");
} }
string query = "{\"Grade\":\"" + 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) 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 return Success(list.Select(m => new


Laddar…
Avbryt
Spara