Commit de4aaea2 authored by 黄奎's avatar 黄奎

页面修改

parent 16c18ff8
......@@ -131,6 +131,11 @@ namespace Edu.Model.ViewModel.Scroll
/// </summary>
public int TotalChapterNo { get; set; }
/// <summary>
/// 已完成最大章节数
/// </summary>
public int CourseChapterNo { get; set; }
/// <summary>
/// 学生列表
/// </summary>
......
......@@ -4781,10 +4781,7 @@ namespace Edu.Module.Course
qitem.ShiftSort == item.Key.ShiftSort &&
qitem.CourseSTime == item.Key.CourseSTime
).ToList();
if (Common.ConvertHelper.FormatDate(ClassDate) == "2022-07-08")
{
string str = "";
}
subList.Add(new
{
ClassType = 3,
......@@ -4814,6 +4811,7 @@ namespace Edu.Module.Course
qitem.LearnCourseId,
qitem.LearnCourseName,
qitem.CourseGradeNo,
FinishChapterNoName= chatperList?.FirstOrDefault(sItem => sItem.CourseId == qitem.LearnCourseId && sItem.ChapterNo == qitem.CourseChapterNo.ToString())?.ChapterName,
CourseChapterNoName = chatperList?.FirstOrDefault(sItem => sItem.CourseId == qitem.LearnCourseId && sItem.ChapterNo == qitem.CourseGradeNo.ToString())?.ChapterName
}),
AppointState = item.Where(x => x.State == CourseAppointStateEnum.WaitSure).Any() ? 1 : 2,
......
......@@ -255,7 +255,7 @@ ORDER BY r.Id desc ";
string sql = $@"
SELECT r.*,c.AccountId as TeacherId,c.WorkUserId,t.TeacherName,t.TeacherHead,s.StuName,sch.OpenId as StuOpenId,cou.CourseName,cou.ScrollMinNum,cou.ScrollMaxNum,cou.CourseTimeId,cr.RoomName
,cr.School_Id as RoomSchoolId,sc.SName as RoomSchoolName ,og.TotalChapterNo,IFNULL(c2.CourseName,'') AS LearnCourseName
,cr.School_Id as RoomSchoolId,sc.SName as RoomSchoolName ,og.TotalChapterNo,IFNULL(c2.CourseName,'') AS LearnCourseName,og.CourseChapterNo
From RB_Scroll_Appointment r
inner join rb_order_guest og on r.GuestId = og.Id
inner join rb_account c on r.AccountId = c.Id
......
......@@ -370,6 +370,7 @@ namespace Edu.WebApi.Controllers.Course
qitem.SalePlatList,
qitem.SalePlatArr,
qitem.ClassHours,
qitem.ScrollMinNum,
PreferentialList = qitem?.PreferentialList?.Select(sItem => new
{
sItem.Id,
......
......@@ -772,7 +772,7 @@ namespace Edu.WebApi.Controllers.Course
x.OrderId,
x.CourseName,
x.CourseChapterNo,
x.CourseChapterNoName,
FinishChapterNoName=x.CourseChapterNoName,
x.AppointNum,
State = x.AppointNum > 0 ? 3 : 1,
x.CourseId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment