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
94b1063b
Commit
94b1063b
authored
Jul 02, 2021
by
钟博
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/划拨' into release/V20210701合并
parents
e4aeead1
c80be479
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
performance/Performance.Services/CostTransfer/CostTransferService.cs
+6
-4
No files found.
performance/Performance.Services/CostTransfer/CostTransferService.cs
View file @
94b1063b
...
...
@@ -181,14 +181,16 @@ public CommonResponse Common(int allotId, int hospitalId, int roleType, string d
int
imDataAllotId
=
prevAllotList
.
FirstOrDefault
(
t
=>
new
int
[]
{
6
,
8
,
10
}.
Contains
(
t
.
States
))?.
ID
??
0
;
var
imData
=
imdataRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
imDataAllotId
&&
sheetId
.
Contains
(
t
.
SheetID
.
Value
));
var
unitValue
=
EnumHelper
.
GetItems
<
UnitType
>().
Find
(
t
=>
t
.
Name
==
detail
.
UnitType
)?.
Value
;
var
imData
=
imdataRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
imDataAllotId
&&
sheetId
.
Contains
(
t
.
SheetID
.
Value
)
&&
t
.
UnitType
==
unitValue
);
if
(
imData
==
null
||
!
imData
.
Any
())
return
common
;
var
commons
=
new
List
<
Common
>();
var
unitValue
=
EnumHelper
.
GetItems
<
UnitType
>().
Find
(
t
=>
t
.
Name
==
detail
.
UnitType
)?.
Value
;
if
(
imData
!=
null
&&
imData
.
Any
(
t
=>
t
.
UnitType
==
unitValue
))
if
(
imData
!=
null
&&
imData
.
Any
())
{
var
datas
=
from
im
in
imData
.
Where
(
t
=>
t
.
UnitType
==
unitValue
)
var
datas
=
from
im
in
imData
group
im
by
new
{
im
.
SheetID
,
im
.
TypeName
,
im
.
FactorValue
}
into
i
select
new
{
i
.
Key
,
i
};
commons
=
datas
.
Select
(
t
=>
new
Common
...
...
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