Commit f38ab601 authored by 黄奎's avatar 黄奎

页面修改

parent affcc055
...@@ -79,7 +79,12 @@ namespace Edu.Model.Entity.Exam ...@@ -79,7 +79,12 @@ namespace Edu.Model.Entity.Exam
public ExamTestStatusEnum ExamStatus { get; set; } public ExamTestStatusEnum ExamStatus { get; set; }
/// <summary> /// <summary>
/// 考试结束时间 /// 学员考试开始时间
/// </summary>
public DateTime? ExamStartTime { get; set; }
/// <summary>
/// 学员考试结束时间
/// </summary> /// </summary>
public DateTime? ExamEndTime { get; set; } public DateTime? ExamEndTime { get; set; }
......
...@@ -1625,6 +1625,28 @@ namespace Edu.Module.Exam ...@@ -1625,6 +1625,28 @@ namespace Edu.Module.Exam
}; };
} }
/// <summary>
/// 更新学员考试考试时间
/// </summary>
/// <param name="PublishId"></param>
/// <param name="GuestId"></param>
/// <param name="PaperId"></param>
/// <returns></returns>
public virtual bool SetStuExamStartTimeModule(int PublishId, int GuestId, int PaperId)
{
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{nameof(RB_Examination_Student_ViewModel.ExamStartTime), DateTime.Now},
};
List<WhereHelper> wheres = new List<WhereHelper>()
{
new WhereHelper(nameof(RB_Examination_Student_ViewModel.PaperId),PaperId),
new WhereHelper(nameof(RB_Examination_Student_ViewModel.PublishId),PublishId),
new WhereHelper(nameof(RB_Examination_Student_ViewModel.GuestId),GuestId),
};
bool flag = examination_StudentRepository.Update(fileds, wheres);
return flag;
}
/// <summary> /// <summary>
/// 学员提交考试 /// 学员提交考试
......
...@@ -926,6 +926,21 @@ namespace Edu.WebApi.Controllers.Applet ...@@ -926,6 +926,21 @@ namespace Edu.WebApi.Controllers.Applet
return ApiResult.Success(data: data); return ApiResult.Success(data: data);
} }
/// <summary>
/// 更新学员开始考试时间
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult SetStuExamStartTime()
{
var PublishId = base.ParmJObj.GetInt("PublishId");
var GuestId = base.ParmJObj.GetInt("GuestId", 0);
var PaperId = base.ParmJObj.GetInt("PaperId");
var Exam_Student_Id = base.ParmJObj.GetInt("Exam_Student_Id");
bool flag = paperModule.SetStuExamStartTimeModule(PublishId, GuestId, PaperId);
return flag ? ApiResult.Success() : ApiResult.Failed();
}
/// <summary> /// <summary>
/// 学生提交答卷 /// 学生提交答卷
/// </summary> /// </summary>
......
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