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
7289144a
Commit
7289144a
authored
Dec 24, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
41e70a35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
EmployeeBonusModule.cs
Edu.Module.Course/EmployeeBonusModule.cs
+14
-0
No files found.
Edu.Module.Course/EmployeeBonusModule.cs
View file @
7289144a
...
...
@@ -13,6 +13,8 @@ using Edu.Repository.User;
using
Edu.Model.CacheModel
;
using
Edu.AOP.CustomerAttribute
;
using
Edu.Model.ViewModel.User
;
using
Edu.Repository.Finance
;
using
Edu.Model.ViewModel.Finance
;
namespace
Edu.Module.Course
{
...
...
@@ -66,6 +68,11 @@ namespace Edu.Module.Course
/// </summary>
private
readonly
RB_AccountRepository
accountRepository
=
new
RB_AccountRepository
();
/// <summary>
/// 财务单据
/// </summary>
private
readonly
RB_FinanceRepository
financeRepository
=
new
RB_FinanceRepository
();
/// <summary>
/// 获取人头奖金期数分页列表
...
...
@@ -94,8 +101,15 @@ namespace Edu.Module.Course
QIds
=
empIds
});
}
string
periodsIds
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
Id
));
var
financeList
=
financeRepository
.
GetListSingle
(
new
RB_Finance_Extend
()
{
RB_Group_Id
=
query
.
Group_Id
,
FinanceType
=
2
,
OtherType
=
21
,
ReFinanceIds
=
ids
,
IsSelectNormal
=
1
});
foreach
(
var
item
in
list
)
{
var
flist
=
financeList
.
Where
(
x
=>
x
.
ReFinanceId
==
item
.
Id
).
Select
(
x
=>
x
.
FrID
);
if
(
flist
.
Any
())
{
item
.
Financials
=
string
.
Join
(
","
,
flist
);
}
var
tempList
=
bonusList
?.
Where
(
qitem
=>
qitem
.
PeriodId
==
item
.
Id
)?.
ToList
();
if
(
tempList
!=
null
&&
tempList
.
Count
>
0
)
{
...
...
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