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
fc578bb9
Commit
fc578bb9
authored
Sep 21, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
带出上次配置时取消开关限制
parent
651fab28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
performance/Performance.Services/ConfigService.cs
+5
-4
No files found.
performance/Performance.Services/ConfigService.cs
View file @
fc578bb9
...
...
@@ -670,10 +670,11 @@ public void Copy(per_allot allot)
if
(
orgDurgprop
==
null
||
orgDurgprop
.
Count
==
0
)
{
var
durgprop
=
_drugpropRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
_drugpropRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
-
1
);
var
newDurgprops
=
durgprop
.
Select
(
t
=>
new
cof_drugprop
{
AllotID
=
allot
.
ID
,
MaxRange
=
t
.
MaxRange
,
MinRange
=
t
.
MinRange
,
Value
=
t
.
Value
});
if
(
hospital
!=
null
&&
hospital
?.
IsOpenDrugprop
==
2
)
newDurgprops
=
new
List
<
cof_drugprop
>
{
new
cof_drugprop
{
AllotID
=
allot
.
ID
,
MaxRange
=
1000
,
MinRange
=
0
,
Value
=
1
}
};
_drugpropRepository
.
AddRange
(
newDurgprops
.
ToArray
());
var
newDurgprops
=
durgprop
?.
Select
(
t
=>
new
cof_drugprop
{
AllotID
=
allot
.
ID
,
MaxRange
=
t
.
MaxRange
,
MinRange
=
t
.
MinRange
,
Value
=
t
.
Value
});
//if (hospital != null && hospital?.IsOpenDrugprop == 2)
// newDurgprops = new List<cof_drugprop> { new cof_drugprop { AllotID = allot.ID, MaxRange = 1000, MinRange = 0, Value = 1 } };
if
(
durgprop
!=
null
&&
durgprop
.
Any
())
_drugpropRepository
.
AddRange
(
newDurgprops
.
ToArray
());
}
logger
.
LogInformation
(
$"workItem"
);
...
...
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