Commit 0e5ca11f authored by liudong1993's avatar liudong1993

1

parent 9e2a9560
......@@ -506,5 +506,27 @@ namespace Edu.Module.Course
{
return student_OrderGuestRepository.ValidataStuOrder(stuIds, group_Id);
}
/// <summary>
/// 获取学员是否上传到访表
/// </summary>
/// <param name="stuIds"></param>
/// <returns></returns>
public string GetStudentVisitVoucher(string stuIds)
{
var list = studentRepository.GetStudentListRepository(new RB_Student_ViewModel() { StuIds = stuIds });
string Rmsg = "";
foreach (var item in list) {
if (string.IsNullOrEmpty(item.FileVoucher) && item.CreateTime >= Convert.ToDateTime("2023-03-22"))
{
Rmsg += "、" + item.StuName;
}
}
if (!string.IsNullOrEmpty(Rmsg))
{
Rmsg = Rmsg.Substring(1, Rmsg.Length) + " 未上传到访表,请至我的学员详情里上传该学生到访表后方可报名";
}
return Rmsg;
}
}
}
\ No newline at end of file
......@@ -215,6 +215,9 @@ namespace Edu.Module.Course
{ nameof(RB_Sell_Achievements_Rule_ViewModel.SchoolIds), demodel.SchoolIds},
{ nameof(RB_Sell_Achievements_Rule_ViewModel.UpdateBy), demodel.UpdateBy},
{ nameof(RB_Sell_Achievements_Rule_ViewModel.UpdateTime), demodel.UpdateTime},
{ nameof(RB_Sell_Achievements_Rule_ViewModel.SendType), demodel.SendType},
{ nameof(RB_Sell_Achievements_Rule_ViewModel.PeopleMoney), demodel.PeopleMoney},
{ nameof(RB_Sell_Achievements_Rule_ViewModel.ExtraMoney), demodel.ExtraMoney},
};
List<WhereHelper> wheres = new List<WhereHelper>() {
new WhereHelper(){
......
......@@ -601,6 +601,13 @@ namespace Edu.WebApi.Controllers.Course
{
return ApiResult.ParamIsNull("客人数量不正确");
}
//ld 2023-03-22 强验证 学生的到访表
string rmsg = orderModule.GetStudentVisitVoucher(demodel.StuIds);
if (rmsg != "")
{
return ApiResult.Failed(rmsg);
}
}
demodel.Group_Id = userInfo.Group_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