builder.AppendFormat(" where {0}={1}",nameof(RB_Course_Chapter_ViewModel.CourseId),model.CourseId);
builder.AppendFormat(" and ({0} like '{1}%' or {2}={3})",nameof(RB_Course_Chapter_ViewModel.ChapterNo),model.ChapterNo,nameof(RB_Course_Chapter_ViewModel.ChapterId),model.ChapterId);
builder.AppendFormat(@" SELECT * FROM rb_course_chapter WHERE 1=1 ");
builder.AppendFormat(" AND {0}={1}",nameof(RB_Course_Chapter_ViewModel.Status),EnumHelper.ToInt(DateStateEnum.Normal));
builder.AppendFormat(" AND {0}={1}",nameof(RB_Course_Chapter_ViewModel.CourseId),courseId);
builder.AppendFormat(" AND ({0}='{1}' or {2} like '{3}.%')",nameof(RB_Course_Chapter_ViewModel.ChapterNo),currentHours,nameof(RB_Course_Chapter_ViewModel.ChapterNo),currentHours);
//builder.AppendFormat(" ORDER BY {0} Desc",nameof(RB_Course_Chapter_ViewModel.CurrentHours));