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
34930cfb
Commit
34930cfb
authored
Dec 23, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
5896236d
fd981073
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
performance/Performance.Repository/PerforCofdirectorRepository.cs
+1
-0
performance/Performance.Repository/PerforPerAllotRepository.cs
+1
-4
performance/Performance.Services/ExtractExcelService/DictionaryService.cs
+2
-1
No files found.
performance/Performance.Repository/PerforCofdirectorRepository.cs
View file @
34930cfb
...
@@ -76,6 +76,7 @@ public int DeleteAllotData(int allotId)
...
@@ -76,6 +76,7 @@ public int DeleteAllotData(int allotId)
"im_employee_logistics"
,
"im_employee_logistics"
,
"im_header"
,
"im_header"
,
"im_specialunit"
,
"im_specialunit"
,
"his_data"
,
"log_check"
,
"log_check"
,
"per_employee"
,
"per_employee"
,
"per_sheet"
,
"per_sheet"
,
...
...
performance/Performance.Repository/PerforPerAllotRepository.cs
View file @
34930cfb
...
@@ -123,10 +123,7 @@ public void ClearResultData(int allotid)
...
@@ -123,10 +123,7 @@ public void ClearResultData(int allotid)
if
(
connection
.
State
!=
ConnectionState
.
Open
)
connection
.
Open
();
if
(
connection
.
State
!=
ConnectionState
.
Open
)
connection
.
Open
();
try
try
{
{
string
update
=
"update ex_result set isdelete = 1 where allotid = @allotid "
;
string
clear
=
"delete from ex_result where allotid = @allotid;"
;
connection
.
Execute
(
update
,
new
{
allotid
},
commandTimeout
:
60
*
60
);
string
clear
=
"delete from ex_result where allotid = @allotid and isdelete = 1 and createtime < (select min(createtime) from (select distinct createtime from ex_result where allotid = @allotid and isdelete = 1 order by createtime desc limit 4) t);"
;
connection
.
Execute
(
clear
,
new
{
allotid
},
commandTimeout
:
60
*
60
);
connection
.
Execute
(
clear
,
new
{
allotid
},
commandTimeout
:
60
*
60
);
}
}
catch
(
Exception
)
catch
(
Exception
)
...
...
performance/Performance.Services/ExtractExcelService/DictionaryService.cs
View file @
34930cfb
...
@@ -232,7 +232,8 @@ private void HisData(per_allot allot, sys_hospitalconfig config, his_script scri
...
@@ -232,7 +232,8 @@ private void HisData(per_allot allot, sys_hospitalconfig config, his_script scri
var
data
=
queryService
.
QueryData
<
HisData
>(
config
,
script
.
ExecScript
,
allot
,
isSingle
);
var
data
=
queryService
.
QueryData
<
HisData
>(
config
,
script
.
ExecScript
,
allot
,
isSingle
);
if
(
data
==
null
||
!
data
.
Any
())
return
;
if
(
data
==
null
||
!
data
.
Any
())
return
;
var
hisdata
=
hisdataRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allot
.
ID
&&
t
.
SourceType
==
script
.
SourceType
&&
t
.
Category
==
script
.
Category
);
var
hisdata
=
hisdataRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
allot
.
HospitalId
&&
t
.
Year
==
allot
.
Year
&&
t
.
Month
==
allot
.
Month
&&
t
.
SourceType
==
script
.
SourceType
&&
t
.
Category
==
script
.
Category
);
if
(
hisdata
!=
null
&&
hisdata
.
Any
())
if
(
hisdata
!=
null
&&
hisdata
.
Any
())
{
{
hisdataRepository
.
RemoveRange
(
hisdata
.
ToArray
());
hisdataRepository
.
RemoveRange
(
hisdata
.
ToArray
());
...
...
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