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
a81b9382
Commit
a81b9382
authored
Jan 22, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抽取数据前检查科室、收费类型是否缺失,配置成本收入抽取项时根据sheettype返回相应的数据
parent
b4ee3f44
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
170 additions
and
46 deletions
+170
-46
performance/Performance.Api/Controllers/ExConfigController.cs
+1
-1
performance/Performance.Api/Controllers/TemplateController.cs
+4
-7
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+4
-4
performance/Performance.Extract.Api/Controllers/ModExtractController.cs
+34
-30
performance/Performance.Services/ExConfigService.cs
+126
-3
performance/Performance.Services/ExtractExcelService/QueryService.cs
+1
-1
No files found.
performance/Performance.Api/Controllers/ExConfigController.cs
View file @
a81b9382
...
...
@@ -44,7 +44,7 @@ public ApiResponse Extract([CustomizeValidator(RuleSet = "Query"), FromBody] Mod
if
(
request
.
ExecuteType
==
null
||
!
request
.
ExecuteType
.
Any
())
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"ExecuteType 不存在,请重新选择!"
);
var
list
=
configService
.
ExtractScheme
(
request
.
HospitalId
.
Value
,
request
.
ExecuteType
);
var
list
=
configService
.
ExtractScheme
(
request
.
HospitalId
.
Value
,
request
.
ExecuteType
,
request
.
SheetType
);
return
new
ApiResponse
(
ResponseType
.
OK
,
list
);
}
...
...
performance/Performance.Api/Controllers/TemplateController.cs
View file @
a81b9382
...
...
@@ -31,9 +31,8 @@ public class TemplateController : Controller
private
readonly
WebapiUrl
url
;
private
readonly
Application
application
;
private
readonly
TemplateService
templateService
;
private
readonly
DFExtractService
extractService
;
private
readonly
ExtractIncomeService
extractIncomeService
;
private
readonly
Ex
tractService
extractE
Service
;
private
readonly
Ex
ConfigService
config
Service
;
private
readonly
HospitalService
hospitalService
;
private
readonly
AllotService
allotService
;
private
readonly
LogManageService
logService
;
...
...
@@ -46,9 +45,8 @@ public class TemplateController : Controller
IOptions
<
WebapiUrl
>
url
,
IOptions
<
Application
>
options
,
TemplateService
templateService
,
DFExtractService
extractService
,
ExtractIncomeService
extractIncomeService
,
Ex
tractService
extractE
Service
,
Ex
ConfigService
config
Service
,
HospitalService
hospitalService
,
AllotService
allotService
,
LogManageService
logService
,
...
...
@@ -60,9 +58,8 @@ public class TemplateController : Controller
this
.
url
=
url
.
Value
;
this
.
application
=
options
.
Value
;
this
.
templateService
=
templateService
;
this
.
extractService
=
extractService
;
this
.
extractIncomeService
=
extractIncomeService
;
this
.
extractEService
=
extractE
Service
;
this
.
configService
=
config
Service
;
this
.
hospitalService
=
hospitalService
;
this
.
allotService
=
allotService
;
this
.
logService
=
logService
;
...
...
@@ -184,7 +181,7 @@ public ApiResponse NewExtractData([CustomizeValidator, FromBody] ExtractRequest
try
{
bool
isSingle
=
false
;
string
message
=
extract
Service
.
Judge
(
request
.
AllotId
,
request
.
HospitalId
,
request
.
UseScheme
,
ref
isSingle
,
out
string
filePath
);
string
message
=
config
Service
.
Judge
(
request
.
AllotId
,
request
.
HospitalId
,
request
.
UseScheme
,
ref
isSingle
,
out
string
filePath
);
if
(!
string
.
IsNullOrEmpty
(
message
))
return
new
ApiResponse
(
ResponseType
.
Fail
,
message
);
...
...
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
a81b9382
...
...
@@ -180,11 +180,11 @@
<summary>
日期
</summary>
</member>
<member
name=
"M:Performance.DtoModels.HandsonTable.SetRowData(System.Collections.Generic.IEnumerable{Performance.DtoModels.HandsonRowData},System.Boolean)"
>
<summary>
<summary>
</summary>
<param
name=
"datas"
></param>
<param
name=
"isTypein"
>
是否是用户录入的 是:true 不是:false
</param>
</summary>
<param
name=
"datas"
></param>
<param
name=
"isTypein"
>
是否是用户录入的 是:true 不是:false
</param>
</member>
<member
name=
"P:Performance.DtoModels.HistoryData.Year"
>
<summary>
...
...
performance/Performance.Extract.Api/Controllers/ModExtractController.cs
View file @
a81b9382
...
...
@@ -16,6 +16,7 @@ public class ModExtractController : Controller
{
private
readonly
ILogger
<
ModExtractController
>
logger
;
private
ExConfigService
service
;
public
ModExtractController
(
ILogger
<
ModExtractController
>
logger
,
ExConfigService
service
)
...
...
@@ -24,34 +25,38 @@ public class ModExtractController : Controller
this
.
service
=
service
;
}
/// <summary>
/// 绩效数据抽取模板
/// </summary>
/// <returns></returns>
[
Route
(
"scheme"
)]
[
HttpPost
]
public
ApiResponse
Extract
([
CustomizeValidator
(
RuleSet
=
"Query"
),
FromBody
]
ModModuleRequest
request
)
{
if
(
request
.
HospitalId
==
null
||
request
.
HospitalId
.
Value
==
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"HospitalId 不存在,请重新选择!"
);
if
(
request
.
ExecuteType
==
null
||
!
request
.
ExecuteType
.
Any
())
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"ExecuteType 不存在,请重新选择!"
);
#
region
弃用
var
list
=
service
.
ExtractScheme
(
request
.
HospitalId
.
Value
,
request
.
ExecuteType
);
return
new
ApiResponse
(
ResponseType
.
OK
,
list
);
}
///// <summary>
///// 绩效数据抽取模板
///// </summary>
///// <returns></returns>
//[Route("scheme")]
//[HttpPost]
//public ApiResponse Extract([CustomizeValidator(RuleSet = "Query"), FromBody]ModModuleRequest request)
//{
// if (request.HospitalId == null || request.HospitalId.Value == 0)
// return new ApiResponse(ResponseType.ParameterError, "HospitalId 不存在,请重新选择!");
// if (request.ExecuteType == null || !request.ExecuteType.Any())
// return new ApiResponse(ResponseType.ParameterError, "ExecuteType 不存在,请重新选择!");
/// <summary>
/// 费用类型
/// </summary>
/// <returns></returns>
[
Route
(
"type"
)]
[
HttpPost
]
public
ApiResponse
FeeType
()
{
var
list
=
service
.
FeeType
();
return
new
ApiResponse
(
ResponseType
.
OK
,
list
);
}
// var list = service.ExtractScheme(request.HospitalId.Value, request.ExecuteType);
// return new ApiResponse(ResponseType.OK, list);
//}
///// <summary>
///// 费用类型
///// </summary>
///// <returns></returns>
//[Route("type")]
//[HttpPost]
//public ApiResponse FeeType()
//{
// var list = service.FeeType();
// return new ApiResponse(ResponseType.OK, list);
//}
#
endregion
弃用
/// <summary>
/// 绩效考核项费用来源
...
...
@@ -59,7 +64,7 @@ public ApiResponse FeeType()
/// <returns></returns>
[
Route
(
"source"
)]
[
HttpPost
]
public
ApiResponse
FeeSource
([
FromBody
]
ModModuleRequest
request
)
public
ApiResponse
FeeSource
([
FromBody
]
ModModuleRequest
request
)
{
if
(
request
.
HospitalId
==
null
||
request
.
HospitalId
.
Value
==
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"HospitalId 参数错误!"
);
...
...
@@ -75,11 +80,11 @@ public ApiResponse FeeSource([FromBody]ModModuleRequest request)
/// <returns></returns>
[
Route
(
"items"
)]
[
HttpPost
]
public
ApiResponse
Items
([
FromBody
]
ModItemRequest
request
)
public
ApiResponse
Items
([
FromBody
]
ModItemRequest
request
)
{
logger
.
LogInformation
(
$"绩效收入模板配置项列表:
{
JsonHelper
.
Serialize
(
request
)}
"
);
service
.
AddItems
(
request
.
ModuleId
.
Value
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
}
}
\ No newline at end of file
}
performance/Performance.Services/ExConfigService.cs
View file @
a81b9382
This diff is collapsed.
Click to expand it.
performance/Performance.Services/ExtractExcelService/QueryService.cs
View file @
a81b9382
...
...
@@ -367,7 +367,7 @@ private List<ex_result> ExtractSpecialData(per_allot allot, string groupName, bo
/// <param name="source"></param>
/// <param name="category"></param>
/// <returns></returns>
p
rivate
IEnumerable
<
ExtractDto
>
QueryData
(
sys_hospitalconfig
config
,
per_allot
allot
,
string
execsql
)
p
ublic
IEnumerable
<
ExtractDto
>
QueryData
(
sys_hospitalconfig
config
,
per_allot
allot
,
string
execsql
)
{
var
parameters
=
GetParameters
(
allot
);
using
(
var
connection
=
ConnectionBuilder
.
Create
((
DatabaseType
)
config
.
DataBaseType
,
config
.
DbSource
,
config
.
DbName
,
config
.
DbUser
,
config
.
DbPassword
))
...
...
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