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
7c389634
Commit
7c389634
authored
Sep 14, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vip约课,和新版约课调整
parent
86ab7d30
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
15 deletions
+29
-15
ClassModule.cs
Edu.Module.Course/ClassModule.cs
+24
-14
ScrollClassModule.cs
Edu.Module.Course/ScrollClassModule.cs
+4
-1
CourseController.cs
Edu.WebApi/Controllers/Course/CourseController.cs
+1
-0
No files found.
Edu.Module.Course/ClassModule.cs
View file @
7c389634
...
@@ -4092,35 +4092,41 @@ namespace Edu.Module.Course
...
@@ -4092,35 +4092,41 @@ namespace Edu.Module.Course
List
<
RB_Course_ViewModel
>
courseList
=
new
List
<
RB_Course_ViewModel
>();
List
<
RB_Course_ViewModel
>
courseList
=
new
List
<
RB_Course_ViewModel
>();
if
(
appointList
!=
null
&&
appointList
.
Count
>
0
)
if
(
appointList
!=
null
&&
appointList
.
Count
>
0
)
{
{
List
<
int
>
courseIdList
=
new
List
<
int
>();
//所有课程编号列表
string
learnIds
=
string
.
Join
(
","
,
appointList
.
Select
(
qitem
=>
qitem
.
LearnCourseId
).
Distinct
());
string
learnIds
=
string
.
Join
(
","
,
appointList
.
Select
(
qitem
=>
qitem
.
LearnCourseId
).
Distinct
());
List
<
int
>
learnList
=
Common
.
ConvertHelper
.
StringToList
(
learnIds
);
List
<
int
>
learnList
=
Common
.
ConvertHelper
.
StringToList
(
learnIds
);
string
courseIds
=
string
.
Join
(
","
,
appointList
.
Select
(
qitem
=>
qitem
.
CourseId
).
Distinct
());
string
courseIds
=
string
.
Join
(
","
,
appointList
.
Select
(
qitem
=>
qitem
.
CourseId
).
Distinct
());
List
<
int
>
tempCourseIdList
=
Common
.
ConvertHelper
.
StringToList
(
courseIds
);
string
orderIds
=
string
.
Join
(
","
,
appointList
.
Select
(
qitem
=>
qitem
.
OrderId
));
string
orderIds
=
string
.
Join
(
","
,
appointList
.
Select
(
qitem
=>
qitem
.
OrderId
));
if
(!
string
.
IsNullOrEmpty
(
orderIds
))
if
(!
string
.
IsNullOrEmpty
(
orderIds
))
{
{
orderCourseList
=
order_CourseRepository
.
GetOrderCourseListRepository
(
new
RB_Order_Course_ViewModel
()
{
QOrderIds
=
orderIds
});
orderCourseList
=
order_CourseRepository
.
GetOrderCourseListRepository
(
new
RB_Order_Course_ViewModel
()
{
QOrderIds
=
orderIds
});
}
}
if
(
orderCourseList
!=
null
&&
orderCourseList
.
Count
>
0
)
{
var
ordercourseIdArray
=
orderCourseList
.
Select
(
qitem
=>
qitem
.
CourseId
).
Distinct
().
ToList
();
if
(
ordercourseIdArray
!=
null
&&
ordercourseIdArray
.
Count
>
0
)
{
courseIdList
.
AddRange
(
ordercourseIdArray
);
}
}
List
<
int
>
courseIdList
=
Common
.
ConvertHelper
.
StringToList
(
courseIds
);
if
(
learnList
!=
null
&&
learnList
.
Count
>
0
)
List
<
int
>
newList
=
new
List
<
int
>();
if
(
learnList
!=
null
)
{
{
new
List
.
AddRange
(
learnList
);
courseId
List
.
AddRange
(
learnList
);
}
}
if
(
courseIdList
!=
null
)
if
(
tempCourseIdList
!=
null
&&
tempCourseIdList
.
Count
>
0
)
{
{
newList
.
AddRange
(
c
ourseIdList
);
courseIdList
.
AddRange
(
tempC
ourseIdList
);
}
}
if
(
newList
!=
null
&&
new
List
.
Count
>
0
)
if
(
courseIdList
!=
null
&&
courseId
List
.
Count
>
0
)
{
{
chatperList
=
course_ChapterRepository
.
GetChapterListRepository
(
new
RB_Course_Chapter_ViewModel
()
chatperList
=
course_ChapterRepository
.
GetChapterListRepository
(
new
RB_Course_Chapter_ViewModel
()
{
{
CourseIds
=
string
.
Join
(
","
,
newList
)
CourseIds
=
string
.
Join
(
","
,
courseIdList
.
Distinct
()
)
});
;
});
;
courseList
=
courseRepository
.
GetCourseListRepository
(
new
RB_Course_ViewModel
()
{
QCourseIds
=
string
.
Join
(
","
,
newList
)
});
courseList
=
courseRepository
.
GetCourseListRepository
(
new
RB_Course_ViewModel
()
{
QCourseIds
=
string
.
Join
(
","
,
courseIdList
.
Distinct
()
)
});
}
}
}
}
...
@@ -4254,8 +4260,12 @@ namespace Edu.Module.Course
...
@@ -4254,8 +4260,12 @@ namespace Edu.Module.Course
}
}
else
else
{
{
FinishChapterNoName
=
chatperList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CourseId
==
sItem
.
LearnCourseId
&&
qitem
.
ChapterNo
==
sItem
.
CourseChapterNo
.
ToString
())?.
ChapterName
;
FinishChapterNoName
=
chatperList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CourseId
==
sItem
.
LearnCourseId
&&
qitem
.
CourseRate
==
sItem
.
CourseGradeId
&&
qitem
.
ChapterNo
==
sItem
.
CourseChapterNo
.
ToString
())?.
ChapterName
;
CourseChapterNoName
=
chatperList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CourseId
==
sItem
.
LearnCourseId
&&
qitem
.
ChapterNo
==
sItem
.
CourseGradeNo
.
ToString
())?.
ChapterName
;
CourseChapterNoName
=
chatperList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CourseId
==
sItem
.
LearnCourseId
&&
qitem
.
CourseRate
==
sItem
.
CourseGradeId
&&
qitem
.
ChapterNo
==
sItem
.
CourseGradeNo
.
ToString
())?.
ChapterName
;
}
if
(
sItem
.
StuName
==
"曹时锟"
)
{
string
str
=
""
;
}
}
appointGuestList
.
Add
(
new
appointGuestList
.
Add
(
new
...
...
Edu.Module.Course/ScrollClassModule.cs
View file @
7c389634
...
@@ -2476,7 +2476,10 @@ namespace Edu.Module.Course
...
@@ -2476,7 +2476,10 @@ namespace Edu.Module.Course
demodel
.
OrderId
=
learnModel
.
OrderId
;
demodel
.
OrderId
=
learnModel
.
OrderId
;
demodel
.
CourseSTime
=
timeList
.
Min
(
x
=>
x
.
StartTime
);
demodel
.
CourseSTime
=
timeList
.
Min
(
x
=>
x
.
StartTime
);
demodel
.
CourseETime
=
timeList
.
Max
(
x
=>
x
.
EndTime
);
demodel
.
CourseETime
=
timeList
.
Max
(
x
=>
x
.
EndTime
);
if
(
demodel
.
LearnCourseId
<=
0
&&
learnModel
.
CourseId
>
0
)
{
demodel
.
LearnCourseId
=
learnModel
.
CourseId
;
demodel
.
LearnCourseId
=
learnModel
.
CourseId
;
}
demodel
.
AppointType
=
1
;
demodel
.
AppointType
=
1
;
#
region
验证补课
重上课
#
region
验证补课
重上课
var
appointList2
=
scroll_AppointmentRepository
.
GetList
(
new
RB_Scroll_Appointment_ViewModel
()
{
Group_Id
=
demodel
.
Group_Id
,
GuestId
=
demodel
.
GuestId
,
CourseGradeId
=
demodel
.
CourseGradeId
,
CourseGradeNo
=
demodel
.
CourseGradeNo
});
var
appointList2
=
scroll_AppointmentRepository
.
GetList
(
new
RB_Scroll_Appointment_ViewModel
()
{
Group_Id
=
demodel
.
Group_Id
,
GuestId
=
demodel
.
GuestId
,
CourseGradeId
=
demodel
.
CourseGradeId
,
CourseGradeNo
=
demodel
.
CourseGradeNo
});
...
...
Edu.WebApi/Controllers/Course/CourseController.cs
View file @
7c389634
...
@@ -723,6 +723,7 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -723,6 +723,7 @@ namespace Edu.WebApi.Controllers.Course
qitem
.
ChapterGradeNo
,
qitem
.
ChapterGradeNo
,
qitem
.
ChapterName
,
qitem
.
ChapterName
,
qitem
.
CourseRate
,
qitem
.
CourseRate
,
qitem
.
CourseId
,
CourseRateName
=
qitem
.
CourseRate
.
ToName
(),
CourseRateName
=
qitem
.
CourseRate
.
ToName
(),
}));
}));
}
}
...
...
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