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
9ca29b2e
Commit
9ca29b2e
authored
Nov 19, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门修改
parent
8caa5f1c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
0 deletions
+51
-0
RB_Department.cs
Edu.Model/Entity/User/RB_Department.cs
+15
-0
RB_Department_ViewModel.cs
Edu.Model/ViewModel/User/RB_Department_ViewModel.cs
+12
-0
RB_DepartmentRepository.cs
Edu.Repository/User/RB_DepartmentRepository.cs
+24
-0
No files found.
Edu.Model/Entity/User/RB_Department.cs
View file @
9ca29b2e
...
...
@@ -65,5 +65,20 @@ namespace Edu.Model.Entity.User
/// 更新时间
/// </summary>
public
DateTime
UpdateTime
{
get
;
set
;
}
/// <summary>
/// 校区编号
/// </summary>
public
int
School_Id
{
get
;
set
;
}
/// <summary>
/// 部门层级
/// </summary>
public
int
DeptTier
{
get
;
set
;
}
/// <summary>
/// 部门排序
/// </summary>
public
int
DeptSort
{
get
;
set
;
}
}
}
Edu.Model/ViewModel/User/RB_Department_ViewModel.cs
View file @
9ca29b2e
using
Edu.Model.Entity.User
;
using
System
;
using
System.Collections.Generic
;
namespace
Edu.Model.ViewModel.User
{
...
...
@@ -48,5 +49,16 @@ namespace Edu.Model.ViewModel.User
/// 负责人姓名
/// </summary>
public
string
ManagerName
{
get
;
set
;
}
/// <summary>
/// 部门负责人数组
/// </summary>
public
List
<
int
>
ManagerList
{
get
{
return
Common
.
ConvertHelper
.
StringToList
(
this
.
ManagerIds
);
}
}
}
}
\ No newline at end of file
Edu.Repository/User/RB_DepartmentRepository.cs
View file @
9ca29b2e
...
...
@@ -36,6 +36,18 @@ WHERE 1=1
{
builder
.
Append
(
$" AND A.
{
nameof
(
RB_Department_ViewModel
.
Group_Id
)}
=
{
query
.
Group_Id
}
"
);
}
if
(
query
.
School_Id
>
0
)
{
builder
.
Append
(
$" AND A.
{
nameof
(
RB_Department_ViewModel
.
School_Id
)}
=
{
query
.
School_Id
}
"
);
}
if
(
query
.
DeptTier
>
0
)
{
builder
.
Append
(
$" AND A.
{
nameof
(
RB_Department_ViewModel
.
DeptTier
)}
=
{
query
.
DeptTier
}
"
);
}
if
(
query
.
ParentId
>
0
)
{
builder
.
Append
(
$" AND A.
{
nameof
(
RB_Department_ViewModel
.
ParentId
)}
=
{
query
.
ParentId
}
"
);
}
if
(
query
.
DeptId
>
0
)
{
builder
.
Append
(
$" AND A.
{
nameof
(
RB_Department_ViewModel
.
DeptId
)}
=
{
query
.
DeptId
}
"
);
...
...
@@ -77,6 +89,18 @@ WHERE 1=1
{
builder
.
Append
(
$" AND A.
{
nameof
(
RB_Department_ViewModel
.
Group_Id
)}
=
{
query
.
Group_Id
}
"
);
}
if
(
query
.
School_Id
>
0
)
{
builder
.
Append
(
$" AND A.
{
nameof
(
RB_Department_ViewModel
.
School_Id
)}
=
{
query
.
School_Id
}
"
);
}
if
(
query
.
DeptTier
>
0
)
{
builder
.
Append
(
$" AND A.
{
nameof
(
RB_Department_ViewModel
.
DeptTier
)}
=
{
query
.
DeptTier
}
"
);
}
if
(
query
.
ParentId
>
0
)
{
builder
.
Append
(
$" AND A.
{
nameof
(
RB_Department_ViewModel
.
ParentId
)}
=
{
query
.
ParentId
}
"
);
}
if
(
query
.
DeptId
>
0
)
{
builder
.
Append
(
$" AND A.
{
nameof
(
RB_Department_ViewModel
.
DeptId
)}
=
{
query
.
DeptId
}
"
);
...
...
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