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
7c16a5d1
Commit
7c16a5d1
authored
Feb 26, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
66c056c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
OKRPeriodModule.cs
Edu.Module.OKR/OKRPeriodModule.cs
+13
-10
No files found.
Edu.Module.OKR/OKRPeriodModule.cs
View file @
7c16a5d1
...
...
@@ -4945,18 +4945,21 @@ and {ruleModel.Time} >='{dmodel.RuleSTime.Value.ToString("yyyy-MM-dd")}' and {ru
//查询当期目标所有对齐 , 对齐目标的所有用户
List
<
object
>
AlignList
=
new
List
<
object
>();
var
list
=
oKR_ObjectiveRepository
.
GetOKRMyEmployeeAlignList
(
userInfo
.
Group_Id
,
periodId
,
userInfo
.
Id
);
string
emIds
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
CreateBy
));
var
unlist
=
oKR_UpdateNotificationRepository
.
GetList
(
new
RB_OKR_UpdateNotification_ViewModel
()
{
ReceiveId
=
userInfo
.
Id
,
UpdateByIds
=
emIds
,
State
=
2
});
var
emlist
=
accountRepository
.
GetEmployeeListRepository
(
new
Model
.
ViewModel
.
User
.
Employee_ViewModel
()
{
QIds
=
emIds
});
foreach
(
var
item
in
emlist
)
if
(
list
.
Any
())
{
AlignList
.
Add
(
new
string
emIds
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
CreateBy
));
var
unlist
=
oKR_UpdateNotificationRepository
.
GetList
(
new
RB_OKR_UpdateNotification_ViewModel
()
{
ReceiveId
=
userInfo
.
Id
,
UpdateByIds
=
emIds
,
State
=
2
});
var
emlist
=
accountRepository
.
GetEmployeeListRepository
(
new
Model
.
ViewModel
.
User
.
Employee_ViewModel
()
{
QIds
=
emIds
});
foreach
(
var
item
in
emlist
)
{
item
.
Id
,
item
.
EmployeeName
,
item
.
UserIcon
,
IsHaveUpdate
=
unlist
.
Where
(
x
=>
x
.
UpdateBy
==
item
.
Id
).
Any
()
?
1
:
0
});
AlignList
.
Add
(
new
{
item
.
Id
,
item
.
EmployeeName
,
item
.
UserIcon
,
IsHaveUpdate
=
unlist
.
Where
(
x
=>
x
.
UpdateBy
==
item
.
Id
).
Any
()
?
1
:
0
});
}
}
return
AlignList
;
}
...
...
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