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
b3e80f90
Commit
b3e80f90
authored
Mar 04, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
ca412231
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
147 additions
and
37 deletions
+147
-37
OKRPersonalDimension.cs
Edu.Model/ViewModel/OKR/OKRPersonalDimension.cs
+6
-0
RB_Department_ViewModel.cs
Edu.Model/ViewModel/User/RB_Department_ViewModel.cs
+1
-0
RB_OKR_ObjectiveRepository.cs
Edu.Repository/OKR/RB_OKR_ObjectiveRepository.cs
+24
-0
OKRPeriodController.cs
Edu.WebApi/Controllers/OKR/OKRPeriodController.cs
+116
-37
No files found.
Edu.Model/ViewModel/OKR/OKRPersonalDimension.cs
View file @
b3e80f90
...
...
@@ -88,5 +88,11 @@ namespace Edu.Model.ViewModel.OKR
/// </summary>
public
decimal
ScoreRate
{
get
;
set
;
}
public
int
Post_Id
{
get
;
set
;
}
public
int
LeaveStatus
{
get
;
set
;
}
}
}
Edu.Model/ViewModel/User/RB_Department_ViewModel.cs
View file @
b3e80f90
...
...
@@ -45,6 +45,7 @@ namespace Edu.Model.ViewModel.User
/// </summary>
public
string
QDeptIds
{
get
;
set
;
}
/// <summary>
/// 上级ids
/// </summary>
...
...
Edu.Repository/OKR/RB_OKR_ObjectiveRepository.cs
View file @
b3e80f90
...
...
@@ -387,6 +387,21 @@ WHERE o1.CreateBy in({CreateBys}) and o2.CreateBy ={id} and o1.`Status`=2 and
/// <summary>
/// 获取个人维度对齐量
/// </summary>
/// <param name="group_Id"></param>
/// <param name="periodId"></param>
/// <param name="id"></param>
/// <returns></returns>
public
List
<
RB_OKR_Objective_ViewModel
>
GetOKRPersonalRelationAlignList_V2
(
int
group_Id
,
int
periodId
,
string
CreateBys
)
{
string
sql
=
$@"SELECT COUNT(0) as ChildNum,o1.CreateBy FROM
rb_okr_objectiverelation or1
LEFT JOIN rb_okr_objective o1 on or1.ObjectiveId = o1.Id
WHERE o1.CreateBy in(
{
CreateBys
}
) and o1.`Status`=2 and o1.Group_Id=
{
group_Id
}
and o1.PeriodId =
{
periodId
}
group by o1.CreateBy "
;
return
Get
<
RB_OKR_Objective_ViewModel
>(
sql
).
ToList
();
}
...
...
@@ -423,6 +438,15 @@ WHERE o1.CreateBy in({CreateBys}) and o2.CreateBy ={id} and o1.`Status`=2 and
{
where
.
AppendFormat
(
" AND B.{0}={1} "
,
nameof
(
OKRPersonalDimension
.
Dept_Id
),
query
.
Dept_Id
);
}
if
(
query
.
Post_Id
>
0
)
{
where
.
AppendFormat
(
" AND B.{0}={1} "
,
nameof
(
OKRPersonalDimension
.
Post_Id
),
query
.
Post_Id
);
}
if
(
query
.
LeaveStatus
>
0
)
{
where
.
AppendFormat
(
" AND B.{0}={1} "
,
nameof
(
OKRPersonalDimension
.
LeaveStatus
),
query
.
LeaveStatus
);
}
if
(
query
.
PeriodId
>
0
)
{
whereperiodId
.
AppendFormat
(
" AND a.{0}={1} "
,
nameof
(
OKRPersonalDimension
.
PeriodId
),
query
.
PeriodId
);
...
...
Edu.WebApi/Controllers/OKR/OKRPeriodController.cs
View file @
b3e80f90
This diff is collapsed.
Click to expand it.
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