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
363a8768
Commit
363a8768
authored
Aug 02, 2022
by
Licx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/管理绩效数据展示' into develop
parents
3bfa458a
e285b8b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
performance/Performance.Services/SecondAllotService.cs
+4
-2
No files found.
performance/Performance.Services/SecondAllotService.cs
View file @
363a8768
...
@@ -2416,8 +2416,10 @@ public List<DeptDataDetails> DeptComputeDetailList(int userId, int allotId, out
...
@@ -2416,8 +2416,10 @@ public List<DeptDataDetails> DeptComputeDetailList(int userId, int allotId, out
{
(
int
)
Role
.
特殊科室
,
new
List
<
string
>
{
AccountUnitType
.
科主任
.
ToString
()
,
AccountUnitType
.
护士长
.
ToString
()
}
},
{
(
int
)
Role
.
特殊科室
,
new
List
<
string
>
{
AccountUnitType
.
科主任
.
ToString
()
,
AccountUnitType
.
护士长
.
ToString
()
}
},
};
};
int
roleType
=
userInfo
?.
URole
.
Type
??
0
;
var
accountTypes
=
userInfo
!=
null
&&
dict
.
ContainsKey
(
roleType
)
?
dict
[
roleType
]
:
new
List
<
string
>();
var
computes
=
rescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
AccountingUnit
==
accountingUnit
&&
unitTypes
.
Contains
(
t
.
UnitType
));
var
computes
=
rescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
AccountingUnit
==
accountingUnit
&&
(
unitTypes
.
Contains
(
t
.
UnitType
)
||
accountTypes
.
Contains
(
t
.
AccountType
)
));
if
(
computes
==
null
||
!
computes
.
Any
())
return
new
List
<
DeptDataDetails
>();
if
(
computes
==
null
||
!
computes
.
Any
())
return
new
List
<
DeptDataDetails
>();
foreach
(
var
item
in
computes
)
foreach
(
var
item
in
computes
)
{
{
...
@@ -2505,7 +2507,7 @@ private List<SecondPerforResponse> GetAllotPerformance(int allotId, List<res_com
...
@@ -2505,7 +2507,7 @@ private List<SecondPerforResponse> GetAllotPerformance(int allotId, List<res_com
public
ApiResponse
Import
(
IFormCollection
form
)
public
ApiResponse
Import
(
IFormCollection
form
)
{
{
var
secondid
=
form
.
ToDictionary
().
GetValue
(
"secondid"
,
0
);
var
secondid
=
form
.
ToDictionary
().
GetValue
(
"secondid"
,
0
);
var
agsecondallot
=
agsecondallotRepository
.
GetEntity
(
t
=>
t
.
Id
==
secondid
);
var
agsecondallot
=
agsecondallotRepository
.
GetEntity
(
t
=>
t
.
Id
==
secondid
);
if
(
agsecondallot
==
null
)
if
(
agsecondallot
==
null
)
return
new
ApiResponse
(
ResponseType
.
Fail
,
"secondid不存在"
);
return
new
ApiResponse
(
ResponseType
.
Fail
,
"secondid不存在"
);
...
...
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