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
fae509c7
Commit
fae509c7
authored
Dec 28, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步手工录入数据并导出
parent
953f9b1d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
performance/Performance.EntityModels/Entity/ex_result.cs
+1
-1
performance/Performance.Services/ExtractExcelService/DictionaryService.cs
+4
-0
performance/Performance.Services/ExtractExcelService/ExtractService.cs
+2
-2
No files found.
performance/Performance.EntityModels/Entity/ex_result.cs
View file @
fae509c7
...
@@ -79,6 +79,6 @@ public class ex_result
...
@@ -79,6 +79,6 @@ public class ex_result
/// <summary>
/// <summary>
/// 1 删除 0 未删除
/// 1 删除 0 未删除
/// </summary>
/// </summary>
public
int
IsDelete
{
get
;
set
;
}
//
public int IsDelete { get; set; }
}
}
}
}
performance/Performance.Services/ExtractExcelService/DictionaryService.cs
View file @
fae509c7
...
@@ -120,6 +120,7 @@ private void Employee(per_allot allot, List<sys_hospitalconfig> configs, IEnumer
...
@@ -120,6 +120,7 @@ private void Employee(per_allot allot, List<sys_hospitalconfig> configs, IEnumer
if
(
limitData
==
null
||
!
limitData
.
Any
())
return
;
if
(
limitData
==
null
||
!
limitData
.
Any
())
return
;
var
columns
=
((
IDictionary
<
string
,
object
>)
limitData
.
ElementAt
(
0
)).
Select
(
t
=>
t
.
Key
.
ToLower
()).
ToList
();
var
columns
=
((
IDictionary
<
string
,
object
>)
limitData
.
ElementAt
(
0
)).
Select
(
t
=>
t
.
Key
.
ToLower
()).
ToList
();
if
(
columns
==
null
||
!
columns
.
Any
())
return
;
var
data
=
queryService
.
QueryData
<
per_employee
>(
config
,
sql
,
allot
,
isSingle
).
ToList
();
var
data
=
queryService
.
QueryData
<
per_employee
>(
config
,
sql
,
allot
,
isSingle
).
ToList
();
data
.
ForEach
(
t
=>
data
.
ForEach
(
t
=>
...
@@ -191,6 +192,9 @@ private void JudgeDataEqual(List<string> columns, List<per_employee> emps, List<
...
@@ -191,6 +192,9 @@ private void JudgeDataEqual(List<string> columns, List<per_employee> emps, List<
{
nameof
(
per_employee
.
BankCard
),
(
t
)
=>
t
.
BankCard
},
{
nameof
(
per_employee
.
BankCard
),
(
t
)
=>
t
.
BankCard
},
};
};
columns
=
columns
.
Intersect
(
dict
.
Keys
.
Select
(
t
=>
t
.
ToLower
())).
ToList
();
if
(
columns
==
null
||
!
columns
.
Any
())
return
;
if
(
columns
.
Contains
(
nameof
(
per_employee
.
PersonnelNumber
).
ToLower
()))
columns
.
Remove
(
nameof
(
per_employee
.
PersonnelNumber
).
ToLower
());
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
());
if
(!
columns
.
Contains
(
nameof
(
per_employee
.
AccountingUnit
).
ToLower
()))
columns
.
Add
(
nameof
(
per_employee
.
AccountingUnit
).
ToLower
());
...
...
performance/Performance.Services/ExtractExcelService/ExtractService.cs
View file @
fae509c7
...
@@ -102,9 +102,9 @@ public string Main(int allotId, int hospitalId, string email, string groupName,
...
@@ -102,9 +102,9 @@ public string Main(int allotId, int hospitalId, string email, string groupName,
queryService
.
ClearHistoryData
(
allot
.
ID
,
groupName
,
isSingle
);
queryService
.
ClearHistoryData
(
allot
.
ID
,
groupName
,
isSingle
);
//
employeeService.SyncDataToResult(allotId);
employeeService
.
SyncDataToResult
(
allotId
);
var
data
=
exresultRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
&&
t
.
IsDelete
==
0
);
var
data
=
exresultRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
);
data
.
AddRange
(
queryService
.
Handler
(
hospitalId
,
allot
,
groupName
,
isSingle
,
ref
dict
));
data
.
AddRange
(
queryService
.
Handler
(
hospitalId
,
allot
,
groupName
,
isSingle
,
ref
dict
));
var
standData
=
StandDataFormat
(
hospitalId
,
data
);
var
standData
=
StandDataFormat
(
hospitalId
,
data
);
...
...
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