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
67adec6c
Commit
67adec6c
authored
Jun 10, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据校验日志,修改药占比;绩效发放bug
parent
fc9abbdc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
performance/Performance.Services/AllotCompute/CheckDataService.cs
+8
-2
performance/Performance.Services/ComputeService.cs
+1
-1
No files found.
performance/Performance.Services/AllotCompute/CheckDataService.cs
View file @
67adec6c
...
...
@@ -14,14 +14,17 @@ public class CheckDataService : IAutoInjection
private
PerSheetService
perSheetService
;
private
PerforCofcheckRepository
perforCofcheckRepository
;
private
PerforLogcheckRepository
perforLogcheckRepository
;
private
PerforCofdrugtypeRepository
perforCofdrugtypeRepository
;
public
CheckDataService
(
PerSheetService
perSheetService
,
PerforCofcheckRepository
perforCofcheckRepository
,
PerforLogcheckRepository
perforLogcheckRepository
PerforLogcheckRepository
perforLogcheckRepository
,
PerforCofdrugtypeRepository
perforCofdrugtypeRepository
)
{
this
.
perSheetService
=
perSheetService
;
this
.
perforCofcheckRepository
=
perforCofcheckRepository
;
this
.
perforLogcheckRepository
=
perforLogcheckRepository
;
this
.
perforCofdrugtypeRepository
=
perforCofdrugtypeRepository
;
}
internal
bool
Check
(
PerExcel
excel
,
per_allot
allot
)
{
...
...
@@ -120,6 +123,9 @@ public bool Discern(PerExcel excel, per_allot allot)
else
{
var
list
=
cellValue
.
Intersect
(
headerCheck
).
ToList
();
//求交集,提交的列头和数据库中保存的列头
var
drugtype
=
perforCofdrugtypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
if
(
drugtype
!=
null
&&
drugtype
.
Count
>
0
)
list
=
list
.
Union
(
drugtype
.
Select
(
t
=>
t
.
Charge
)).
ToList
();
//药占比的类型
var
lack
=
headerCheck
.
Except
(
list
).
ToList
();
//求差集,数据库中列头与交集
if
(
lack
.
Count
>
0
)
{
...
...
@@ -149,7 +155,7 @@ public bool CheckData(PerExcel excel, per_allot allot)
int
count
=
0
;
if
(
sheet
.
SheetName
.
StartsWith
(
"医院人员名单"
))
{
List
<
string
>
accountType
=
new
List
<
string
>()
{
"临床科室"
,
"医技科室"
,
""
};
List
<
string
>
accountType
=
new
List
<
string
>()
{
"临床科室"
,
"医技科室"
,
"
行政工勤"
,
"行政中高层"
,
"
"
};
List
<
string
>
fitPeople
=
new
List
<
string
>();
foreach
(
var
name
in
EnumHelper
.
GetNames
<
PerformanceType
>())
{
...
...
performance/Performance.Services/ComputeService.cs
View file @
67adec6c
...
...
@@ -64,7 +64,7 @@ public List<ResComputeResponse> GetCompute(int allotId, int type)
{
var
conList
=
keyValues
[
type
].
Select
(
t
=>
EnumHelper
.
GetDescription
(
t
));
var
list
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
conList
.
Contains
(
t
.
FitPeople
))
.
OrderBy
(
t
=>
t
.
AccountingUnit
).
ThenBy
(
t
=>
t
.
FitPeople
).
ToList
();
?
.
OrderBy
(
t
=>
t
.
AccountingUnit
).
ThenBy
(
t
=>
t
.
FitPeople
).
ToList
();
data
=
Mapper
.
Map
<
List
<
ResComputeResponse
>>(
list
);
data
?.
ForEach
(
t
=>
t
.
WorkTime
=
string
.
IsNullOrEmpty
(
t
.
WorkTime
)
?
null
:
Convert
.
ToDateTime
(
t
.
WorkTime
).
ToString
(
"yyyy-MM-dd"
));
}
...
...
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