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
b3f6e8c3
Commit
b3f6e8c3
authored
Feb 12, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/userextract' into feature/dongfang
parents
8b824519
0c6d3a67
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
performance/Performance.Api/wwwroot/Performance.DtoModels.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 @
b3f6e8c3
...
...
@@ -1810,6 +1810,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.DtoModels/Response/AllotResponse.cs
View file @
b3f6e8c3
...
...
@@ -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 @
b3f6e8c3
...
...
@@ -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