Commit 23a69e10 authored by 黄奎's avatar 黄奎

页面修改

parent 9c9bd743
...@@ -10,6 +10,9 @@ namespace Edu.Model.ViewModel.Exam ...@@ -10,6 +10,9 @@ namespace Edu.Model.ViewModel.Exam
/// </summary> /// </summary>
public class RB_StuWords_ExamDetail_Extend: RB_StuWords_ExamDetail public class RB_StuWords_ExamDetail_Extend: RB_StuWords_ExamDetail
{ {
/// <summary>
/// 考试编号
/// </summary>
public string QExamIds { get; set; }
} }
} }
...@@ -31,6 +31,10 @@ WHERE 1=1 ...@@ -31,6 +31,10 @@ WHERE 1=1
{ {
builder.AppendFormat(" A.{0}={1} ", nameof(RB_StuWords_ExamDetail_Extend.ExamId), query.ExamId); builder.AppendFormat(" A.{0}={1} ", nameof(RB_StuWords_ExamDetail_Extend.ExamId), query.ExamId);
} }
if (!string.IsNullOrEmpty(query.QExamIds))
{
builder.AppendFormat(" A.{0} IN({1}) ", nameof(RB_StuWords_ExamDetail_Extend.ExamId), query.QExamIds);
}
} }
return Get<RB_StuWords_ExamDetail_Extend>(builder.ToString()).ToList(); return Get<RB_StuWords_ExamDetail_Extend>(builder.ToString()).ToList();
} }
......
...@@ -34,6 +34,18 @@ WHERE 1=1 ...@@ -34,6 +34,18 @@ WHERE 1=1
{ {
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_StuWords_Exam_Extend.Group_Id), query.Group_Id); builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_StuWords_Exam_Extend.Group_Id), query.Group_Id);
} }
if (query.Stu_Account_Id > 0)
{
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_StuWords_Exam_Extend.Stu_Account_Id), query.Stu_Account_Id);
}
if (query.CourseId > 0)
{
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_StuWords_Exam_Extend.CourseId), query.CourseId);
}
if (query.ChapterId > 0)
{
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_StuWords_Exam_Extend.ChapterId), query.ChapterId);
}
} }
return GetPage<RB_StuWords_Exam_Extend>(pageIndex, pageSize, out rowsCount, builder.ToString()).ToList(); return GetPage<RB_StuWords_Exam_Extend>(pageIndex, pageSize, out rowsCount, builder.ToString()).ToList();
} }
......
...@@ -461,10 +461,11 @@ namespace Edu.WebApi.Controllers.Course ...@@ -461,10 +461,11 @@ namespace Edu.WebApi.Controllers.Course
{ {
ClassId = parms.GetInt("ClassId", 0), ClassId = parms.GetInt("ClassId", 0),
OrderId = parms.GetInt("OrderId"), OrderId = parms.GetInt("OrderId"),
SourceId=parms.GetInt("SourceId"),
Group_Id = base.UserInfo.Group_Id, Group_Id = base.UserInfo.Group_Id,
OrderState = OrderStateEnum.Normal OrderState = OrderStateEnum.Normal
}; };
if (query.ClassId <= 0) if (query.ClassId <= 0&&query.SourceId<=0)
{ {
return ApiResult.ParamIsNull(); return ApiResult.ParamIsNull();
} }
......
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