Commit d5087a73 by wyc

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

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