Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
4e2522ae
Commit
4e2522ae
authored
Mar 12, 2021
by
钟博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多角色导致不能登录问题(全部bug在大屏版已改正)
parent
33bcf556
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
performance/Performance.EntityModels/Entity/report_performance_category.cs
+11
-6
performance/Performance.Services/RoleService.cs
+2
-2
No files found.
performance/Performance.EntityModels/Entity/report_performance_category.cs
View file @
4e2522ae
...
...
@@ -15,11 +15,11 @@ namespace Performance.EntityModels
[
Table
(
"report_performance_category"
)]
public
class
report_performance_category
{
/// <summary>
///
/// </summary>
public
string
Category
{
get
;
set
;
}
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
///
...
...
@@ -29,21 +29,26 @@ public class report_performance_category
/// <summary>
///
/// </summary>
public
string
Original
{
get
;
set
;
}
public
int
Year
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
ItemName
{
get
;
set
;
}
public
int
Month
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
int
Year
{
get
;
set
;
}
public
string
Category
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
int
Month
{
get
;
set
;
}
public
string
Original
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
ItemName
{
get
;
set
;
}
}
}
performance/Performance.Services/RoleService.cs
View file @
4e2522ae
...
...
@@ -62,10 +62,10 @@ public List<RoleResponse> GetUsersRole(int userid)
var
ParentUser
=
_userRepository
.
GetEntities
(
c
=>
c
.
ParentID
==
userid
);
if
(
user
.
ParentID
!=
null
||
user
.
ParentID
==
0
)
{
ParentUser
=
_userRepository
.
GetEntities
(
c
=>
c
.
ID
==
user
.
ParentID
);
ParentUser
=
_userRepository
.
GetEntities
(
c
=>
c
.
Parent
ID
==
user
.
ParentID
);
}
if
(
u
ser
!=
null
)
if
(
ParentU
ser
!=
null
)
{
foreach
(
var
sysUser
in
ParentUser
)
{
...
...
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