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
0cb685da
Commit
0cb685da
authored
Jun 16, 2021
by
lcx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feature/划拨
parents
5160e0cc
ceb0691e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
performance/Performance.Repository/Performance.Repository.csproj
+1
-1
performance/Performance.Services/ConfigService.cs
+1
-1
performance/Performance.Services/ExConfigService.cs
+7
-3
performance/Performance.Services/PersonService.cs
+1
-1
No files found.
performance/Performance.Repository/Performance.Repository.csproj
View file @
0cb685da
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<PackageReference Include="MySql.Data" Version="8.0.15" />
<PackageReference Include="MySql.Data" Version="8.0.15" />
<PackageReference Include="MySql.Data.EntityFrameworkCore" Version="8.0.15" />
<PackageReference Include="MySql.Data.EntityFrameworkCore" Version="8.0.15" />
<PackageReference Include="Oracle.ManagedDataAccess.Core" Version="2.19.60" />
<PackageReference Include="Oracle.ManagedDataAccess.Core" Version="2.19.60" />
<PackageReference Include="Z.EntityFramework.Extensions.EFCore" Version="2.8.
2
0" />
<PackageReference Include="Z.EntityFramework.Extensions.EFCore" Version="2.8.
4
0" />
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
...
...
performance/Performance.Services/ConfigService.cs
View file @
0cb685da
...
@@ -653,7 +653,7 @@ public List<cof_accounting> GetAccountingList(AccoungingRequest request)
...
@@ -653,7 +653,7 @@ public List<cof_accounting> GetAccountingList(AccoungingRequest request)
}
}
if
(
request
.
Type
==
(
int
)
AccountTypeEnum
.
AccountingUnit
&&
!
string
.
IsNullOrEmpty
(
request
.
UnitType
))
if
(
request
.
Type
==
(
int
)
AccountTypeEnum
.
AccountingUnit
&&
!
string
.
IsNullOrEmpty
(
request
.
UnitType
))
exp
=
exp
.
And
(
t
=>
t
.
UnitType
==
request
.
UnitType
);
exp
=
exp
.
And
(
t
=>
t
.
UnitType
.
Replace
(
"行政后勤"
,
"行政工勤"
)
==
request
.
UnitType
.
Replace
(
"行政后勤"
,
"行政工勤"
)
);
return
cofaccountingRepository
.
GetEntities
(
exp
)
??
new
List
<
cof_accounting
>();
return
cofaccountingRepository
.
GetEntities
(
exp
)
??
new
List
<
cof_accounting
>();
}
}
...
...
performance/Performance.Services/ExConfigService.cs
View file @
0cb685da
...
@@ -762,8 +762,6 @@ public string Judge(int allotId, int hospitalId, int useTemplate, ref bool isSin
...
@@ -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
));
var
hosConfig
=
hospitalconfigRepository
.
GetEntities
(
t
=>
scriptConfig
.
Contains
(
t
.
Id
));
if
(
hosConfig
==
null
)
return
null
;
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
>
deparmants
=
new
List
<
string
>();
List
<
string
>
drugs
=
new
List
<
string
>();
List
<
string
>
drugs
=
new
List
<
string
>();
List
<
per_dept_dic
>
deptList
=
new
List
<
per_dept_dic
>();
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
...
@@ -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
())
if
(
deparmants
!=
null
&&
deparmants
.
Any
())
{
{
var
distinctedDept
=
deptList
.
ToDistinct
().
ToList
();
var
distinctedDept
=
deptList
.
ToDistinct
().
ToList
();
distinctedDept
.
ForEach
(
t
=>
t
.
CreateTime
=
DateTime
.
Now
);
//在去重前添加时间,可能造成时间不一致,无法去重
distinctedDept
.
ForEach
(
t
=>
t
.
CreateTime
=
DateTime
.
Now
);
//在去重前添加时间,可能造成时间不一致,无法去重
perdeptdicRepository
.
AddRange
(
distinctedDept
.
ToArray
());
perdeptdicRepository
.
AddRange
(
distinctedDept
.
ToArray
());
stringBuilder
.
AppendLine
(
$"新增科室:
{
string
.
Join
(
","
,
deparmants
.
Distinct
())}
"
);
stringBuilder
.
AppendLine
(
$"新增科室:
{
string
.
Join
(
","
,
deparmants
.
Distinct
())}
"
);
hasErrors
=
true
;
}
}
if
(
drugs
!=
null
&&
drugs
.
Any
())
if
(
drugs
!=
null
&&
drugs
.
Any
())
{
{
cofdrugtypeRepository
.
AddRange
(
drugTypeList
.
ToDistinct
().
ToArray
());
cofdrugtypeRepository
.
AddRange
(
drugTypeList
.
ToDistinct
().
ToArray
());
stringBuilder
.
AppendLine
(
$"新增费用类型:
{
string
.
Join
(
","
,
drugs
.
Distinct
())}
"
);
stringBuilder
.
AppendLine
(
$"新增费用类型:
{
string
.
Join
(
","
,
drugs
.
Distinct
())}
"
);
hasErrors
=
true
;
}
}
paramtemers
.
Add
(
"新增科室或费用类型"
,
stringBuilder
.
ToString
());
if
(
hasErrors
)
paramtemers
.
Add
(
"新增科室或费用类型"
,
stringBuilder
.
ToString
());
return
paramtemers
;
return
paramtemers
;
}
}
...
...
performance/Performance.Services/PersonService.cs
View file @
0cb685da
...
@@ -927,7 +927,7 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
...
@@ -927,7 +927,7 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
{
nameof
(
DeptdicResponse
.
InpatDoctorAccounting
),
"住院·核算单元医生组"
},
{
nameof
(
DeptdicResponse
.
InpatDoctorAccounting
),
"住院·核算单元医生组"
},
{
nameof
(
DeptdicResponse
.
InpatNurseAccounting
),
"住院·核算单元护理组"
},
{
nameof
(
DeptdicResponse
.
InpatNurseAccounting
),
"住院·核算单元护理组"
},
{
nameof
(
DeptdicResponse
.
InpatTechnicAccounting
),
"住院·核算单元医技组"
},
{
nameof
(
DeptdicResponse
.
InpatTechnicAccounting
),
"住院·核算单元医技组"
},
{
nameof
(
DeptdicResponse
.
LogisticsAccounting
),
"行政
后
勤"
},
{
nameof
(
DeptdicResponse
.
LogisticsAccounting
),
"行政
工
勤"
},
{
nameof
(
DeptdicResponse
.
SpecialAccounting
),
"特殊核算组"
}
{
nameof
(
DeptdicResponse
.
SpecialAccounting
),
"特殊核算组"
}
};
};
...
...
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