Commit 4d33d788 authored by 黄奎's avatar 黄奎

页面修改

parent 7bffb08a
......@@ -60,6 +60,21 @@ namespace Edu.Module.Course
/// </summary>
private readonly RB_Personnel_PeriodRepository personnel_PeriodRepository = new RB_Personnel_PeriodRepository();
/// <summary>
/// 获取人头奖金期数分页列表
/// </summary>
/// <param name="pageIdex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public List<RB_Personnel_Period_Extend> GetPersonnelPeriodPageModule(int pageIdex, int pageSize, out long rowsCount, RB_Personnel_Period_Extend query)
{
var list = personnel_PeriodRepository.GetPersonnelPeriodPageRepository(pageIdex, pageSize, out rowsCount, query);
return list;
}
/// <summary>
/// 生成业绩
/// </summary>
......
......@@ -185,6 +185,50 @@ namespace Edu.WebApi.Controllers.Bonus
return ApiResult.Success();
}
/// <summary>
/// 获取人头奖励分页列表
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult GetPersonnelPeriodPage()
{
var pageModel = Common.Plugin.JsonHelper.DeserializeObject<ResultPageModel>(RequestParm.Msg.ToString());
var query = new RB_Bonus_PlanExtend()
{
};
query.Group_Id = base.UserInfo.Group_Id;
List<object> result = new List<object>();
var list = employeeBonusModule.GetPersonnelPeriodPageModule(pageModel.PageIndex, pageModel.PageSize, out long rowsCount, query);
foreach (var item in list)
{
string CreateByName = UserReidsCache.GetUserLoginInfo(item.CreateBy)?.AccountName ?? "";
result.Add(new
{
item.Id,
item.PlanName,
item.BasicSalary,
item.OpenBonus,
item.WorkAgeSalary,
item.ClueNumSalary,
item.SaleIds,
item.UseCourseIds,
item.NotUseCourseIds,
CreateByName,
item.PlanType,
item.PlanTypeStr,
CreateTime = Common.ConvertHelper.FormatTime(item.CreateTime),
item.DetailList,
item.SaleList,
item.UseCourseList,
item.NotUseCourseList,
item.MonthGoalMoney,
});
}
pageModel.Count = rowsCount;
pageModel.PageData = result;
return ApiResult.Success(data: pageModel);
}
#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