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
b3f25e0e
Commit
b3f25e0e
authored
Dec 02, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码格式化
parent
c6911236
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
performance/Performance.Services/ConfigService.cs
+7
-7
No files found.
performance/Performance.Services/ConfigService.cs
View file @
b3f25e0e
...
...
@@ -1096,7 +1096,7 @@ public void NewCopy(CopyRequest request)
logger
.
LogInformation
(
$"copy workItems"
);
var
workItems
=
_workitemRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
//先判断是否为空,不为空删除再执行下面的代码
if
(
workItems
!=
null
)
if
(
workItems
!=
null
)
{
_workitemRepository
.
RemoveRange
(
workItems
.
ToArray
());
}
...
...
@@ -1110,7 +1110,7 @@ public void NewCopy(CopyRequest request)
case
"drugTypes"
:
logger
.
LogInformation
(
$"copy drugTypes"
);
var
drugTypes
=
_drugtypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
&&
t
.
HospitalId
==
allot
.
HospitalId
);
if
(
drugTypes
!=
null
)
if
(
drugTypes
!=
null
)
{
_drugtypeRepository
.
RemoveRange
(
drugTypes
.
ToArray
());
}
...
...
@@ -1126,7 +1126,7 @@ public void NewCopy(CopyRequest request)
case
"drugTypeDisburses"
:
logger
.
LogInformation
(
$"copy drugTypeDisburses"
);
var
drugTypeDisburses
=
drugtypeDisburseRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
&&
t
.
HospitalId
==
allot
.
HospitalId
);
if
(
drugTypeDisburses
!=
null
)
if
(
drugTypeDisburses
!=
null
)
{
drugtypeDisburseRepository
.
RemoveRange
(
drugTypeDisburses
.
ToArray
());
}
...
...
@@ -1140,7 +1140,7 @@ public void NewCopy(CopyRequest request)
case
"drugTypeFactors"
:
logger
.
LogInformation
(
$"copy drugTypeFactors"
);
var
drugTypeFactors
=
cofdrugtypefactorRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
if
(
drugTypeFactors
!=
null
)
if
(
drugTypeFactors
!=
null
)
{
cofdrugtypefactorRepository
.
RemoveRange
(
drugTypeFactors
.
ToArray
());
}
...
...
@@ -1163,7 +1163,7 @@ public void NewCopy(CopyRequest request)
case
"deptTypes"
:
logger
.
LogInformation
(
$"copy deptTypes"
);
var
deptTypes
=
perforCofdepttypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
if
(
deptTypes
!=
null
)
if
(
deptTypes
!=
null
)
{
perforCofdepttypeRepository
.
RemoveRange
(
deptTypes
.
ToArray
());
}
...
...
@@ -1177,7 +1177,7 @@ public void NewCopy(CopyRequest request)
case
"agains"
:
logger
.
LogInformation
(
$"copy agains"
);
var
agains
=
_againRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
if
(
agains
!=
null
)
if
(
agains
!=
null
)
{
_againRepository
.
RemoveRange
(
agains
.
ToArray
());
}
...
...
@@ -1192,7 +1192,7 @@ public void NewCopy(CopyRequest request)
case
"accountings"
:
logger
.
LogInformation
(
$"copy accountings"
);
var
accountings
=
cofaccountingRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allot
.
ID
);
if
(
accountings
!=
null
)
if
(
accountings
!=
null
)
{
cofaccountingRepository
.
RemoveRange
(
accountings
.
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