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
60062f9c
Commit
60062f9c
authored
Jun 30, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
b9c5c82f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
ScrollClassModule.cs
Edu.Module.Course/ScrollClassModule.cs
+6
-1
ScrollController.cs
Edu.WebApi/Controllers/Course/ScrollController.cs
+6
-2
No files found.
Edu.Module.Course/ScrollClassModule.cs
View file @
60062f9c
...
...
@@ -3539,8 +3539,9 @@ namespace Edu.Module.Course
/// </summary>
/// <param name="demodel"></param>
/// <returns></returns>
public
object
GetStuLearnChapterStaticModule
(
StuCourseQuery
demodel
)
public
object
GetStuLearnChapterStaticModule
(
StuCourseQuery
demodel
,
out
int
MaxLength
)
{
MaxLength
=
0
;
List
<
object
>
Rlist
=
new
List
<
object
>();
//获取学生所有的报名信息
...
...
@@ -3582,6 +3583,10 @@ namespace Edu.Module.Course
var
teacherModel
=
assistList
?.
FirstOrDefault
(
qitem
=>
qitem
.
AssistType
==
Common
.
Enum
.
User
.
AssistTypeEnum
.
Teacher
&&
qitem
.
StuId
==
ogModel
.
Student_Id
);
//根据课程Id 查询 上课课程
var
cList
=
totalChapterList
?.
Where
(
qitem
=>
qitem
.
CourseId
==
item
.
CourseId
)?.
ToList
();
if
(
MaxLength
<
(
cList
?.
Count
()
??
0
))
{
MaxLength
=
(
cList
?.
Count
()
??
0
);
}
cList
.
ForEach
(
x
=>
{
x
.
SortNum
=
Convert
.
ToDouble
(
x
.
ChapterNo
);
...
...
Edu.WebApi/Controllers/Course/ScrollController.cs
View file @
60062f9c
...
...
@@ -1100,8 +1100,12 @@ namespace Edu.WebApi.Controllers.Course
//}
demodel
.
Group_Id
=
userInfo
.
Group_Id
;
var
list
=
scrollClassModule
.
GetStuLearnChapterStaticModule
(
demodel
);
return
ApiResult
.
Success
(
""
,
list
);
var
list
=
scrollClassModule
.
GetStuLearnChapterStaticModule
(
demodel
,
out
int
MaxLength
);
return
ApiResult
.
Success
(
""
,
new
{
list
,
MaxLength
});
}
#
endregion
}
...
...
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