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
58f8caa0
Commit
58f8caa0
authored
Nov 23, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b5d8b648
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CourseStudentRepository.cs
EduSpider.Repository/CourseStudentRepository.cs
+1
-1
StuController.cs
EduSpider.WebApi/Controllers/Student/StuController.cs
+1
-1
No files found.
EduSpider.Repository/CourseStudentRepository.cs
View file @
58f8caa0
...
...
@@ -64,7 +64,7 @@ WHERE 1=1
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
StuIds
))
{
builder
.
AppendFormat
(
" AND A.{0} IN({1}) "
,
nameof
(
RB_Course_Student
.
id
),
query
.
StuIds
);
builder
.
AppendFormat
(
" AND A.{0} IN({1}) "
,
nameof
(
RB_Course_Student
.
u
id
),
query
.
StuIds
);
}
}
builder
.
AppendFormat
(
" ORDER BY A.courseId DESC "
);
...
...
EduSpider.WebApi/Controllers/Student/StuController.cs
View file @
58f8caa0
...
...
@@ -32,7 +32,7 @@ namespace EduSpider.WebApi.Controllers
var
userInfo
=
base
.
UserInfo
;
var
query
=
new
Model
.
Query
.
CourseQuery
()
{
StuIds
=
userInfo
.
Id
.
ToString
()
StuIds
=
userInfo
.
Account
Id
.
ToString
()
};
List
<
object
>
result
=
new
();
var
list
=
CourseService
.
GetStuCourseList
(
query
);
...
...
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