Commit 603a3995 authored by liudong1993's avatar liudong1993

1

parent 83deee39
...@@ -74,6 +74,11 @@ namespace Edu.Model.ViewModel.Customer ...@@ -74,6 +74,11 @@ namespace Edu.Model.ViewModel.Customer
/// </summary> /// </summary>
public int QCustomerState { get; set; } public int QCustomerState { get; set; }
/// <summary>
/// 查询同业类型 1非关联同业客人
/// </summary>
public int QCustomerType { get; set; }
/// <summary> /// <summary>
/// 同业Ids /// 同业Ids
/// </summary> /// </summary>
......
...@@ -43,6 +43,10 @@ WHERE 1=1 ...@@ -43,6 +43,10 @@ WHERE 1=1
{ {
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Customer_Extend.CustomerId), query.CustomerId); builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Customer_Extend.CustomerId), query.CustomerId);
} }
if (query.QCustomerType == 1)
{
builder.AppendFormat(" AND A.{0}=0 ", nameof(RB_Customer_Extend.CustomerId));
}
if (query.CreateBy > 0) if (query.CreateBy > 0)
{ {
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Customer_Extend.CreateBy), query.CreateBy); builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Customer_Extend.CreateBy), query.CreateBy);
......
...@@ -1291,7 +1291,7 @@ namespace Edu.WebApi.Controllers.Course ...@@ -1291,7 +1291,7 @@ namespace Edu.WebApi.Controllers.Course
return ApiResult.Success(); return ApiResult.Success();
} }
else { else {
return ApiResult.Failed(); return ApiResult.Failed(msg);
} }
} }
......
...@@ -459,6 +459,7 @@ namespace Edu.WebApi.Controllers.Customer ...@@ -459,6 +459,7 @@ namespace Edu.WebApi.Controllers.Customer
ContactNumber = base.ParmJObj.GetStringValue("ContactNumber"), ContactNumber = base.ParmJObj.GetStringValue("ContactNumber"),
ApproveState = base.ParmJObj.GetInt("ApproveState"), ApproveState = base.ParmJObj.GetInt("ApproveState"),
QCustomerState = base.ParmJObj.GetInt("QCustomerState"), QCustomerState = base.ParmJObj.GetInt("QCustomerState"),
QCustomerType = base.ParmJObj.GetInt("QCustomerType", -1)
}; };
query.CreateBy = userInfo.Id; query.CreateBy = userInfo.Id;
var list = customerModule.GetCustomerPageModule_V2(pageModel.PageIndex, pageModel.PageSize, out long rowsCount, query); var list = customerModule.GetCustomerPageModule_V2(pageModel.PageIndex, pageModel.PageSize, out long rowsCount, query);
......
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