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
a28195f3
Commit
a28195f3
authored
Mar 10, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
27c1db9e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
70 deletions
+1
-70
RB_Post_RoleRepository.cs
Edu.Repository/System/RB_Post_RoleRepository.cs
+0
-34
RB_Role_PermissionRepository.cs
Edu.Repository/System/RB_Role_PermissionRepository.cs
+0
-34
RB_System_LogRepository.cs
Edu.Repository/System/RB_System_LogRepository.cs
+1
-2
No files found.
Edu.Repository/System/RB_Post_RoleRepository.cs
View file @
a28195f3
...
...
@@ -11,40 +11,6 @@ namespace Edu.Repository.System
/// </summary>
public
class
RB_Post_RoleRepository
:
BaseRepository
<
RB_Post_Role
>
{
/// <summary>
/// 获取岗位角色分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Post_Role_ViewModel
>
GetPostRolePageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Post_Role_ViewModel
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT *
FROM RB_Post_Role
WHERE 1=1
"
);
if
(
query
!=
null
)
{
if
(
query
.
Id
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Post_Role_ViewModel
.
Id
),
query
.
Id
);
}
if
(
query
.
PostId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Post_Role_ViewModel
.
PostId
),
query
.
PostId
);
}
if
(
query
.
RoleId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Post_Role_ViewModel
.
RoleId
),
query
.
RoleId
);
}
}
return
GetPage
<
RB_Post_Role_ViewModel
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
()).
ToList
();
}
/// <summary>
/// 获取岗位角色列表
/// </summary>
...
...
Edu.Repository/System/RB_Role_PermissionRepository.cs
View file @
a28195f3
...
...
@@ -11,40 +11,6 @@ namespace Edu.Repository.System
/// </summary>
public
class
RB_Role_PermissionRepository
:
BaseRepository
<
RB_Role_Permission
>
{
/// <summary>
/// 获取角色菜单权限分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Role_Permission_ViewModel
>
GetRolePermissionPageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Role_Permission_ViewModel
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT *
FROM RB_Role_Permission
WHERE 1=1
"
);
if
(
query
!=
null
)
{
if
(
query
.
ID
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Role_Permission_ViewModel
.
ID
),
query
.
ID
);
}
if
(
query
.
Role_Id
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Role_Permission_ViewModel
.
Role_Id
),
query
.
Role_Id
);
}
if
(
query
.
Menu_Id
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Role_Permission_ViewModel
.
Menu_Id
),
query
.
Menu_Id
);
}
}
return
GetPage
<
RB_Role_Permission_ViewModel
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
()).
ToList
();
}
/// <summary>
/// 获取角色菜单权限列表
/// </summary>
...
...
Edu.Repository/System/RB_System_LogRepository.cs
View file @
a28195f3
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
Edu.Model.Entity.System
;
...
...
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