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
cd4ce271
Commit
cd4ce271
authored
Jan 08, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OKR获取直属下级调整
parent
8f4aefd9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
156 additions
and
136 deletions
+156
-136
OKRPeriodModule.cs
Edu.Module.OKR/OKRPeriodModule.cs
+143
-136
RB_DepartmentRepository.cs
Edu.Repository/User/RB_DepartmentRepository.cs
+13
-0
No files found.
Edu.Module.OKR/OKRPeriodModule.cs
View file @
cd4ce271
This diff is collapsed.
Click to expand it.
Edu.Repository/User/RB_DepartmentRepository.cs
View file @
cd4ce271
using
Edu.Common.Enum
;
using
Edu.Model.Entity.User
;
using
Edu.Model.ViewModel.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Data
;
using
System.Linq
;
...
...
@@ -220,5 +221,17 @@ WHERE 1=1
parameters
.
Add
(
"QDeptIds"
,
DeptId
,
direction
:
ParameterDirection
.
Input
);
return
Get
<
RB_Department_ViewModel
>(
procName
,
parameters
,
commandType
:
CommandType
.
StoredProcedure
).
ToList
();
}
/// <summary>
/// 获取所有部门负责人
/// </summary>
/// <param name="group_Id"></param>
/// <returns></returns>
public
string
GetAllDepartmentManagerIds
(
int
group_Id
)
{
string
sql
=
$" SELECT GROUP_CONCAT(ManagerIds) AS ManagerIds FROM rb_department WHERE `Status`=0 and Group_Id =
{
group_Id
}
and ManagerIds <> '' "
;
var
obj
=
ExecuteScalar
(
sql
);
return
obj
==
null
?
""
:
obj
.
ToString
();
}
}
}
\ No newline at end of file
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