Commit 9f2c83b5 by lcx

全院绩效发放排序、其他绩效审核只根据工号核对

parent 6b93e79f
......@@ -1938,6 +1938,11 @@
工号
</summary>
</member>
<member name="P:Performance.DtoModels.Request.BatchDetail.Batch">
<summary>
批次
</summary>
</member>
<member name="P:Performance.DtoModels.Request.ComputerAvgRequest.PositionName">
<summary>
绩效核算人群
......
......@@ -929,7 +929,9 @@ public List<ComputeResponse> AllCompute(int allotId, int hospitalId, int isShowM
});
}
return response?.OrderByDescending(t => t.AccountingUnit).ToList();
var AccountTypes = EnumHelper.GetItems<AccountUnitType>();
return response?.OrderBy(t => AccountTypes.FirstOrDefault(a => a.Name == t.UnitType)?.Value).ThenByDescending(t => t.AccountingUnit).ToList();
}
///// <summary>
......
......@@ -517,7 +517,7 @@ public bool ConfirmAudit(int userid, AprAmountAuditRequest request)
var allApramounts = perapramountRepository.GetEntities(t => t.AllotId == request.AllotId);
foreach (var member in request.Members)
{
var apramounts = allApramounts?.Where(t => (t.DoctorName ?? "") == member.DoctorName && (t.PersonnelNumber ?? "") == member.PersonnelNumber);
var apramounts = allApramounts?.Where(t => (t.PersonnelNumber ?? "") == member.PersonnelNumber);
if (request.IsPass == 1 && (apramounts == null || !apramounts.Any()))
throw new PerformanceException($"工号为“{member.PersonnelNumber}”的审核信息无效,请确认");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment