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
f69cbd46
Commit
f69cbd46
authored
Jul 25, 2022
by
纪旭 韦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提取绩效不能访问已释放bug
parent
eb138383
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
7 deletions
+22
-7
performance/Performance.Services/DapperService.cs
+17
-0
performance/Performance.Services/EmployeeService.cs
+1
-6
performance/Performance.Services/ExtractExcelService/ExtractService.cs
+4
-1
No files found.
performance/Performance.Services/DapperService.cs
View file @
f69cbd46
...
...
@@ -102,5 +102,22 @@ public void ClearAllotSync()
});
}
#
endregion
public
void
SyncDataToResult
(
int
allotId
)
{
using
(
var
connection
=
new
MySqlConnection
(
_options
.
Value
.
PerformanceConnectionString
))
{
if
(
connection
.
State
!=
ConnectionState
.
Open
)
connection
.
Open
();
try
{
string
sql
=
$@"call proc_sync_datatoresult(
{
allotId
}
)"
;
connection
.
Execute
(
sql
,
commandTimeout
:
60
*
60
);
}
catch
(
Exception
)
{
throw
;
}
}
}
}
}
performance/Performance.Services/EmployeeService.cs
View file @
f69cbd46
...
...
@@ -1791,11 +1791,6 @@ public void AddCategoryToConfig(int allotId)
}
}
public
void
SyncDataToResult
(
int
allotId
)
{
perforPerallotRepository
.
Execute
(
$"call proc_sync_datatoresult(
{
allotId
}
)"
,
new
{
},
60
*
60
*
5
);
}
public
void
AuditGather
(
List
<
Gather
>
gather
)
{
List
<
ex_result_gather
>
ex_Result_Gathers
=
new
List
<
ex_result_gather
>();
...
...
@@ -1845,7 +1840,7 @@ public void AuditGather(List<Gather> gather)
if
(
gatherFirst
.
Status
==
"通过"
)
{
SyncDataToResult
(
gatherFirst
.
AllotId
);
_service
.
SyncDataToResult
(
gatherFirst
.
AllotId
);
}
}
}
...
...
performance/Performance.Services/ExtractExcelService/ExtractService.cs
View file @
f69cbd46
...
...
@@ -17,6 +17,7 @@ namespace Performance.Services.ExtractExcelService
public
class
ExtractService
:
IAutoInjection
{
private
readonly
ILogger
logger
;
private
readonly
DapperService
service
;
private
readonly
LogManageService
logService
;
private
readonly
QueryService
queryService
;
private
readonly
PersonService
personService
;
...
...
@@ -35,6 +36,7 @@ public class ExtractService : IAutoInjection
public
ExtractService
(
ILogger
<
ExtractService
>
logger
,
DapperService
service
,
LogManageService
logService
,
QueryService
queryService
,
PersonService
personService
,
...
...
@@ -53,6 +55,7 @@ PerforExresultRepository exresultRepository
)
{
this
.
logger
=
logger
;
this
.
service
=
service
;
this
.
logService
=
logService
;
this
.
queryService
=
queryService
;
this
.
personService
=
personService
;
...
...
@@ -104,7 +107,7 @@ public string Main(int allotId, int hospitalId, string email, string groupName,
queryService
.
ClearConnectionPools
();
queryService
.
ClearHistoryData
(
allot
.
ID
,
groupName
,
isSingle
);
employeeS
ervice
.
SyncDataToResult
(
allotId
);
s
ervice
.
SyncDataToResult
(
allotId
);
var
data
=
exresultRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
);
...
...
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