Browse Source

学生接口增加照片路径

西昌分支
北京泉江 8 months ago
parent
commit
9ad86e1fc8
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs

+ 16
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs View File

@@ -19,6 +19,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
private StuInfoBasicService stuInfoBasicService = new StuInfoBasicService();

private DataItemIBLL dataItemIBLL = new DataItemBLL();
private AnnexesFileIBLL annesexFileIBll = new AnnexesFileBLL();
#region 获取数据

/// <summary>
@@ -308,7 +309,22 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
if(ls.Any())
{
var mzs = dataItemIBLL.GetDetailList("National");
var zzmms = dataItemIBLL.GetDetailList("BCdPartyFace");

foreach (var item in ls)
{
item.NationalityName = mzs.FirstOrDefault(x => x.F_ItemValue == item.NationalityNo)?.F_ItemName ?? "";
item.PartyFaceName = zzmms.FirstOrDefault(x => x.F_ItemValue == item.PartyFaceNo)?.F_ItemName ?? "";
if(!item.Photo.IsEmpty())
{
var photo = annesexFileIBll.GetEntityByFolderId(item.Photo)?.F_FilePath;
if (photo != null)
{
photo = "/" + photo.Substring(photo.IndexOf("Resource"));
}
item.Photo = photo;
}
}
}
return ls;
}


Loading…
Cancel
Save