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
c563119a
Commit
c563119a
authored
Jun 09, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
b0119dbe
86f7f5bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
performance/Performance.Services/ExConfigService.cs
+7
-3
No files found.
performance/Performance.Services/ExConfigService.cs
View file @
c563119a
...
...
@@ -762,8 +762,6 @@ public string Judge(int allotId, int hospitalId, int useTemplate, ref bool isSin
var
hosConfig
=
hospitalconfigRepository
.
GetEntities
(
t
=>
scriptConfig
.
Contains
(
t
.
Id
));
if
(
hosConfig
==
null
)
return
null
;
Dictionary
<
string
,
object
>
paramtemers
=
new
Dictionary
<
string
,
object
>();
StringBuilder
stringBuilder
=
new
StringBuilder
();
List
<
string
>
deparmants
=
new
List
<
string
>();
List
<
string
>
drugs
=
new
List
<
string
>();
List
<
per_dept_dic
>
deptList
=
new
List
<
per_dept_dic
>();
...
...
@@ -820,21 +818,27 @@ public string Judge(int allotId, int hospitalId, int useTemplate, ref bool isSin
}
}
bool
hasErrors
=
false
;
Dictionary
<
string
,
object
>
paramtemers
=
new
Dictionary
<
string
,
object
>();
StringBuilder
stringBuilder
=
new
StringBuilder
();
if
(
deparmants
!=
null
&&
deparmants
.
Any
())
{
var
distinctedDept
=
deptList
.
ToDistinct
().
ToList
();
distinctedDept
.
ForEach
(
t
=>
t
.
CreateTime
=
DateTime
.
Now
);
//在去重前添加时间,可能造成时间不一致,无法去重
perdeptdicRepository
.
AddRange
(
distinctedDept
.
ToArray
());
stringBuilder
.
AppendLine
(
$"新增科室:
{
string
.
Join
(
","
,
deparmants
.
Distinct
())}
"
);
hasErrors
=
true
;
}
if
(
drugs
!=
null
&&
drugs
.
Any
())
{
cofdrugtypeRepository
.
AddRange
(
drugTypeList
.
ToDistinct
().
ToArray
());
stringBuilder
.
AppendLine
(
$"新增费用类型:
{
string
.
Join
(
","
,
drugs
.
Distinct
())}
"
);
hasErrors
=
true
;
}
paramtemers
.
Add
(
"新增科室或费用类型"
,
stringBuilder
.
ToString
());
if
(
hasErrors
)
paramtemers
.
Add
(
"新增科室或费用类型"
,
stringBuilder
.
ToString
());
return
paramtemers
;
}
...
...
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