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
319acca9
Commit
319acca9
authored
Mar 01, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
01c759eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
OKRPersonalDimension.cs
Edu.Model/ViewModel/OKR/OKRPersonalDimension.cs
+2
-0
RB_OKR_ObjectiveRepository.cs
Edu.Repository/OKR/RB_OKR_ObjectiveRepository.cs
+6
-2
OKRPeriodController.cs
Edu.WebApi/Controllers/OKR/OKRPeriodController.cs
+3
-1
No files found.
Edu.Model/ViewModel/OKR/OKRPersonalDimension.cs
View file @
319acca9
...
...
@@ -31,6 +31,8 @@ namespace Edu.Model.ViewModel.OKR
/// </summary>
public
int
Dept_Id
{
get
;
set
;
}
public
string
QDeptIds
{
get
;
set
;
}
/// <summary>
/// 员工部门
...
...
Edu.Repository/OKR/RB_OKR_ObjectiveRepository.cs
View file @
319acca9
...
...
@@ -363,7 +363,7 @@ GROUP BY a.CreateBy";
/// <param name="periodId"></param>
/// <param name="id"></param>
/// <returns></returns>
public
List
<
RB_OKR_Objective_ViewModel
>
GetOKRPersonalRelationAlignList
(
int
group_Id
,
int
periodId
,
string
CreateBys
,
int
id
)
public
List
<
RB_OKR_Objective_ViewModel
>
GetOKRPersonalRelationAlignList
(
int
group_Id
,
int
periodId
,
string
CreateBys
,
int
id
)
{
string
sql
=
$@"SELECT COUNT(0) as ChildNum,o2.CreateBy FROM
rb_okr_objectiverelation or1
...
...
@@ -415,6 +415,10 @@ WHERE o1.CreateBy in({CreateBys}) and o2.CreateBy ={id} and o1.`Status`=2 and
{
whereperiodId
.
AppendFormat
(
" AND a.{0}={1} "
,
nameof
(
OKRPersonalDimension
.
PeriodId
),
query
.
PeriodId
);
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
Dept_Ids
))
{
where
.
AppendFormat
(
" AND B.{0} in ({1}) "
,
nameof
(
OKRPersonalDimension
.
Dept_Id
),
query
.
Dept_Ids
);
}
//if (!string.IsNullOrEmpty(query.StartEntryTime))
//{
// where.AppendFormat(" AND b.{0}>='{1}' ", nameof(Employee_ViewModel.EntryTime), query.StartEntryTime);
...
...
@@ -494,7 +498,7 @@ WHERE 1=1 {5}
{
DynamicParameters
parameters
=
new
DynamicParameters
();
string
sql
=
GetEmployeeSqlReposiroty
(
query
,
parameters
);
var
list
=
Get
<
OKRPersonalDimension
>(
sql
,
parameters
).
ToList
();
var
list
=
Get
<
OKRPersonalDimension
>(
sql
,
parameters
).
ToList
();
return
list
;
}
...
...
Edu.WebApi/Controllers/OKR/OKRPeriodController.cs
View file @
319acca9
...
...
@@ -1883,7 +1883,9 @@ namespace Edu.WebApi.Controllers.OKR
{
School_Id
=
base
.
ParmJObj
.
GetInt
(
"School_Id"
),
PeriodId
=
base
.
ParmJObj
.
GetInt
(
"PeriodId"
,
0
)
PeriodId
=
base
.
ParmJObj
.
GetInt
(
"PeriodId"
,
0
),
QDeptIds
=
base
.
ParmJObj
.
GetStringValue
(
"QDeptIds"
),
};
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
...
...
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