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
d396c003
Commit
d396c003
authored
Jun 24, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增校验hrp人员科室接口
parent
3dfdd456
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
9 deletions
+25
-9
performance/Performance.Api/Controllers/ConfigController.cs
+25
-9
No files found.
performance/Performance.Api/Controllers/ConfigController.cs
View file @
d396c003
using
FluentValidation.AspNetCore
;
using
Microsoft.AspNetCore.Mvc
;
using
Microsoft.Extensions.Caching.Memory
;
using
Microsoft.Extensions.Options
;
using
Newtonsoft.Json.Linq
;
using
Performance.DtoModels
;
using
Performance.DtoModels.AppSettings
;
using
Performance.EntityModels
;
using
Performance.Infrastructure
;
using
Performance.Services
;
using
Performance.Services.ExtractExcelService
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
namespace
Performance.Api.Controllers
{
[
Route
(
"api/[controller]"
)]
public
class
ConfigController
:
Controller
{
private
ConfigService
_configService
;
private
AllotService
_allotService
;
public
ConfigController
(
ConfigService
configService
,
AllotService
allotService
)
private
readonly
ConfigService
_configService
;
private
readonly
AllotService
_allotService
;
private
readonly
DictionaryService
_dictionaryService
;
public
ConfigController
(
ConfigService
configService
,
AllotService
allotService
,
DictionaryService
dictionaryService
)
{
_configService
=
configService
;
_allotService
=
allotService
;
_dictionaryService
=
dictionaryService
;
}
#
region
弃用
...
...
@@ -618,6 +616,7 @@ public ApiResponse BatchAccountingStructrue([FromRoute] int allotId)
/// 核算单元及组别批量添加
/// </summary>
/// <param name="allotId"></param>
/// <param name="request"></param>
/// <returns></returns>
[
Route
(
"BatchSaveAccounting/{allotId}"
)]
[
HttpPost
]
...
...
@@ -670,7 +669,9 @@ public ApiResponse GetHrpDeptHands([FromRoute] int hospitalId, int allotId)
/// <summary>
/// 保存HRP人员科室
/// </summary>
/// <param name=""></param>
/// <param name="hospitalId"></param>
/// <param name="allotId"></param>
/// <param name="request"></param>
/// <returns></returns>
[
Route
(
"savehrpdept/{hospitalId}/allot/{allotId}"
)]
[
HttpPost
]
...
...
@@ -683,6 +684,21 @@ public ApiResponse SaveHrpDept(int hospitalId, int allotId, [FromBody] SaveColle
_configService
.
SaveDepttypeHands
(
hospitalId
,
allotId
,
request
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
/// <summary>
/// 校正HRP人员的科室信息
/// </summary>
/// <param name="allotId"></param>
/// <returns></returns>
[
Route
(
"standardhrpdept/{allotId}"
)]
[
HttpPost
]
public
ApiResponse
StandardHrpDept
(
int
allotId
)
{
if
(
allotId
<=
0
)
return
new
ApiResponse
(
ResponseType
.
Fail
,
"参数错误"
,
"allotid无效"
);
_dictionaryService
.
CorrectionHRPDepartment
(
allotId
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
#
endregion
#
region
二次分配别名配置
...
...
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