Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
EduSpider
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
viitto
EduSpider
Commits
044d7d3e
Commit
044d7d3e
authored
May 30, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
c1db3777
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
CourseStudentRepository.cs
EduSpider.Repository/CourseStudentRepository.cs
+1
-1
TeacherController.cs
EduSpider.WebApi/Controllers/Student/TeacherController.cs
+3
-2
No files found.
EduSpider.Repository/CourseStudentRepository.cs
View file @
044d7d3e
...
@@ -49,7 +49,7 @@ WHERE 1=1
...
@@ -49,7 +49,7 @@ WHERE 1=1
}
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
StuIds
))
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
StuIds
))
{
{
builder
.
AppendFormat
(
" AND A.{0} IN({1}) "
,
nameof
(
RB_Course_Student
.
u
id
),
query
.
StuIds
);
builder
.
AppendFormat
(
" AND A.{0} IN({1}) "
,
nameof
(
RB_Course_Student
.
id
),
query
.
StuIds
);
}
}
}
}
builder
.
AppendFormat
(
" ORDER BY A.courseId DESC "
);
builder
.
AppendFormat
(
" ORDER BY A.courseId DESC "
);
...
...
EduSpider.WebApi/Controllers/Student/TeacherController.cs
View file @
044d7d3e
...
@@ -8,6 +8,7 @@ using System.Collections.Generic;
...
@@ -8,6 +8,7 @@ using System.Collections.Generic;
using
VTX.FW.Api
;
using
VTX.FW.Api
;
using
VTX.FW.Attr
;
using
VTX.FW.Attr
;
using
VTX.FW.Helper
;
using
VTX.FW.Helper
;
using
System.Linq
;
namespace
EduSpider.WebApi.Controllers
namespace
EduSpider.WebApi.Controllers
{
{
...
@@ -44,7 +45,7 @@ namespace EduSpider.WebApi.Controllers
...
@@ -44,7 +45,7 @@ namespace EduSpider.WebApi.Controllers
List
<
object
>
FinishList
=
new
();
List
<
object
>
FinishList
=
new
();
//进行中
//进行中
List
<
object
>
NotFinishList
=
new
();
List
<
object
>
NotFinishList
=
new
();
var
list
=
CourseService
.
GetTeacherCourseList
(
query
);
var
list
=
CourseService
.
GetTeacherCourseList
(
query
)
.
Where
(
qitem
=>
qitem
.
CourseStatus
==
1
||
qitem
.
CompleteNum
==
qitem
.
TotalClassNum
).
ToList
()
;
if
(
list
!=
null
&&
list
.
Count
>
0
)
if
(
list
!=
null
&&
list
.
Count
>
0
)
{
{
...
@@ -60,7 +61,7 @@ namespace EduSpider.WebApi.Controllers
...
@@ -60,7 +61,7 @@ namespace EduSpider.WebApi.Controllers
item
.
TeacherName
,
item
.
TeacherName
,
};
};
AllCourseList
.
Add
(
obj
);
AllCourseList
.
Add
(
obj
);
if
(
item
.
Co
urseStatus
==
2
||
item
.
CourseStatus
==
3
)
if
(
item
.
Co
mpleteNum
==
item
.
TotalClassNum
)
{
{
FinishList
.
Add
(
obj
);
FinishList
.
Add
(
obj
);
}
}
...
...
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