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

页面修改

parent b281da30
......@@ -115,6 +115,21 @@ namespace Edu.Module.User
return flag;
}
/// <summary>
/// 重新申请
/// </summary>
/// <param name="TId"></param>
/// <returns></returns>
public bool ReApplyTeacherModule(object TId)
{
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{nameof(RB_Teacher_ViewModel.AuditStatus),(int)AccountStatusEnum.Normal },
};
var flag = teacherRepository.Update(fileds, new WhereHelper(nameof(RB_Teacher_ViewModel.TId), TId));
return flag;
}
/// <summary>
/// 讲师审核
/// </summary>
......
......@@ -130,13 +130,13 @@ WHERE 1=1
{
builder.AppendFormat(" AND t.{0}={1} ", nameof(RB_Teacher_ViewModel.TId), query.TId);
}
if (query.IsShow!=-1)
if (query.IsShow != -1)
{
builder.AppendFormat(" AND t.{0}={1} ", nameof(RB_Teacher_ViewModel.IsShow), query.IsShow);
}
if ((int)query.AuditStatus != -1)
{
builder.AppendFormat(" AND t.{0}={1} ", nameof(RB_Teacher_ViewModel.AuditStatus), query.AuditStatus);
builder.AppendFormat(" AND t.{0}={1} ", nameof(RB_Teacher_ViewModel.AuditStatus), (int)query.AuditStatus);
}
}
return GetPage<RB_Teacher_ViewModel>(pageIndex, pageSize, out rowsCount, builder.ToString(), parameters).ToList();
......
......@@ -357,6 +357,18 @@ namespace Edu.WebApi.Controllers.User
var flag = teacherModule.AuditTeacherModule(TId, AuditStatus, AuditRemark,base.UserInfo);
return flag ? ApiResult.Success() : ApiResult.Failed();
}
/// <summary>
/// 讲师重新申请审核
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult ReApplyTeacher()
{
var TId = base.ParmJObj.GetInt("TId", 0);
var flag = teacherModule.ReApplyTeacherModule(TId);
return flag ? ApiResult.Success() : ApiResult.Failed();
}
#endregion
#region 助教管理
......
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