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
5782d431
Commit
5782d431
authored
Dec 02, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hrp人员更新数据是,每次都更新核算单元
parent
31aa5153
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
performance/Performance.Services/ExtractExcelService/DictionaryService.cs
+3
-2
No files found.
performance/Performance.Services/ExtractExcelService/DictionaryService.cs
View file @
5782d431
...
...
@@ -134,7 +134,7 @@ private void Employee(per_allot allot, List<sys_hospitalconfig> configs, IEnumer
{
data
=
data
.
GroupJoin
(
hrpDepartments
,
outer
=>
new
{
department
=
outer
.
Department
},
inner
=>
new
{
department
=
inner
.
HRPDepartment
},
(
outer
,
inner
)
=>
new
{
outer
,
inner
}).
Select
(
t
=>
{
t
.
outer
.
AccountingUnit
=
t
.
inner
?.
FirstOrDefault
()?.
AccountingUnit
;
t
.
outer
.
AccountingUnit
=
t
.
inner
?.
FirstOrDefault
()?.
AccountingUnit
??
t
.
outer
.
AccountingUnit
;
return
t
.
outer
;
}).
ToList
();
}
...
...
@@ -191,7 +191,8 @@ private void JudgeDataEqual(List<string> columns, List<per_employee> emps, List<
{
nameof
(
per_employee
.
BankCard
),
(
t
)
=>
t
.
BankCard
},
};
if
(
columns
.
Contains
(
nameof
(
per_employee
.
PersonnelNumber
)))
columns
.
Remove
(
nameof
(
per_employee
.
PersonnelNumber
));
if
(
columns
.
Contains
(
nameof
(
per_employee
.
PersonnelNumber
).
ToLower
()))
columns
.
Remove
(
nameof
(
per_employee
.
PersonnelNumber
).
ToLower
());
if
(!
columns
.
Contains
(
nameof
(
per_employee
.
AccountingUnit
).
ToLower
()))
columns
.
Add
(
nameof
(
per_employee
.
AccountingUnit
).
ToLower
());
List
<
per_employee
>
updateData
=
new
List
<
per_employee
>();
foreach
(
var
emp
in
emps
)
...
...
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