Commit 246fb67e by wyc

特殊核算组 医院奖罚

parent 4c9a4cd0
......@@ -364,6 +364,7 @@ public int SaveAccountBasic(PerSheet sheet, per_allot allot, List<per_sheet> she
var imdata = _mapper.Map<im_accountbasic>(data);
imdata.SheetID = imsheet.ID;
imdata.AllotID = allot.ID;
imdata.DoctorExtra = data.Extra;
addList.Add(imdata);
}
connection.Insert(addList.ToArray());
......
......@@ -136,6 +136,7 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
else if (UnitTypeUtil.Is(response.UnitType, UnitType.特殊核算组.ToString()))
{
var special = _perforResspecialunitRepository.GetEntities(t => t.AllotID == allotId && t.Department == accountingUnit);
var imAccountbasics = _perforImaccountbasicRepository.GetEntities(t => t.AllotID == allotId && t.DoctorAccountingUnit == accountingUnit);
if (special?.Any() != true) return response;
account.AdjustLaterOtherFee = special.FirstOrDefault()?.AdjustLaterOtherFee ?? 0;
account.AssessLaterOtherFee = special.FirstOrDefault()?.AssessLaterOtherFee ?? 0;
......@@ -143,6 +144,7 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
account.MedicineExtra = special.FirstOrDefault()?.MedicineExtra ?? 0;
account.MaterialsExtra = special.FirstOrDefault()?.MaterialsExtra ?? 0;
account.ScoringAverage = special.FirstOrDefault()?.ScoringAverage ?? 0;
account.Extra = imAccountbasics.FirstOrDefault()?.DoctorExtra ?? 0;
var detailItems = new DeptDetailItem();
#region 补全特殊核算组量化指标明细
......
......@@ -44,6 +44,7 @@ public partial class ComputeService : IAutoInjection
private readonly PerforCofEmpDetailRepository _perforCofEmpDetailRepository;
private readonly PerforAgsecondallotRepository _agsecondallotRepository;
private readonly PerforRescomputeRepository _rescomputeRepository;
private readonly PerforImaccountbasicRepository _perforImaccountbasicRepository;
public ComputeService(
IMapper mapper,
......@@ -73,7 +74,8 @@ public partial class ComputeService : IAutoInjection
PerforCofDeptDetailRepository perforCofDeptDetailRepository,
PerforCofEmpDetailRepository perforCofEmpDetailRepository,
PerforAgsecondallotRepository agsecondallotRepository,
PerforRescomputeRepository rescomputeRepository
PerforRescomputeRepository rescomputeRepository,
PerforImaccountbasicRepository perforImaccountbasicRepository
)
{
_mapper = mapper;
......@@ -104,6 +106,7 @@ PerforRescomputeRepository rescomputeRepository
_perforCofEmpDetailRepository = perforCofEmpDetailRepository;
_agsecondallotRepository = agsecondallotRepository;
_rescomputeRepository = rescomputeRepository;
_perforImaccountbasicRepository = perforImaccountbasicRepository;
}
public int IsShowManage(int allotId)
......
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