|
|
@@ -18,7 +18,8 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
{ |
|
|
|
private ClassInfoIBLL classInfoIBLL = new ClassInfoBLL(); |
|
|
|
private ArrangeLessonSyncIBLL arrangeLessonSyncIBLL = new ArrangeLessonSyncBLL(); |
|
|
|
|
|
|
|
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL(); |
|
|
|
|
|
|
|
#region 视图功能 |
|
|
|
|
|
|
|
/// <summary> |
|
|
@@ -68,6 +69,14 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
{ |
|
|
|
Pagination paginationobj = pagination.ToObject<Pagination>(); |
|
|
|
var data = classInfoIBLL.GetPageList(paginationobj, queryJson); |
|
|
|
var studata = stuInfoBasicIBLL.GetAllList(); |
|
|
|
foreach (var item in data) |
|
|
|
{ |
|
|
|
item.StuNum = studata.Where(o => |
|
|
|
o.DeptNo == item.DeptNo && o.MajorNo == item.MajorNo |
|
|
|
&& o.ClassNo == item.ClassNo && o.Grade == item.Grade |
|
|
|
).Count(); |
|
|
|
} |
|
|
|
var jsonData = new |
|
|
|
{ |
|
|
|
rows = data, |
|
|
|