Ver a proveniência

给学分银行加了个学生学籍照片接口

新疆警官学校中职
liangkun há 2 anos
ascendente
cometimento
5e7e79881c
1 ficheiros alterados com 23 adições e 2 eliminações
  1. +23
    -2
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs

+ 23
- 2
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs Ver ficheiro

@@ -1,7 +1,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO;
using System.Linq; using System.Linq;
using System.Web; using System.Web;
using Learun.Application.Base.SystemModule;
using Learun.Application.Organization; using Learun.Application.Organization;
using Learun.Application.TwoDevelopment.EducationalAdministration; using Learun.Application.TwoDevelopment.EducationalAdministration;
using Learun.Util; using Learun.Util;
@@ -88,6 +90,7 @@ namespace Learun.Application.WebApi.Modules


private StuSelectLessonListOfElectiveIBLL stuSelectLessonListOfElectiveIbll = private StuSelectLessonListOfElectiveIBLL stuSelectLessonListOfElectiveIbll =
new StuSelectLessonListOfElectiveBLL(); new StuSelectLessonListOfElectiveBLL();
private AnnexesFileIBLL annexesFileIbll = new AnnexesFileBLL();


private Response TranTest(dynamic _) private Response TranTest(dynamic _)
{ {
@@ -150,7 +153,7 @@ namespace Learun.Application.WebApi.Modules
} }
private Response GetAllUsers(dynamic _) private Response GetAllUsers(dynamic _)
{ {
var webrootpath= Config.GetValue("webrootpath");
var webrootpath = Config.GetValue("webrootpath");
var result = userIbll.GetAllList().Where(m => !m.F_Account.Contains("System") && m.F_DeleteMark == 0 && m.F_EnabledMark == 1).Select(m => new var result = userIbll.GetAllList().Where(m => !m.F_Account.Contains("System") && m.F_DeleteMark == 0 && m.F_EnabledMark == 1).Select(m => new
{ {
m.F_UserId, m.F_UserId,
@@ -162,13 +165,31 @@ namespace Learun.Application.WebApi.Modules
m.F_Account, m.F_Account,
Year = "20" + stuInfoBasicIbll.GetStuInfoBasicEntityByStuNo(m.F_Account)?.Grade, Year = "20" + stuInfoBasicIbll.GetStuInfoBasicEntityByStuNo(m.F_Account)?.Grade,
m.F_IdentityCardNo, m.F_IdentityCardNo,
F_HeadIcon= webrootpath + m?.F_HeadIcon
F_HeadIcon = webrootpath + m?.F_HeadIcon
}); });
return Success(result); return Success(result);
} }
private Response GetAllStudents(dynamic _) private Response GetAllStudents(dynamic _)
{ {
var webrootpath = Config.GetValue("webrootpath");
var result = stuInfoBasicIbll.GetAllList(); var result = stuInfoBasicIbll.GetAllList();
foreach (var item in result)
{
if (!string.IsNullOrEmpty(item.Photo))
{
var annfile = annexesFileIbll.GetEntityByFolderId(item.Photo);
if (annfile != null && annfile.F_FilePath != null)
{
item.Photo = webrootpath + item.Photo.Substring(item.Photo.IndexOf("Resource") - 1);
}
else
item.Photo = "";
}
else
{
item.Photo = "";
}
}
return Success(result); return Success(result);
} }
private Response GetDepartment(dynamic _) private Response GetDepartment(dynamic _)


Carregando…
Cancelar
Guardar