Commit bea41205 authored by 黄奎's avatar 黄奎

页面修改

parent 7c6400e7
......@@ -1243,6 +1243,11 @@ namespace Edu.Module.Course
var tempAdv = advisorList.Where(qitem => qitem.AdvisorStatus == 5)?.FirstOrDefault();
if (tempAdv == null)
{
Dictionary<string, object> stufileds = new Dictionary<string, object>()
{
{nameof(RB_Student_ViewModel.AdvisorStatus),5 }
};
studentRepository.Update(stufileds, new WhereHelper(nameof(RB_Student_ViewModel.StuId), sItem.StuId));
student_AdvisorRepository.Insert(new Model.Entity.Customer.RB_Student_Advisor()
{
Id=0,
......@@ -4750,6 +4755,11 @@ namespace Edu.Module.Course
var tempAdv = advList?.Where(qitem => qitem.StuId == subItem.Student_Id && qitem.AdvisorStatus == 5)?.FirstOrDefault();
if (tempAdv == null && subItem.Student_Id!=65)
{
Dictionary<string, object> stufileds = new Dictionary<string, object>()
{
{nameof(RB_Student_ViewModel.AdvisorStatus),5 }
};
studentRepository.Update(stufileds, new WhereHelper(nameof(RB_Student_ViewModel.StuId), subItem.Student_Id));
student_AdvisorRepository.Insert(new Model.Entity.Customer.RB_Student_Advisor()
{
Id = 0,
......
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