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
25f99465
Commit
25f99465
authored
Feb 01, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
科室详情,医技组工作量取值条件更改为“医生组,医技组”
parent
04627d0e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
performance/Performance.Services/ComputeService.cs
+9
-3
No files found.
performance/Performance.Services/ComputeService.cs
View file @
25f99465
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq
;
using
System.Linq.Expressions
;
using
System.Text
;
using
System.Text
;
using
System.Text.RegularExpressions
;
using
System.Text.RegularExpressions
;
...
@@ -893,9 +894,14 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
...
@@ -893,9 +894,14 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
private
List
<
DetailModule
>
CommonDetailItems
(
List
<
im_data
>
basicData
,
List
<
im_header
>
headers
,
per_sheet
sheet
,
UnitType
type
)
private
List
<
DetailModule
>
CommonDetailItems
(
List
<
im_data
>
basicData
,
List
<
im_header
>
headers
,
per_sheet
sheet
,
UnitType
type
)
{
{
var
items
=
basicData
Expression
<
Func
<
im_data
,
bool
>>
exp
=
(
t
)
=>
t
.
SheetID
==
sheet
.
ID
&&
t
.
IsTotal
!=
1
;
.
Where
(
t
=>
t
.
SheetID
==
sheet
.
ID
&&
t
.
UnitType
==
(
int
)
type
&&
t
.
IsTotal
!=
1
)
?.
Select
(
t
=>
new
DetailModule
if
(
sheet
.
SheetType
==
(
int
)
SheetType
.
Workload
&&
new
int
[]
{
(
int
)
UnitType
.
医技组
,
(
int
)
UnitType
.
其他医技组
}.
Contains
((
int
)
type
))
exp
=
exp
.
And
(
t
=>
new
int
[]
{
(
int
)
UnitType
.
医生组
,
(
int
)
UnitType
.
医技组
,
(
int
)
UnitType
.
其他医技组
}.
Contains
(
t
.
UnitType
.
Value
));
else
exp
=
exp
.
And
(
t
=>
t
.
UnitType
==
(
int
)
type
);
var
items
=
basicData
.
Where
(
exp
.
Compile
())?.
Select
(
t
=>
new
DetailModule
{
{
ItemName
=
t
.
TypeName
,
ItemName
=
t
.
TypeName
,
CellValue
=
t
.
CellValue
,
CellValue
=
t
.
CellValue
,
...
...
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