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
c7377e2e
Commit
c7377e2e
authored
Dec 08, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
0d668fb9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
ClassModule.cs
Edu.Module.Course/ClassModule.cs
+10
-2
No files found.
Edu.Module.Course/ClassModule.cs
View file @
c7377e2e
...
...
@@ -43,6 +43,11 @@ namespace Edu.Module.Course
/// </summary>
private
readonly
RB_CourseRepository
courseRepository
=
new
RB_CourseRepository
();
/// <summary>
/// 订单仓储层对象
/// </summary>
private
readonly
RB_OrderRepository
orderRepository
=
new
RB_OrderRepository
();
/// <summary>
/// 获取班级列表
/// </summary>
...
...
@@ -67,14 +72,17 @@ namespace Edu.Module.Course
if
(
list
!=
null
&&
list
.
Count
>
0
)
{
var
classTimeList
=
new
List
<
RB_Class_Time_ViewModel
>();
var
classOrderList
=
new
List
<
RB_Order_ViewModel
>();
string
ids
=
string
.
Join
(
","
,
list
.
Select
(
qitem
=>
qitem
.
ClassId
));
if
(!
string
.
IsNullOrEmpty
(
ids
))
{
classTimeList
=
class_TimeRepository
.
GetClassTimeListRepository
(
ids
);
classOrderList
=
orderRepository
.
GetClassOrderPeopleNum
(
ids
);
}
foreach
(
var
item
in
list
)
{
item
.
NewPlanDateTime
=
classTimeList
?.
Where
(
qitem
=>
qitem
.
ClassId
==
item
.
ClassId
)?.
FirstOrDefault
()?.
NewPlanDateTime
;
item
.
OrderStudentCount
=
classOrderList
?.
Where
(
qitem
=>
qitem
.
ClassId
==
item
.
ClassId
)?.
FirstOrDefault
()?.
GuestNum
??
0
;
}
}
return
list
;
...
...
@@ -131,7 +139,7 @@ namespace Edu.Module.Course
{
nameof
(
RB_Class_ViewModel
.
ClassStatus
),
model
.
ClassStatus
},
{
nameof
(
RB_Class_ViewModel
.
InnerRemark
),
model
.
InnerRemark
},
{
nameof
(
RB_Class_ViewModel
.
OutRemark
),
model
.
OutRemark
},
{
nameof
(
RB_Class_ViewModel
.
CompleteProgress
),
model
.
CompleteProgress
},
//
{ nameof(RB_Class_ViewModel.CompleteProgress),model.CompleteProgress},
};
flag
=
classRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Class_ViewModel
.
ClassId
),
model
.
ClassId
));
}
...
...
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