Commit 045df8ef authored by 黄奎's avatar 黄奎

页面修改

parent dea08b7b
......@@ -339,7 +339,24 @@ namespace Edu.WebApi.Controllers.User
[HttpPost]
public ApiResult SetTeacher()
{
var extModel = Common.Plugin.JsonHelper.DeserializeObject<RB_Teacher_ViewModel>(RequestParm.Msg.ToString());
var extModel = new RB_Teacher_ViewModel()
{
TId = base.ParmJObj.GetInt("TId"),
School_Id = base.ParmJObj.GetInt("School_Id"),
TeacherName = base.ParmJObj.GetStringValue("TeacherName"),
TeacherTel = base.ParmJObj.GetStringValue("TeacherTel"),
TeacherHead = base.ParmJObj.GetStringValue("TeacherHead"),
TeacherIcon = base.ParmJObj.GetStringValue("TeacherIcon"),
TeacherSay = base.ParmJObj.GetStringValue("TeacherSay"),
TeacherIntro = base.ParmJObj.GetStringValue("TeacherIntro"),
IsShow = base.ParmJObj.GetInt("IsShow"),
IsRecommend = base.ParmJObj.GetInt("IsRecommend"),
SortNum = base.ParmJObj.GetInt("SortNum"),
Dept_Id = base.ParmJObj.GetInt("Dept_Id"),
Post_Id = base.ParmJObj.GetInt("Post_Id"),
BaseStuNum = base.ParmJObj.GetInt("BaseStuNum"),
};
extModel.TeachTag = base.ParmJObj.GetStringValue("TeachTag");
extModel.CreateBy = base.UserInfo.Id;
extModel.CreateTime = DateTime.Now;
extModel.UpdateBy = base.UserInfo.Id;
......@@ -451,7 +468,17 @@ namespace Edu.WebApi.Controllers.User
[HttpPost]
public ApiResult SetAssist()
{
var extModel = Common.Plugin.JsonHelper.DeserializeObject<RB_Assist_ViewModel>(RequestParm.Msg.ToString());
var extModel = new RB_Assist_ViewModel()
{
AId = base.ParmJObj.GetInt("AId"),
School_Id = base.ParmJObj.GetInt("School_Id"),
AssistName = base.ParmJObj.GetStringValue("AssistName"),
AssistTel = base.ParmJObj.GetStringValue("AssistTel"),
AssistIcon = base.ParmJObj.GetStringValue("AssistIcon"),
AssistIntro = base.ParmJObj.GetStringValue("AssistIntro"),
Dept_Id = base.ParmJObj.GetInt("Dept_Id"),
Post_Id = base.ParmJObj.GetInt("Post_Id")
};
extModel.CreateBy = base.UserInfo.Id;
extModel.CreateTime = DateTime.Now;
extModel.UpdateBy = 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