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
18968fad
Commit
18968fad
authored
Aug 05, 2019
by
799284587@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提取
parent
b0823f19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
85 additions
and
10 deletions
+85
-10
performance/Performance.Api/Controllers/TemplateController.cs
+2
-0
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+15
-0
performance/Performance.DtoModels/Request/ExtractRequest.cs
+36
-0
performance/Performance.Extract.Api/Controllers/ExtractController.cs
+31
-9
performance/Performance.Services/NewExtractService.cs
+0
-0
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadIncome.cs
+1
-1
No files found.
performance/Performance.Api/Controllers/TemplateController.cs
View file @
18968fad
...
@@ -131,6 +131,7 @@ public ApiResponse Import([FromForm] IFormCollection form)
...
@@ -131,6 +131,7 @@ public ApiResponse Import([FromForm] IFormCollection form)
return
new
ApiResponse
(
ResponseType
.
OK
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
}
#
region
老版提取
/// <summary>
/// <summary>
/// 提取绩效数据
/// 提取绩效数据
/// </summary>
/// </summary>
...
@@ -191,6 +192,7 @@ public ApiResponse ExtractData([CustomizeValidator(RuleSet = "Template"), FromBo
...
@@ -191,6 +192,7 @@ public ApiResponse ExtractData([CustomizeValidator(RuleSet = "Template"), FromBo
throw
ex
;
throw
ex
;
}
}
}
}
#
endregion
/// <summary>
/// <summary>
/// 从WebAPI下载文件
/// 从WebAPI下载文件
...
...
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
18968fad
...
@@ -1223,6 +1223,21 @@
...
@@ -1223,6 +1223,21 @@
发放系数
发放系数
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.DtoModels.ExtractRequest.AllotId"
>
<summary>
绩效ID
</summary>
</member>
<member
name=
"P:Performance.DtoModels.ExtractRequest.HospitalId"
>
<summary>
医院ID
</summary>
</member>
<member
name=
"P:Performance.DtoModels.ExtractRequest.UseScheme"
>
<summary>
使用方案
</summary>
</member>
<member
name=
"T:Performance.DtoModels.HospitalRequest"
>
<member
name=
"T:Performance.DtoModels.HospitalRequest"
>
<summary>
<summary>
登录请求
登录请求
...
...
performance/Performance.DtoModels/Request/ExtractRequest.cs
0 → 100644
View file @
18968fad
using
FluentValidation
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Performance.DtoModels
{
public
class
ExtractRequest
{
/// <summary>
/// 绩效ID
/// </summary>
public
int
AllotId
{
get
;
set
;
}
/// <summary>
/// 医院ID
/// </summary>
public
int
HospitalId
{
get
;
set
;
}
/// <summary>
/// 使用方案
/// </summary>
public
int
UseScheme
{
get
;
set
;
}
}
public
class
ExtractRequestValidator
:
AbstractValidator
<
ExtractRequest
>
{
public
ExtractRequestValidator
()
{
RuleFor
(
x
=>
x
.
AllotId
).
NotNull
().
GreaterThan
(
0
);
RuleFor
(
x
=>
x
.
HospitalId
).
NotNull
().
GreaterThan
(
0
);
RuleFor
(
x
=>
x
.
UseScheme
).
NotNull
().
InclusiveBetween
(
1
,
2
);
}
}
}
performance/Performance.Extract.Api/Controllers/ExtractController.cs
View file @
18968fad
using
System
;
using
FluentValidation.AspNetCore
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
FluentValidation.AspNetCore
;
using
Microsoft.AspNetCore.Hosting
;
using
Microsoft.AspNetCore.Hosting
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Http.Internal
;
using
Microsoft.AspNetCore.Http.Internal
;
...
@@ -15,6 +10,11 @@
...
@@ -15,6 +10,11 @@
using
Performance.DtoModels.AppSettings
;
using
Performance.DtoModels.AppSettings
;
using
Performance.Infrastructure
;
using
Performance.Infrastructure
;
using
Performance.Services
;
using
Performance.Services
;
using
System
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.Linq
;
using
System.Threading.Tasks
;
namespace
Performance.Extract.Api.Controllers
namespace
Performance.Extract.Api.Controllers
{
{
...
@@ -22,15 +22,20 @@ namespace Performance.Extract.Api.Controllers
...
@@ -22,15 +22,20 @@ namespace Performance.Extract.Api.Controllers
public
class
ExtractController
:
Controller
public
class
ExtractController
:
Controller
{
{
private
readonly
ExtractService
extractService
;
private
readonly
ExtractService
extractService
;
private
readonly
NewExtractService
newExtractService
;
private
readonly
HospitalService
hospitalService
;
private
readonly
HospitalService
hospitalService
;
private
readonly
WebapiUrl
url
;
private
readonly
WebapiUrl
url
;
private
readonly
ILogger
<
ExtractController
>
logger
;
private
readonly
ILogger
<
ExtractController
>
logger
;
private
IHostingEnvironment
evn
;
private
readonly
IHostingEnvironment
evn
;
public
ExtractController
(
ExtractService
extractService
,
HospitalService
hospitalService
,
public
ExtractController
(
ExtractService
extractService
,
IOptions
<
WebapiUrl
>
url
,
ILogger
<
ExtractController
>
logger
,
NewExtractService
newExtractService
,
HospitalService
hospitalService
,
IOptions
<
WebapiUrl
>
url
,
ILogger
<
ExtractController
>
logger
,
IHostingEnvironment
evn
)
IHostingEnvironment
evn
)
{
{
this
.
extractService
=
extractService
;
this
.
extractService
=
extractService
;
this
.
newExtractService
=
newExtractService
;
this
.
hospitalService
=
hospitalService
;
this
.
hospitalService
=
hospitalService
;
this
.
url
=
url
.
Value
;
this
.
url
=
url
.
Value
;
this
.
logger
=
logger
;
this
.
logger
=
logger
;
...
@@ -100,5 +105,21 @@ public void Index([FromBody]AllotRequest request)
...
@@ -100,5 +105,21 @@ public void Index([FromBody]AllotRequest request)
}
}
logger
.
LogInformation
(
token
+
",提取结束,请求参数:"
+
JsonHelper
.
Serialize
(
request
));
logger
.
LogInformation
(
token
+
",提取结束,请求参数:"
+
JsonHelper
.
Serialize
(
request
));
}
}
#
region
新版提取
/// <summary>
/// 提取绩效数据
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[
Route
(
"extract"
)]
[
HttpPost
]
public
void
ExtractData
([
CustomizeValidator
,
FromBody
]
ExtractRequest
request
)
{
newExtractService
.
ExtractData
(
request
.
AllotId
,
""
,
request
.
HospitalId
,
(
UseTemplate
)
request
.
UseScheme
);
}
#
endregion
}
}
}
}
\ No newline at end of file
performance/Performance.Services/NewExtractService.cs
View file @
18968fad
This diff is collapsed.
Click to expand it.
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadIncome.cs
View file @
18968fad
...
@@ -15,7 +15,7 @@ public class PerSheetDataReadIncome : IPerSheetDataRead
...
@@ -15,7 +15,7 @@ public class PerSheetDataReadIncome : IPerSheetDataRead
{
{
public
PerSheetPoint
Point
=>
new
PerSheetPoint
public
PerSheetPoint
Point
=>
new
PerSheetPoint
{
{
HeaderFirstRowNum
=
4
,
HeaderFirstRowNum
=
1
,
HeaderLastRowNum
=
4
,
HeaderLastRowNum
=
4
,
HeaderFirstCellNum
=
0
,
HeaderFirstCellNum
=
0
,
DataFirstRowNum
=
5
,
DataFirstRowNum
=
5
,
...
...
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