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
c9440f49
Commit
c9440f49
authored
4 years ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
f5e7179e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
RB_Menu_FunctionRepository.cs
Edu.Repository/System/RB_Menu_FunctionRepository.cs
+27
-0
No files found.
Edu.Repository/System/RB_Menu_FunctionRepository.cs
View file @
c9440f49
...
...
@@ -41,5 +41,32 @@ WHERE 1=1
return
new
List
<
RB_Menu_Function_ViewModel
>();
}
}
/// <summary>
/// 获取菜单功能权限列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Menu_Function_ViewModel
>
GetMenuFunctionListRepository
(
RB_Menu_Function_ViewModel
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT A.*,
FROM RB_Menu_Function AS A
WHERE 1=1
"
);
if
(
query
!=
null
)
{
if
(
query
.
MenuId
>
0
)
{
builder
.
Append
(
$" AND A.
{
nameof
(
RB_Menu_Function_ViewModel
.
MenuId
)}
=
{
query
.
MenuId
}
"
);
}
return
Get
<
RB_Menu_Function_ViewModel
>(
builder
.
ToString
()).
ToList
();
}
else
{
return
new
List
<
RB_Menu_Function_ViewModel
>();
}
}
}
}
\ No newline at end of file
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