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
27c1db9e
Commit
27c1db9e
authored
Mar 10, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
c3e7bfa8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
40 deletions
+5
-40
RB_Msg_BaseRepository.cs
Edu.Repository/System/RB_Msg_BaseRepository.cs
+0
-3
RB_RoleRepository.cs
Edu.Repository/System/RB_RoleRepository.cs
+1
-2
RB_Role_FunctionPermissionRepository.cs
...Repository/System/RB_Role_FunctionPermissionRepository.cs
+0
-34
RB_System_LogRepository.cs
Edu.Repository/System/RB_System_LogRepository.cs
+3
-0
UserCenterController.cs
Edu.WebApi/Controllers/User/UserCenterController.cs
+1
-1
No files found.
Edu.Repository/System/RB_Msg_BaseRepository.cs
View file @
27c1db9e
...
...
@@ -33,8 +33,6 @@ namespace Edu.Repository.System
{
builder
.
Append
(
$" AND
{
nameof
(
RB_Msg_Base
.
StoreType
)}
=
{(
int
)
query
.
StoreType
}
"
);
}
}
return
Get
<
RB_Msg_Base_Function_ViewModel
>(
builder
.
ToString
()).
ToList
();
}
...
...
@@ -59,7 +57,6 @@ namespace Edu.Repository.System
{
builder
.
Append
(
$" AND
{
nameof
(
RB_Msg_Base
.
StoreType
)}
=
{(
int
)
query
.
StoreType
}
"
);
}
}
return
GetPage
<
RB_Msg_Base_Function_ViewModel
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
()).
ToList
();
}
...
...
Edu.Repository/System/RB_RoleRepository.cs
View file @
27c1db9e
...
...
@@ -90,6 +90,5 @@ WHERE 1=1
}
return
GetPage
<
RB_Role_ViewModel
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
(),
parameters
).
ToList
();
}
}
}
}
\ No newline at end of file
Edu.Repository/System/RB_Role_FunctionPermissionRepository.cs
View file @
27c1db9e
...
...
@@ -12,40 +12,6 @@ namespace Edu.Repository.System
/// </summary>
public
class
RB_Role_FunctionPermissionRepository
:
BaseRepository
<
RB_Role_FunctionPermission
>
{
/// <summary>
/// 获取角色功能菜单分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Role_FunctionPermission_ViewModel
>
GetRoleFunctionPermissionPageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Role_FunctionPermission_ViewModel
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT *
FROM RB_Role_FunctionPermission
WHERE 1=1
"
);
if
(
query
!=
null
)
{
if
(
query
.
ID
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Role_FunctionPermission_ViewModel
.
ID
),
query
.
ID
);
}
if
(
query
.
Action_Id
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Role_FunctionPermission_ViewModel
.
Action_Id
),
query
.
Action_Id
);
}
if
(
query
.
Role_Id
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Role_FunctionPermission_ViewModel
.
Role_Id
),
query
.
Role_Id
);
}
}
return
GetPage
<
RB_Role_FunctionPermission_ViewModel
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
()).
ToList
();
}
/// <summary>
/// 获取角色功能菜单列表
/// </summary>
...
...
Edu.Repository/System/RB_System_LogRepository.cs
View file @
27c1db9e
...
...
@@ -7,6 +7,9 @@ using Edu.Model.ViewModel.System;
namespace
Edu.Repository.System
{
/// <summary>
/// 系统消息记录仓储层
/// </summary>
public
class
RB_System_LogRepository
:
BaseRepository
<
RB_System_Log
>
{
/// <summary>
...
...
Edu.WebApi/Controllers/User/UserCenterController.cs
View file @
27c1db9e
...
...
@@ -41,7 +41,7 @@ namespace Edu.WebApi.Controllers.User
/// <summary>
/// 考勤记录处理类
/// </summary>
public
AttendanceRecodModule
attendRecodeModule
=
new
AttendanceRecodModule
();
public
readonly
AttendanceRecodModule
attendRecodeModule
=
new
AttendanceRecodModule
();
#
region
字典管理
...
...
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