Commit 2d6f88d9 authored by 黄奎's avatar 黄奎

新增文件

parent c0e404db
...@@ -32,7 +32,7 @@ namespace Edu.Model.Entity.Course ...@@ -32,7 +32,7 @@ namespace Edu.Model.Entity.Course
public string GuestName { get; set; } public string GuestName { get; set; }
/// <summary> /// <summary>
/// 状态 1正常 2退学 /// 状态 1正常 2退学 3-申请中,4-驳回申请
/// </summary> /// </summary>
public int GuestState { get; set; } public int GuestState { get; set; }
......
...@@ -24,5 +24,21 @@ namespace Edu.Model.ViewModel.Course ...@@ -24,5 +24,21 @@ namespace Edu.Model.ViewModel.Course
/// </summary> /// </summary>
public string BirthDay { get; set; } public string BirthDay { get; set; }
/// <summary>
/// 学员状态
/// </summary>
public string GuestStateStr
{
get { string str = "";
switch (this.GuestState)
{
case 1: str = "正常";break;
case 2: str = "退学"; break;
case 3: str = "申请退学中"; break;
case 4: str = "驳回申请"; break;
}
return str;
}
}
} }
} }
\ No newline at end of file
...@@ -20,7 +20,7 @@ namespace Edu.Module.Course ...@@ -20,7 +20,7 @@ namespace Edu.Module.Course
/// <summary> /// <summary>
/// 订单处理类 /// 订单处理类
/// </summary> /// </summary>
public class OrderModule public partial class OrderModule
{ {
/// <summary> /// <summary>
/// 订单 /// 订单
......
using System;
using System.Collections.Generic;
using System.Text;
namespace Edu.Module.Course
{
/// <summary>
/// 订单处理类
/// </summary>
public partial class OrderModule
{
}
}
...@@ -715,8 +715,11 @@ namespace Edu.WebApi.Controllers.Course ...@@ -715,8 +715,11 @@ namespace Edu.WebApi.Controllers.Course
x.Id, x.Id,
x.GuestName, x.GuestName,
x.GuestState, x.GuestState,
x.OrderId,
x.GuestStateStr,
x.Profession, x.Profession,
x.Sex, x.Sex,
SexStr= x.Sex==1?"男":"女",
x.Age, x.Age,
x.Mobile, x.Mobile,
x.Basics, x.Basics,
...@@ -728,7 +731,7 @@ namespace Edu.WebApi.Controllers.Course ...@@ -728,7 +731,7 @@ namespace Edu.WebApi.Controllers.Course
LearningGoalsName = x.LearningGoals.ToName(), LearningGoalsName = x.LearningGoals.ToName(),
x.Contact, x.Contact,
x.ContactMobile, x.ContactMobile,
UpdateTime = x.UpdateTime.ToString("yyyy-MM-dd HH:mm:ss") UpdateTime = x.UpdateTime.ToString("yyyy-MM-dd HH:mm:ss"),
}); });
return ApiResult.Success("", pageModel); return ApiResult.Success("", pageModel);
} }
...@@ -924,5 +927,20 @@ namespace Edu.WebApi.Controllers.Course ...@@ -924,5 +927,20 @@ namespace Edu.WebApi.Controllers.Course
} }
#endregion #endregion
#region 退课申请
/// <summary>
/// 退课申请
/// </summary>
/// <returns></returns>
public ApiResult BackClassApply()
{
var GuestId = base.ParmJObj.GetInt("GuestId");
var OrderId = base.ParmJObj.GetInt("OrderId");
//申请原因
var applyReason = base.ParmJObj.GetStringValue("applyReason");
return ApiResult.Failed();
}
#endregion
} }
} }
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