Commit 103fb329 authored by 黄奎's avatar 黄奎

接口修改

parent a3ebadf6
...@@ -60,6 +60,10 @@ WHERE 1=1 ...@@ -60,6 +60,10 @@ WHERE 1=1
{ {
builder.AppendFormat(" AND A.SaleState=2 AND A.DirectorId>0 AND A.DirectorStatus=1 AND A.ManagerStatus=0 "); builder.AppendFormat(" AND A.SaleState=2 AND A.DirectorId>0 AND A.DirectorStatus=1 AND A.ManagerStatus=0 ");
} }
if (query.SaleState > 0)
{
builder.AppendFormat(" AND A.{0}={1}", nameof(RB_StudyAbroad_ViewModel.SaleState),(int)query.SaleState);
}
return GetPage<RB_StudyAbroad_ViewModel>(pageIndex, pageSize, out rowsCount, builder.ToString(), parameters).ToList(); return GetPage<RB_StudyAbroad_ViewModel>(pageIndex, pageSize, out rowsCount, builder.ToString(), parameters).ToList();
} }
} }
......
using Edu.Cache.User; using Edu.Cache.User;
using Edu.Common.API; using Edu.Common.API;
using Edu.Common.Enum.Sale;
using Edu.Common.Plugin; using Edu.Common.Plugin;
using Edu.Model.ViewModel.StudyAbroad; using Edu.Model.ViewModel.StudyAbroad;
using Edu.Module.StudyAbroad; using Edu.Module.StudyAbroad;
...@@ -190,6 +191,7 @@ namespace Edu.WebApi.Controllers.StudyAbroad ...@@ -190,6 +191,7 @@ namespace Edu.WebApi.Controllers.StudyAbroad
SupplierId = base.ParmJObj.GetInt("SupplierId"), SupplierId = base.ParmJObj.GetInt("SupplierId"),
IsQPrice = base.ParmJObj.GetInt("IsQPrice"), IsQPrice = base.ParmJObj.GetInt("IsQPrice"),
AuditType=base.ParmJObj.GetInt("AuditType"), AuditType=base.ParmJObj.GetInt("AuditType"),
SaleState=(SaleStateEnum)base.ParmJObj.GetInt("SaleState")
}; };
query.Group_Id = base.UserInfo.Group_Id; query.Group_Id = base.UserInfo.Group_Id;
List<object> result = new List<object>(); List<object> result = new List<object>();
...@@ -447,6 +449,17 @@ namespace Edu.WebApi.Controllers.StudyAbroad ...@@ -447,6 +449,17 @@ namespace Edu.WebApi.Controllers.StudyAbroad
}); });
return ApiResult.Success(data: list); return ApiResult.Success(data: list);
} }
/// <summary>
/// 获取留学就业销售状态列表
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult GetSaleStateList()
{
var list = Common.Plugin.EnumHelper.EnumToList(typeof(SaleStateEnum));
return ApiResult.Success(data: list);
}
#endregion #endregion
} }
} }
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