Commit 7dcf1383 authored by 黄奎's avatar 黄奎

页面修改

parent 43b1932e
......@@ -10,6 +10,7 @@ using Edu.Module.Course;
using Edu.WebApi.Filter;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json.Linq;
namespace Edu.WebApi.Controllers.Course
{
......@@ -651,7 +652,26 @@ namespace Edu.WebApi.Controllers.Course
/// <returns></returns>
public ApiResult AddClassCheck()
{
List<RB_Class_Check_ViewModel> list = Common.Plugin.JsonHelper.DeserializeObject<List<RB_Class_Check_ViewModel>>(RequestParm.Msg.ToString());
List<RB_Class_Check_ViewModel> list = new List<RB_Class_Check_ViewModel>();
JArray array = JArray.Parse(RequestParm.Msg.ToString());
if (array != null && array.Count > 0)
{
foreach (var jItem in array)
{
JObject obj = JObject.Parse(jItem.ToString());
list.Add(new RB_Class_Check_ViewModel()
{
CheckStatus = obj.GetInt("CheckStatus"),
ClassDate = obj.GetDateTime("ClassDate"),
ClassRoomId = obj.GetInt("ClassRoomId"),
OrderGuestId = obj.GetInt("OrderGuestId"),
School_Id = obj.GetInt("School_Id"),
StudyNum = obj.GetInt("StudyNum"),
TeacherId = obj.GetInt("TeacherId"),
ClassId = obj.GetInt("classId"),
});
}
}
if (list == null || !list.Any())
{
return ApiResult.ParamIsNull("");
......@@ -684,7 +704,6 @@ namespace Edu.WebApi.Controllers.Course
if (signModel != null && signModel.ClassCheckId > 0)
{
item.ClassCheckId = signModel.ClassCheckId;
//item.StudyNum = signModel.StudyNum;
item.Group_Id = signModel.Group_Id;
item.CreateTime = signModel.CreateTime;
item.CreateBy = base.UserInfo.Id;
......
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