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
fc42f535
Commit
fc42f535
authored
Aug 29, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
b421f15a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
ScheduleCourseRepository.cs
Edu.Repository/Scroll/ScheduleCourseRepository.cs
+4
-3
ScheduleCourseController.cs
Edu.WebApi/Controllers/Course/ScheduleCourseController.cs
+1
-1
No files found.
Edu.Repository/Scroll/ScheduleCourseRepository.cs
View file @
fc42f535
...
...
@@ -24,9 +24,10 @@ namespace Edu.Repository.Scroll
builder
.
AppendFormat
(
@"
SELECT A.Id AS GuestId,A.OrderId,A.GuestName,A.GuestState,IFNULL(B.EnterID,0) AS EnterID,IFNULL(D.AssistId,0) AS HeadMasterId,B.CourseId
FROM rb_order_guest AS A INNER JOIN RB_Order AS B ON A.OrderId=B.OrderId
LEFT JOIN rb_student_orderguest AS C ON A.Id=C.GuestId
LEFT JOIN rb_student_assist AS D ON ( C.Student_Id=D.StuId AND D.AssistType=4)
WHERE 1=1 AND B.OrderState=1 AND A.GuestState in(1,5)
INNER JOIN rb_class AS E ON B.ClassId=E.ClassId
INNER JOIN rb_student_orderguest AS C ON A.Id=C.GuestId
LEFT JOIN rb_student_assist AS D ON (C.Student_Id=D.StuId AND D.AssistType=4)
WHERE 1=1 AND B.OrderState=1 AND A.GuestState in(1,5) AND B.OrderType=1 AND E.ClassScrollType=2
"
);
builder
.
AppendFormat
(
" AND EXISTS (SELECT 1 FROM rb_course_chapter WHERE CourseId=B.CourseId AND CourseRate IN({0})) "
,
(
int
)
query
.
QCourseRate
);
...
...
Edu.WebApi/Controllers/Course/ScheduleCourseController.cs
View file @
fc42f535
...
...
@@ -59,7 +59,7 @@ namespace Edu.WebApi.Controllers.Course
ClassProgress
=
item
.
ClassProgress
>
0
?
item
.
ClassProgress
:
0
,
ScheduleStatus
=
item
.
ScheduleStatus
>
0
?
item
.
ScheduleStatus
:-
1
,
XGRemark
=
!
string
.
IsNullOrEmpty
(
item
.
XGRemark
)
?
item
.
XGRemark
:
""
,
CourseItems
=
item
?.
CourseItems
?.
Select
(
qitem
=>
new
CourseItems
=
item
?.
CourseItems
?.
OrderBy
(
qitem
=>
qitem
.
CourseGradeNo
)?.
Select
(
qitem
=>
new
{
Date
=
Common
.
ConvertHelper
.
FormatDate
(
qitem
.
Date
),
qitem
.
State
,
...
...
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