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
03a803ff
Commit
03a803ff
authored
Apr 19, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG
parent
71183e47
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
performance/Performance.Services/HospitalService.cs
+2
-2
performance/Performance.Services/RoleService.cs
+2
-2
performance/Performance.Services/UserService.cs
+1
-1
No files found.
performance/Performance.Services/HospitalService.cs
View file @
03a803ff
...
...
@@ -30,11 +30,11 @@ public List<HospitalResponse> GetUserHopital(int userid)
if
(
userid
<=
0
)
throw
new
PerformanceException
(
$"userid:
{
userid
}
错误"
);
var
joinList
=
_joinRepository
.
GetEntities
(
t
=>
t
.
UserID
==
userid
)
.
ToList
()
;
var
joinList
=
_joinRepository
.
GetEntities
(
t
=>
t
.
UserID
==
userid
);
if
(
joinList
==
null
&&
joinList
.
Count
==
0
)
return
null
;
var
hosList
=
_hospitalRepository
.
GetEntities
(
t
=>
joinList
.
Select
(
j
=>
j
.
HospitalID
).
Contains
(
t
.
ID
))
.
ToList
()
;
var
hosList
=
_hospitalRepository
.
GetEntities
(
t
=>
joinList
.
Select
(
j
=>
j
.
HospitalID
).
Contains
(
t
.
ID
));
return
Mapper
.
Map
<
List
<
sys_hospital
>,
List
<
HospitalResponse
>>(
hosList
);
}
...
...
performance/Performance.Services/RoleService.cs
View file @
03a803ff
...
...
@@ -31,11 +31,11 @@ public List<RoleResponse> GetUserRole(int userid)
if
(
userid
<=
0
)
throw
new
PerformanceException
(
$"userid:
{
userid
}
错误"
);
var
joinList
=
_userroleRepository
.
GetEntities
(
t
=>
t
.
UserID
==
userid
)
.
ToList
()
;
var
joinList
=
_userroleRepository
.
GetEntities
(
t
=>
t
.
UserID
==
userid
);
if
(
joinList
==
null
&&
joinList
.
Count
==
0
)
return
null
;
var
roles
=
_roleRepository
.
GetEntities
(
t
=>
joinList
.
Select
(
j
=>
j
.
RoleID
).
Contains
(
t
.
ID
))
.
ToList
()
;
var
roles
=
_roleRepository
.
GetEntities
(
t
=>
joinList
.
Select
(
j
=>
j
.
RoleID
).
Contains
(
t
.
ID
));
return
Mapper
.
Map
<
List
<
RoleResponse
>>(
roles
);
}
...
...
performance/Performance.Services/UserService.cs
View file @
03a803ff
...
...
@@ -296,7 +296,7 @@ public UserResponse UpdatePwd(PasswordRequest request, int userId)
/// <returns></returns>
public
List
<
sys_role
>
RoleList
()
{
var
role
=
_roleRepository
.
GetEntities
(
t
=>
t
.
States
==
1
)
.
ToList
()
;
var
role
=
_roleRepository
.
GetEntities
(
t
=>
t
.
States
==
1
);
return
role
;
}
...
...
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