Commit 5b37e698 authored by liudong1993's avatar liudong1993

Merge branch 'master' of http://gitlab.oytour.com/Kui2/education

parents ef46c394 7066bf56
...@@ -422,9 +422,15 @@ namespace Edu.WebApi.Controllers.Course ...@@ -422,9 +422,15 @@ namespace Edu.WebApi.Controllers.Course
return ApiResult.Failed("暂无个人直客数据"); return ApiResult.Failed("暂无个人直客数据");
} }
List<object> financeList = new List<object>(); List<object> financeList = new List<object>();
foreach (var item in list.Where(x => x.OrderSourceType == StuCreateTypeEnum.EmployeeInput).GroupBy(x => x.SchoolId))//先区分出校区 //foreach (var item in list.Where(x => x.OrderSourceType == StuCreateTypeEnum.EmployeeInput).GroupBy(x => x.SchoolId))//先区分出校区
{ //{
foreach (var deptItem in list.Where(x => x.SchoolId == item.Key && x.OrderSourceType == StuCreateTypeEnum.EmployeeInput).GroupBy(x => x.UserDept))//区分出同一个校区不同部门 // foreach (var deptItem in list.Where(x => x.SchoolId == item.Key && x.OrderSourceType == StuCreateTypeEnum.EmployeeInput).GroupBy(x => x.UserDept))//区分出同一个校区不同部门
// {
var schoolGroupList = list.GroupBy(x => x.SchoolId)?.ToList();//.Where(x => x.OrderSourceType == StuCreateTypeEnum.EmployeeInput)
foreach (var item in schoolGroupList)//先区分出校区
{
var deptGroupList = list.Where(x => x.SchoolId == item.Key ).GroupBy(x => x.UserDept)?.ToList();//&& x.OrderSourceType == StuCreateTypeEnum.EmployeeInput
foreach (var deptItem in deptGroupList)//区分出同一个校区不同部门
{ {
var tempList = list.Where(x => x.SchoolId == item.Key && x.UserDept == deptItem.Key); var tempList = list.Where(x => x.SchoolId == item.Key && x.UserDept == deptItem.Key);
if (tempList != null && tempList.Any()) if (tempList != null && tempList.Any())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment