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
95faf43c
Commit
95faf43c
authored
Feb 22, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抽取前科室、类型校验
parent
cfddeca9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
0 deletions
+38
-0
performance/Performance.Api/Controllers/TemplateController.cs
+16
-0
performance/Performance.Api/wwwroot/Performance.Api.xml
+6
-0
performance/Performance.Services/ExConfigService.cs
+16
-0
No files found.
performance/Performance.Api/Controllers/TemplateController.cs
View file @
95faf43c
...
@@ -166,6 +166,22 @@ public ApiResponse Import([FromForm] IFormCollection form)
...
@@ -166,6 +166,22 @@ public ApiResponse Import([FromForm] IFormCollection form)
#
region
新版提取
#
region
新版提取
/// <summary>
/// <summary>
/// 提取前检查
/// </summary>
/// <returns></returns>
[
HttpPost
(
"Prejudge/{allotId}"
)]
public
ApiResponse
Prejudge
([
FromRoute
]
int
allotId
)
{
string
filePath
=
configService
.
LastAllotFilePath
(
allotId
);
if
(!
string
.
IsNullOrEmpty
(
filePath
)
&&
FileHelper
.
IsExistFile
(
filePath
))
{
var
data
=
configService
.
CheckHasNewDepartmentOrCategory
(
allotId
);
return
new
ApiResponse
(
ResponseType
.
Fail
,
data
);
}
return
new
ApiResponse
(
ResponseType
.
OK
);
}
/// <summary>
/// 提取绩效数据
/// 提取绩效数据
/// </summary>
/// </summary>
/// <param name="request"></param>
/// <param name="request"></param>
...
...
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
95faf43c
...
@@ -1341,6 +1341,12 @@
...
@@ -1341,6 +1341,12 @@
<param
name=
"form"
></param>
<param
name=
"form"
></param>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.TemplateController.Prejudge(System.Int32)"
>
<summary>
提取前检查
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.TemplateController.NewExtractData(Performance.DtoModels.ExtractRequest)"
>
<member
name=
"M:Performance.Api.Controllers.TemplateController.NewExtractData(Performance.DtoModels.ExtractRequest)"
>
<summary>
<summary>
提取绩效数据
提取绩效数据
...
...
performance/Performance.Services/ExConfigService.cs
View file @
95faf43c
...
@@ -608,6 +608,22 @@ public ModFeeResponse FeeSource(ModModuleRequest request)
...
@@ -608,6 +608,22 @@ public ModFeeResponse FeeSource(ModModuleRequest request)
#
region
配置校验
#
region
配置校验
public
string
LastAllotFilePath
(
int
allotId
)
{
// 获取绩效信息
var
allot
=
perallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
allotId
);
if
(
allot
==
null
)
throw
new
PerformanceException
(
"AllotID错误"
);
var
statesArray
=
new
int
[]
{
(
int
)
AllotStates
.
GenerateSucceed
,
(
int
)
AllotStates
.
Archive
};
var
allotList
=
perallotRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
allot
.
HospitalId
&&
statesArray
.
Contains
(
t
.
States
));
var
allotLast
=
allotList
?.
OrderByDescending
(
t
=>
t
.
Year
).
ThenByDescending
(
t
=>
t
.
Month
).
First
();
if
(
allotLast
!=
null
)
return
allotLast
.
Path
;
return
""
;
}
/// <summary>
/// <summary>
/// 配置校验
/// 配置校验
/// </summary>
/// </summary>
...
...
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