Przeglądaj źródła

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

西昌分支
dyy 2 miesięcy temu
rodzic
commit
2b85165457
1 zmienionych plików z 7 dodań i 4 usunięć
  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 Wyświetl plik

@@ -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


Ładowanie…
Anuluj
Zapisz