Commit 6ff6bafb authored by 黄奎's avatar 黄奎

页面修改

parent 670cf83e
...@@ -14,5 +14,10 @@ namespace Edu.Model.ViewModel.Course ...@@ -14,5 +14,10 @@ namespace Edu.Model.ViewModel.Course
/// 课程编号 /// 课程编号
/// </summary> /// </summary>
public string QCourseIds { get; set; } public string QCourseIds { get; set; }
/// <summary>
/// 章节编号
/// </summary>
public string QChapterIds { get; set; }
} }
} }
...@@ -78,6 +78,14 @@ WHERE 1=1 ...@@ -78,6 +78,14 @@ WHERE 1=1
{ {
builder.AppendFormat(" AND A.{0} IN({1}) ", nameof(RB_Course_Words_Extend.CourseId), query.QCourseIds); builder.AppendFormat(" AND A.{0} IN({1}) ", nameof(RB_Course_Words_Extend.CourseId), query.QCourseIds);
} }
if (query.ChapterId > 0)
{
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Course_Words_Extend.ChapterId), query.ChapterId);
}
if (!string.IsNullOrEmpty(query.QChapterIds))
{
builder.AppendFormat(" AND A.{0} IN({1}) ", nameof(RB_Course_Words_Extend.ChapterId), query.QChapterIds);
}
} }
return Get<RB_Course_Words_Extend>(builder.ToString()).ToList(); return Get<RB_Course_Words_Extend>(builder.ToString()).ToList();
} }
......
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