Commit 90e6c755 authored by 黄奎's avatar 黄奎

页面修改

parent 0f220e41
...@@ -40,10 +40,17 @@ namespace Edu.Common.Enum.Course ...@@ -40,10 +40,17 @@ namespace Edu.Common.Enum.Course
/// </summary> /// </summary>
[EnumField("工作")] [EnumField("工作")]
Work = 6, Work = 6,
/// <summary> /// <summary>
/// 移民 /// 移民
/// </summary> /// </summary>
[EnumField("移民")] [EnumField("移民")]
Immigrant = 7, Immigrant = 7,
/// <summary>
/// 考级
/// </summary>
[EnumField("考级")]
ExamGrade = 8,
} }
} }
...@@ -51,5 +51,11 @@ namespace Edu.Common.Enum.User ...@@ -51,5 +51,11 @@ namespace Edu.Common.Enum.User
/// </summary> /// </summary>
[EnumField("其他")] [EnumField("其他")]
Other = 7, Other = 7,
/// <summary>
/// 校园推广
/// </summary>
[EnumField("校园推广")]
SchoolPromote = 8,
} }
} }
\ No newline at end of file
...@@ -427,6 +427,10 @@ FROM ...@@ -427,6 +427,10 @@ FROM
where2.AppendFormat(" AND A.{0} LIKE @EmployeeName ", nameof(Employee_ViewModel.EmployeeName)); where2.AppendFormat(" AND A.{0} LIKE @EmployeeName ", nameof(Employee_ViewModel.EmployeeName));
parameters.Add("EmployeeName", "%" + query.EmployeeName.Trim() + "%"); parameters.Add("EmployeeName", "%" + query.EmployeeName.Trim() + "%");
} }
if (query.UserRole > 0)
{
where2.AppendFormat(" AND A.{0}={1} ", nameof(Employee_ViewModel.UserRole),(int)query.UserRole);
}
if (!string.IsNullOrEmpty(query.AccountTypeStr)) if (!string.IsNullOrEmpty(query.AccountTypeStr))
{ {
where2.AppendFormat(" AND A.{0} IN({1}) ", nameof(Employee_ViewModel.AccountType), query.AccountTypeStr); where2.AppendFormat(" AND A.{0} IN({1}) ", nameof(Employee_ViewModel.AccountType), query.AccountTypeStr);
......
...@@ -1201,6 +1201,7 @@ namespace Edu.WebApi.Controllers.Course ...@@ -1201,6 +1201,7 @@ namespace Edu.WebApi.Controllers.Course
/// 获取课程优惠价格列表 /// 获取课程优惠价格列表
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[HttpPost]
public ApiResult GetCoursePreferentialList() public ApiResult GetCoursePreferentialList()
{ {
var CourseId = base.ParmJObj.GetInt("CourseId", 0); var CourseId = base.ParmJObj.GetInt("CourseId", 0);
...@@ -1208,6 +1209,16 @@ namespace Edu.WebApi.Controllers.Course ...@@ -1208,6 +1209,16 @@ namespace Edu.WebApi.Controllers.Course
return ApiResult.Success(data: list.OrderBy(qitem => qitem.PriceDiscountType)); return ApiResult.Success(data: list.OrderBy(qitem => qitem.PriceDiscountType));
} }
/// <summary>
/// 获取课程优惠价格列表
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult GetCourseRebateSetList()
{
var list = Common.Plugin.EnumHelper.EnumToList(typeof(CourseRebateSetEnum));
return ApiResult.Success(data: list);
}
/// <summary> /// <summary>
/// 批量设置课程优惠价格 /// 批量设置课程优惠价格
......
...@@ -718,6 +718,7 @@ namespace Edu.WebApi.Controllers.User ...@@ -718,6 +718,7 @@ namespace Edu.WebApi.Controllers.User
item.StuStage, item.StuStage,
item.StuStageName, item.StuStageName,
CreateTimeStr = Common.ConvertHelper.FormatTime(item.CreateTime), CreateTimeStr = Common.ConvertHelper.FormatTime(item.CreateTime),
item.CreateBy,
item.CreateByName, item.CreateByName,
item.CreateType, item.CreateType,
CreateTypeStr = item.CreateType.ToName(), CreateTypeStr = item.CreateType.ToName(),
...@@ -2206,6 +2207,7 @@ namespace Edu.WebApi.Controllers.User ...@@ -2206,6 +2207,7 @@ namespace Edu.WebApi.Controllers.User
EmployeeName = base.ParmJObj.GetStringValue("EmployeeName"),//姓名 EmployeeName = base.ParmJObj.GetStringValue("EmployeeName"),//姓名
AccountTypeStr = base.ParmJObj.GetStringValue("AccountTypeStr"),//人员类型【逗号分割】 AccountTypeStr = base.ParmJObj.GetStringValue("AccountTypeStr"),//人员类型【逗号分割】
IsLeave = base.ParmJObj.GetInt("IsLeave"), IsLeave = base.ParmJObj.GetInt("IsLeave"),
UserRole = (UserRoleEnum)base.ParmJObj.GetInt("UserRole"),
}; };
query.Group_Id = base.UserInfo.Group_Id; query.Group_Id = base.UserInfo.Group_Id;
var list = employeeModule.GetEmployeeListModule(query); var list = employeeModule.GetEmployeeListModule(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