Commit 35a40709 authored by 黄奎's avatar 黄奎

页面修改

parent 0b535b42
...@@ -390,5 +390,10 @@ namespace Edu.Model.ViewModel.User ...@@ -390,5 +390,10 @@ namespace Edu.Model.ViewModel.User
/// 课程顾问跟进信息列表 /// 课程顾问跟进信息列表
/// </summary> /// </summary>
public List<RB_Student_Advisor_Extend> AdvisorList { get; set; } public List<RB_Student_Advisor_Extend> AdvisorList { get; set; }
/// <summary>
/// 客户状态(1-有效,2-无效)
/// </summary>
public int QStudentStatus { get; set; }
} }
} }
\ No newline at end of file
...@@ -323,7 +323,7 @@ WHERE 1=1 ...@@ -323,7 +323,7 @@ WHERE 1=1
} }
if (query.StuStage > 0) if (query.StuStage > 0)
{ {
builder.AppendFormat(" AND t.{0}={1} ", nameof(RB_Student_ViewModel.StuStage), (int)query.StuStage); builder.AppendFormat(" AND t.{0}={1} ", nameof(RB_Student_ViewModel.StuStage), query.StuStage);
} }
if (!string.IsNullOrEmpty(query.StartTime)) if (!string.IsNullOrEmpty(query.StartTime))
{ {
...@@ -398,6 +398,20 @@ WHERE 1=1 ...@@ -398,6 +398,20 @@ WHERE 1=1
{ {
builder.AppendFormat(" AND C.{0}={1} ", nameof(RB_Student_ViewModel.CategoryId), query.CategoryId); builder.AppendFormat(" AND C.{0}={1} ", nameof(RB_Student_ViewModel.CategoryId), query.CategoryId);
} }
if (query.AdvisorStatus > 0)
{
builder.AppendFormat(" AND t.{0}={1} ", nameof(RB_Student_ViewModel.AdvisorStatus), query.AdvisorStatus);
}
//有效客户
if (query.QStudentStatus == 1)
{
builder.AppendFormat(" AND t.{0}<>{1} ", nameof(RB_Student_ViewModel.StuStage), 7);
}
//无效客户
if (query.QStudentStatus == 2)
{
builder.AppendFormat(" AND t.{0}={1} ", nameof(RB_Student_ViewModel.StuStage), 7);
}
} }
builder.AppendFormat(" ORDER BY t.{0} DESC ", nameof(RB_Student_ViewModel.StuId)); builder.AppendFormat(" ORDER BY t.{0} DESC ", nameof(RB_Student_ViewModel.StuId));
return GetPage<RB_Student_ViewModel>(pageIndex, pageSize, out rowsCount, builder.ToString(), parameters).ToList(); return GetPage<RB_Student_ViewModel>(pageIndex, pageSize, out rowsCount, builder.ToString(), parameters).ToList();
......
...@@ -680,6 +680,8 @@ namespace Edu.WebApi.Controllers.User ...@@ -680,6 +680,8 @@ namespace Edu.WebApi.Controllers.User
StuType = base.ParmJObj.GetInt("StuType"), StuType = base.ParmJObj.GetInt("StuType"),
ExistCourseConsultant=base.ParmJObj.GetInt("ExistCourseConsultant"), ExistCourseConsultant=base.ParmJObj.GetInt("ExistCourseConsultant"),
CategoryId=base.ParmJObj.GetInt("CategoryId"), CategoryId=base.ParmJObj.GetInt("CategoryId"),
QStudentStatus=base.ParmJObj.GetInt("QStudentStatus"),
AdvisorStatus=base.ParmJObj.GetInt("AdvisorStatus"),
}; };
if (query.IsQueryMyStu == 1) if (query.IsQueryMyStu == 1)
{ {
......
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