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
01029872
Commit
01029872
authored
Apr 19, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
062过滤不需要审核科室、063下发自动驳回删除已提交数据、二次分配多余科室删除
parent
f6a1f106
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletions
+34
-1
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+27
-0
performance/Performance.Services/SecondAllotService.cs
+7
-1
No files found.
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
01029872
...
...
@@ -522,6 +522,7 @@ public void GenerateSecondAllot(per_allot allot)
List
<
ag_secondallot
>
tempSecond
=
new
List
<
ag_secondallot
>();
List
<
ag_secondallot
>
insSecond
=
new
List
<
ag_secondallot
>();
List
<
ag_secondallot
>
updSecond
=
new
List
<
ag_secondallot
>();
List
<
ag_secondallot
>
delSecond
=
new
List
<
ag_secondallot
>();
var
types
=
new
List
<
int
>
{
(
int
)
UnitType
.
行政高层
,
(
int
)
UnitType
.
行政中层
,
(
int
)
UnitType
.
行政后勤
};
//// 获取医院是否开启后勤二次分配
...
...
@@ -612,11 +613,37 @@ public void GenerateSecondAllot(per_allot allot)
}
}
if
(
secondList
!=
null
&&
secondList
.
Any
())
{
foreach
(
var
item
in
secondList
)
{
var
second
=
tempSecond
?.
FirstOrDefault
(
f
=>
f
.
UnitType
==
item
.
UnitType
&&
f
.
Department
==
item
.
Department
);
if
(
second
==
null
)
{
delSecond
.
Add
(
item
);
}
}
}
if
(
insSecond
.
Any
())
perforAgsecondallotRepository
.
AddRange
(
insSecond
.
ToArray
());
if
(
updSecond
.
Any
())
{
perforAgsecondallotRepository
.
UpdateRange
(
updSecond
.
ToArray
());
foreach
(
var
item
in
updSecond
.
Where
(
w
=>
w
.
Status
==
4
))
{
// 自动驳回,需要清空该科室历史数据
var
histories
=
perforAgcomputeRepository
.
GetEntities
(
w
=>
w
.
SecondId
==
item
.
Id
);
if
(
histories
!=
null
&&
histories
.
Any
())
perforAgcomputeRepository
.
RemoveRange
(
histories
.
ToArray
());
}
}
if
(
delSecond
.
Any
())
{
perforAgsecondallotRepository
.
RemoveRange
(
delSecond
.
ToArray
());
}
}
}
}
performance/Performance.Services/SecondAllotService.cs
View file @
01029872
...
...
@@ -1471,7 +1471,13 @@ public List<ag_secondallot> AuditList(int allotId)
if
(
allot
==
null
)
throw
new
PerformanceException
(
"所选绩效不存在!"
);
var
accountUnit
=
resaccountRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
!
new
int
[]
{
(
int
)
UnitType
.
行政高层
,
(
int
)
UnitType
.
行政中层
}.
Contains
(
t
.
UnitType
.
Value
));
var
types
=
new
List
<
int
>
{
(
int
)
UnitType
.
行政高层
,
(
int
)
UnitType
.
行政中层
,
(
int
)
UnitType
.
行政后勤
};
var
accountUnit
=
resaccountRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
&&
!
types
.
Contains
(
t
.
UnitType
.
Value
));
// 查询需要进行二次分配的行政后勤科室
var
xzAccountUnit
=
resaccountRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
&&
t
.
UnitType
.
Value
==
(
int
)
UnitType
.
行政后勤
&&
t
.
NeedSecondAllot
==
"是"
);
if
(
xzAccountUnit
!=
null
&&
xzAccountUnit
.
Count
>
0
)
(
accountUnit
??
new
List
<
res_account
>()).
AddRange
(
xzAccountUnit
);
var
specialunit
=
resspecialunitRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
return
SecondList
(
allot
,
accountUnit
,
specialunit
);
...
...
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