Commit d5087a73 by wyc

科室详情-补全临床科室收入明细(空不显示)

parent 3ea74349
...@@ -203,7 +203,6 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s ...@@ -203,7 +203,6 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
foreach (var post in postDatas.GroupBy(t => new { t.TypeName })) foreach (var post in postDatas.GroupBy(t => new { t.TypeName }))
{ {
if (ignore.Contains(post.Key.TypeName)) continue; if (ignore.Contains(post.Key.TypeName)) continue;
var lhfz = post.Sum(group => group.CellValue); var lhfz = post.Sum(group => group.CellValue);
var hsfz = post.Sum(group => group.IsFactor == 1 ? (group.CellValue * (group.FactorValue ?? 0)) : group.CellValue); var hsfz = post.Sum(group => group.IsFactor == 1 ? (group.CellValue * (group.FactorValue ?? 0)) : group.CellValue);
var row = new Dictionary<string, object> var row = new Dictionary<string, object>
...@@ -213,8 +212,11 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s ...@@ -213,8 +212,11 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
{ "核算比例", post.FirstOrDefault().FactorValue}, { "核算比例", post.FirstOrDefault().FactorValue},
{ "核算分值", ValueFormating(hsfz, "") }, { "核算分值", ValueFormating(hsfz, "") },
}; };
if (post.FirstOrDefault().FactorValue != null)
{
items.Add(row); items.Add(row);
} }
}
#region 添加合计 #region 添加合计
{ {
var lhfz = postDatas.Sum(w => w.CellValue); var lhfz = postDatas.Sum(w => w.CellValue);
......
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