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
0c6d3a67
Commit
0c6d3a67
authored
Jan 15, 2020
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提取按钮显示
parent
0b05c1c9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+5
-0
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+5
-0
performance/Performance.DtoModels/Response/AllotResponse.cs
+4
-0
performance/Performance.Services/AllotService.cs
+6
-0
No files found.
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
0c6d3a67
...
...
@@ -1687,6 +1687,11 @@
是否可以下载
</summary>
</member>
<member
name=
"P:Performance.DtoModels.AllotResponse.HasConfig"
>
<summary>
3 提取数据
</summary>
</member>
<member
name=
"P:Performance.DtoModels.AssessDataResponse.AssessID"
>
<summary>
考核类别ID
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
0c6d3a67
...
...
@@ -3004,6 +3004,11 @@
1 标准库 2 绩效库
</summary>
</member>
<member
name=
"P:Performance.EntityModels.sys_hospitalconfig.DataBaseType"
>
<summary>
1、Sql Server 2、Orcale
</summary>
</member>
<member
name=
"T:Performance.EntityModels.sys_menu"
>
<summary>
菜单表
...
...
performance/Performance.DtoModels/Response/AllotResponse.cs
View file @
0c6d3a67
...
...
@@ -57,5 +57,9 @@ public class AllotResponse
/// 是否可以下载
/// </summary>
public
bool
IsDown
{
get
;
set
;
}
/// <summary>
/// 3 提取数据
/// </summary>
public
int
HasConfig
{
get
;
set
;
}
}
}
performance/Performance.Services/AllotService.cs
View file @
0c6d3a67
...
...
@@ -35,6 +35,7 @@ public class AllotService : IAutoInjection
private
PerforLogcheckRepository
perforLogcheckRepository
;
private
readonly
PerforHospitalRepository
perforHospitalRepository
;
private
readonly
PerforResbaiscnormRepository
perforResbaiscnormRepository
;
private
PerforHospitalconfigRepository
perforHospitalconfigRepository
;
//private readonly IHubContext<AllotLogHub> hubContext;
private
readonly
LogManageService
logManageService
;
...
...
@@ -55,6 +56,7 @@ public class AllotService : IAutoInjection
PerforLogcheckRepository
perforLogcheckRepository
,
PerforHospitalRepository
perforHospitalRepository
,
PerforResbaiscnormRepository
perforResbaiscnormRepository
,
PerforHospitalconfigRepository
perforHospitalconfigRepository
,
//IHubContext<AllotLogHub> hubContext
LogManageService
logManageService
,
ReportService
reportService
)
...
...
@@ -75,6 +77,7 @@ public class AllotService : IAutoInjection
this
.
perforLogcheckRepository
=
perforLogcheckRepository
;
this
.
perforHospitalRepository
=
perforHospitalRepository
;
this
.
perforResbaiscnormRepository
=
perforResbaiscnormRepository
;
this
.
perforHospitalconfigRepository
=
perforHospitalconfigRepository
;
//this.hubContext = hubContext;
this
.
logManageService
=
logManageService
;
this
.
reportService
=
reportService
;
...
...
@@ -92,12 +95,15 @@ public List<AllotResponse> GetAllotList(int? hospitalId)
throw
new
PerformanceException
(
"hospitalId无效"
);
var
allotList
=
_allotRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
);
allotList
=
allotList
==
null
?
allotList
:
allotList
.
OrderByDescending
(
t
=>
t
.
ID
).
ToList
();
var
isconfig
=
perforHospitalconfigRepository
.
GetEntity
(
t
=>
t
.
HospitalId
==
hospitalId
)
==
null
?
false
:
true
;
var
reuslt
=
Mapper
.
Map
<
List
<
AllotResponse
>>(
allotList
);
reuslt
?.
ForEach
(
t
=>
{
t
.
IsDown
=
!
string
.
IsNullOrEmpty
(
t
.
ExtractPath
);
if
(!
string
.
IsNullOrEmpty
(
t
.
ExtractPath
))
t
.
ExtractPath
=
t
.
ExtractPath
.
Replace
(
options
.
Value
.
AbsolutePath
,
options
.
Value
.
HttpPath
).
Replace
(
"\\"
,
"/"
);
t
.
HasConfig
=
isconfig
?
3
:
0
;
});
return
reuslt
;
}
...
...
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