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
38071771
Commit
38071771
authored
May 20, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查核算单元
parent
4a6a8b85
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
68 additions
and
34 deletions
+68
-34
performance/Performance.Api/Controllers/AllotController.cs
+22
-1
performance/Performance.Api/Controllers/ConfigController.cs
+0
-13
performance/Performance.Api/wwwroot/Performance.Api.xml
+15
-3
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+20
-0
performance/Performance.Repository/PerforCofdirectorRepository.cs
+0
-6
performance/Performance.Services/AllotService.cs
+11
-0
performance/Performance.Services/ConfigService.cs
+0
-11
No files found.
performance/Performance.Api/Controllers/AllotController.cs
View file @
38071771
...
@@ -301,7 +301,28 @@ public ApiResponse GenerateReport([CustomizeValidator(RuleSet = "Delete"), FromB
...
@@ -301,7 +301,28 @@ public ApiResponse GenerateReport([CustomizeValidator(RuleSet = "Delete"), FromB
await
Task
.
Delay
(
TimeSpan
.
FromSeconds
(
5
),
token
);
await
Task
.
Delay
(
TimeSpan
.
FromSeconds
(
5
),
token
);
}
}
});
});
return
new
ApiResponse
(
ResponseType
.
OK
);
return
new
ApiResponse
(
ResponseType
.
OK
,
"统计报表数据任务开始"
);
}
/// <summary>
/// 验证科室核算单元、工号
/// </summary>
/// <param name="allotId"></param>
/// <returns></returns>
[
Route
(
"accounting/verify/{allotId}"
)]
[
HttpPost
]
public
ApiResponse
AccountingVerify
([
FromRoute
]
int
allotId
)
{
_backgroundTaskQueue
.
QueueBackgroundWorkItem
(
async
token
=>
{
using
(
var
scope
=
_serviceScopeFactory
.
CreateScope
())
{
var
scopedServices
=
scope
.
ServiceProvider
.
GetRequiredService
<
AllotService
>();
scopedServices
.
AccoungtingVerify
(
allotId
);
await
Task
.
Delay
(
TimeSpan
.
FromSeconds
(
5
),
token
);
}
});
return
new
ApiResponse
(
ResponseType
.
OK
,
"核算单元及组别数据验证任务开始"
);
}
}
/*
/*
...
...
performance/Performance.Api/Controllers/ConfigController.cs
View file @
38071771
...
@@ -594,19 +594,6 @@ public ApiResponse AccountingDelete([FromRoute] int accountingId)
...
@@ -594,19 +594,6 @@ public ApiResponse AccountingDelete([FromRoute] int accountingId)
return
new
ApiResponse
(
ResponseType
.
Fail
);
return
new
ApiResponse
(
ResponseType
.
Fail
);
return
new
ApiResponse
(
ResponseType
.
OK
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
}
/// <summary>
/// 核算单元及组别数据验证
/// </summary>
/// <param name="allotId"></param>
/// <returns></returns>
[
Route
(
"accountingverify/{allotId}"
)]
[
HttpPost
]
public
ApiResponse
AccountingVerify
([
FromRoute
]
int
allotId
)
{
_configService
.
AccoungtingVerify
(
allotId
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
#
endregion
#
endregion
/// <summary>
/// <summary>
...
...
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
38071771
...
@@ -232,6 +232,13 @@
...
@@ -232,6 +232,13 @@
<param
name=
"request"
></param>
<param
name=
"request"
></param>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.AllotController.AccountingVerify(System.Int32)"
>
<summary>
验证科室核算单元、工号
</summary>
<param
name=
"allotId"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.AllotController.Recalculation(Performance.DtoModels.RecalculationRequest)"
>
<member
name=
"M:Performance.Api.Controllers.AllotController.Recalculation(Performance.DtoModels.RecalculationRequest)"
>
<summary>
<summary>
重新计算院领导绩效
重新计算院领导绩效
...
@@ -287,6 +294,12 @@
...
@@ -287,6 +294,12 @@
</summary>
</summary>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.AllotController.DownloadCurrentCalculationTable(Performance.DtoModels.AllotRequest)"
>
<summary>
下载当前测算表
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.BudgetController.Query(Performance.DtoModels.Request.BudgetRequest)"
>
<member
name=
"M:Performance.Api.Controllers.BudgetController.Query(Performance.DtoModels.Request.BudgetRequest)"
>
<summary>
<summary>
预算管理查询(包含金额、占比)
预算管理查询(包含金额、占比)
...
@@ -607,12 +620,11 @@
...
@@ -607,12 +620,11 @@
<param
name=
"request"
></param>
<param
name=
"request"
></param>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.ConfigController.GetAccountingList(
System.Int32,System.Int32
)"
>
<member
name=
"M:Performance.Api.Controllers.ConfigController.GetAccountingList(
Performance.DtoModels.AccoungingRequest
)"
>
<summary>
<summary>
获取cof_accounting列表
获取cof_accounting列表
</summary>
</summary>
<param
name=
"allotId"
></param>
<param
name=
"request"
></param>
<param
name=
"type"
>
1 返回accounting列表 2 返回核算单元类型 3 返回核算单元
</param>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.ConfigController.AccountingInsert(Performance.EntityModels.cof_accounting)"
>
<member
name=
"M:Performance.Api.Controllers.ConfigController.AccountingInsert(Performance.EntityModels.cof_accounting)"
>
...
...
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
38071771
...
@@ -1149,6 +1149,11 @@
...
@@ -1149,6 +1149,11 @@
岗位系数
岗位系数
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.DtoModels.PerDataAccountBaisc.GiveFee"
>
<summary>
考核后绩效
</summary>
</member>
<member
name=
"P:Performance.DtoModels.PerDataClinicEmployee.UnitType"
>
<member
name=
"P:Performance.DtoModels.PerDataClinicEmployee.UnitType"
>
<summary>
<summary>
核算单元分类
核算单元分类
...
@@ -1819,6 +1824,21 @@
...
@@ -1819,6 +1824,21 @@
比率
比率
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.DtoModels.AccoungingRequest.AllotId"
>
<summary>
绩效Id
</summary>
</member>
<member
name=
"P:Performance.DtoModels.AccoungingRequest.Type"
>
<summary>
1 返回accounting列表 2 返回核算单元类型 3 返回核算单元
</summary>
</member>
<member
name=
"P:Performance.DtoModels.AccoungingRequest.UnitType"
>
<summary>
核算单元类型、核算组别
</summary>
</member>
<member
name=
"T:Performance.DtoModels.AgainAllotRequest"
>
<member
name=
"T:Performance.DtoModels.AgainAllotRequest"
>
<summary>
<summary>
二次分配请求
二次分配请求
...
...
performance/Performance.Repository/PerforCofdirectorRepository.cs
View file @
38071771
...
@@ -219,11 +219,5 @@ union all
...
@@ -219,11 +219,5 @@ union all
return
flag
;
return
flag
;
}
}
}
}
public
int
VerifyAccountingAndUnittype
(
int
allotId
)
{
return
Execute
(
"call proc_verify_accoungingunit_unittype(@allotId);"
,
new
{
allotId
});
}
}
}
}
}
performance/Performance.Services/AllotService.cs
View file @
38071771
...
@@ -440,6 +440,8 @@ public void Generate(per_allot allot)
...
@@ -440,6 +440,8 @@ public void Generate(per_allot allot)
UpdateAllotStates
(
allot
.
ID
,
(
int
)
AllotStates
.
GenerateAccomplish
,
EnumHelper
.
GetDescription
(
AllotStates
.
GenerateAccomplish
),
generate
);
UpdateAllotStates
(
allot
.
ID
,
(
int
)
AllotStates
.
GenerateAccomplish
,
EnumHelper
.
GetDescription
(
AllotStates
.
GenerateAccomplish
),
generate
);
perforCofdirectorRepository
.
SupplementaryData
(
allot
.
ID
);
perforCofdirectorRepository
.
SupplementaryData
(
allot
.
ID
);
// 验证科室核算单元、工号
AccoungtingVerify
(
allot
.
ID
);
//logManageService.WriteMsg("正在生成报表数据", "正在生成报表数据", 1, allot.ID, "ReceiveMessage", true);
//logManageService.WriteMsg("正在生成报表数据", "正在生成报表数据", 1, allot.ID, "ReceiveMessage", true);
//var res = reportService.ImportData(allot);
//var res = reportService.ImportData(allot);
...
@@ -474,6 +476,15 @@ public void GenerateReport(per_allot allot)
...
@@ -474,6 +476,15 @@ public void GenerateReport(per_allot allot)
}
}
/// <summary>
/// <summary>
/// 验证科室核算单元、工号
/// </summary>
/// <param name="allot"></param>
public
void
AccoungtingVerify
(
int
allotId
)
{
reportService
.
ExecProc
(
"call proc_verify_accoungingunit_unittype(@allotId);"
,
new
{
allotId
});
}
/// <summary>
/// 重新计算院领导绩效
/// 重新计算院领导绩效
/// </summary>
/// </summary>
/// <param name="allotId"></param>
/// <param name="allotId"></param>
...
...
performance/Performance.Services/ConfigService.cs
View file @
38071771
...
@@ -706,17 +706,6 @@ public bool AccountingDelete(int accountingId)
...
@@ -706,17 +706,6 @@ public bool AccountingDelete(int accountingId)
return
cofaccountingRepository
.
Remove
(
entity
);
return
cofaccountingRepository
.
Remove
(
entity
);
}
}
/// <summary>
/// 删除数据
/// </summary>
/// <param name="accountingId"></param>
/// <returns></returns>
public
void
AccoungtingVerify
(
int
allotId
)
{
_directorRepository
.
VerifyAccountingAndUnittype
(
allotId
);
}
#
endregion
#
endregion
#
region
Copy
#
region
Copy
...
...
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