Commit 044d7d3e authored by 黄奎's avatar 黄奎

页面修改

parent c1db3777
......@@ -49,7 +49,7 @@ WHERE 1=1
}
if (!string.IsNullOrWhiteSpace(query.StuIds))
{
builder.AppendFormat(" AND A.{0} IN({1}) ", nameof(RB_Course_Student.uid), query.StuIds);
builder.AppendFormat(" AND A.{0} IN({1}) ", nameof(RB_Course_Student.id), query.StuIds);
}
}
builder.AppendFormat(" ORDER BY A.courseId DESC ");
......
......@@ -8,6 +8,7 @@ using System.Collections.Generic;
using VTX.FW.Api;
using VTX.FW.Attr;
using VTX.FW.Helper;
using System.Linq;
namespace EduSpider.WebApi.Controllers
{
......@@ -44,7 +45,7 @@ namespace EduSpider.WebApi.Controllers
List<object> FinishList = 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)
{
......@@ -60,7 +61,7 @@ namespace EduSpider.WebApi.Controllers
item.TeacherName,
};
AllCourseList.Add(obj);
if (item.CourseStatus == 2 || item.CourseStatus == 3)
if (item.CompleteNum==item.TotalClassNum)
{
FinishList.Add(obj);
}
......
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