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
ad1f7c6a
Commit
ad1f7c6a
authored
May 10, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
共用科主任BUG修复
parent
84ad6c88
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
performance/Performance.Repository/PerforImemployeeclinicRepository.cs
+1
-1
performance/Performance.Services/AllotCompute/ImportDataService.cs
+1
-1
No files found.
performance/Performance.Repository/PerforImemployeeclinicRepository.cs
View file @
ad1f7c6a
...
...
@@ -19,7 +19,7 @@ public List<im_employee_clinic> GetEmployees(int allotId)
return
context
.
Set
<
im_employee_clinic
>()
.
Where
(
w
=>
w
.
AllotID
==
allotId
)
.
ToList
()
.
GroupBy
(
w
=>
w
.
PersonnelNumber
)
.
GroupBy
(
w
=>
new
{
w
.
PersonnelNumber
,
w
.
UnitType
,
w
.
AccountingUnit
}
)
.
Select
(
w
=>
w
.
OrderByDescending
(
p
=>
p
.
ID
).
First
())
.
ToList
()
??
new
List
<
im_employee_clinic
>();
...
...
performance/Performance.Services/AllotCompute/ImportDataService.cs
View file @
ad1f7c6a
...
...
@@ -282,7 +282,7 @@ public int SaveClinicEmployee(PerSheet sheet, per_allot allot, List<per_allot> a
}
}
List
<
im_employee_clinic
>
addList
=
new
List
<
im_employee_clinic
>();
foreach
(
var
data
in
dataList
.
GroupBy
(
w
=>
w
.
PersonnelNumber
).
Select
(
w
=>
w
.
First
()))
foreach
(
var
data
in
dataList
.
GroupBy
(
w
=>
new
{
w
.
PersonnelNumber
,
w
.
UnitType
,
w
.
AccountingUnit
}
).
Select
(
w
=>
w
.
First
()))
{
var
imdata
=
_mapper
.
Map
<
im_employee_clinic
>(
data
);
imdata
.
SheetID
=
imsheet
.
ID
;
...
...
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