Commit 5e488fc3 authored by 吴春's avatar 吴春

提交代码

parent 4b519014
......@@ -367,6 +367,20 @@ namespace Edu.Common
return ChangeClassFlowId;
}
}
/// <summary>
/// 停课流程编号
/// </summary>
public static int StopClassFlowId
{
get
{
int.TryParse(ReadConfigKey("StopClassFlowId"), out int StopClassFlowId);
return StopClassFlowId;
}
}
/// <summary>
/// okr关注事项配置
......
......@@ -74,6 +74,7 @@ namespace Edu.Model.ViewModel.Course
case 3: str = "申请退学中"; break;
case 4: str = "驳回申请"; break;
case 5: str = "停课"; break;
case 6: str = "停课申请中"; break;
}
return str;
}
......
using Edu.Model.Entity.EduTask;
using Edu.Model.Entity.Course;
using Edu.Model.Entity.EduTask;
using Edu.Model.ViewModel.EduTask;
using Edu.Repository.Course;
using Edu.Repository.EduTask;
using System.Collections.Generic;
using VT.FW.AOP.CustomerAttribute;
......@@ -22,7 +24,10 @@ namespace Edu.Module.EduTask
/// </summary>
private readonly RB_Student_StopClassRepository student_StopClassRepository = new RB_Student_StopClassRepository();
/// <summary>
/// 订单学员仓储层对象
/// </summary>
private readonly RB_Order_GuestRepository order_GuestRepository = new RB_Order_GuestRepository();
/// <summary>
/// 获取调课计划列表
......@@ -70,6 +75,14 @@ namespace Edu.Module.EduTask
flag = newId > 0;
if (flag)
{
//将学员的学习状态变成停课申请中
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{nameof(RB_Order_Guest.GuestState),6},
};
flag = order_GuestRepository.Update(fileds, new WhereHelper(nameof(RB_Order_Guest.Id), extModel.OrderGuestId));
var educationReceipt = new RB_Education_Receipt()
{
Id = 0,
......
......@@ -72,6 +72,7 @@ namespace Edu.WebApi.Controllers.EduTask
}
model.UpdateBy = base.UserInfo.Id;
model.UpdateTime = DateTime.Now;
model.IsAuditThrough = 0;
bool flag = stopStudentClassModule.SetStudentStopClassModule(model);
return flag ? ApiResult.Success() : ApiResult.Failed();
}
......
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