Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
5b37e698
Commit
5b37e698
authored
Oct 12, 2024
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
ef46c394
7066bf56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
CustomerCommissionController.cs
...bApi/Controllers/Customer/CustomerCommissionController.cs
+8
-2
No files found.
Edu.WebApi/Controllers/Customer/CustomerCommissionController.cs
View file @
5b37e698
...
@@ -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))//区分出同一个校区不同部门
// {
var
schoolGroupList
=
list
.
GroupBy
(
x
=>
x
.
SchoolId
)?.
ToList
();
//.Where(x => x.OrderSourceType == StuCreateTypeEnum.EmployeeInput)
foreach
(
var
item
in
schoolGroupList
)
//先区分出校区
{
{
foreach
(
var
deptItem
in
list
.
Where
(
x
=>
x
.
SchoolId
==
item
.
Key
&&
x
.
OrderSourceType
==
StuCreateTypeEnum
.
EmployeeInput
).
GroupBy
(
x
=>
x
.
UserDept
))
//区分出同一个校区不同部门
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
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment