Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
4d33d788
Commit
4d33d788
authored
Dec 23, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
7bffb08a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
0 deletions
+59
-0
EmployeeBonusModule.cs
Edu.Module.Course/EmployeeBonusModule.cs
+15
-0
BonusController.cs
Edu.WebApi/Controllers/Bonus/BonusController.cs
+44
-0
No files found.
Edu.Module.Course/EmployeeBonusModule.cs
View file @
4d33d788
...
@@ -60,6 +60,21 @@ namespace Edu.Module.Course
...
@@ -60,6 +60,21 @@ namespace Edu.Module.Course
/// </summary>
/// </summary>
private
readonly
RB_Personnel_PeriodRepository
personnel_PeriodRepository
=
new
RB_Personnel_PeriodRepository
();
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>
/// 生成业绩
/// 生成业绩
/// </summary>
/// </summary>
...
...
Edu.WebApi/Controllers/Bonus/BonusController.cs
View file @
4d33d788
...
@@ -185,6 +185,50 @@ namespace Edu.WebApi.Controllers.Bonus
...
@@ -185,6 +185,50 @@ namespace Edu.WebApi.Controllers.Bonus
return
ApiResult
.
Success
();
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
#
endregion
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment