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
86f7f5bb
Commit
86f7f5bb
authored
Jun 09, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提取数据前数据校验,返回数据添加判断
parent
f441fd10
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
performance/Performance.Services/ExConfigService.cs
+6
-2
No files found.
performance/Performance.Services/ExConfigService.cs
View file @
86f7f5bb
...
...
@@ -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,20 +818,26 @@ 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
;
}
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