行政科室详情null值判断

parent 465151fa
......@@ -1002,15 +1002,19 @@ public DeptDataDetails DeptOfficeDetail(int accountId)
Items = new List<DetailModule>(),
GroupBasis = 1,
};
foreach (var item in computes)
if (computes != null)
{
detail.Items.Add(new DetailModule
foreach (var item in computes)
{
JobNumber = item.JobNumber,
ItemName = item.EmployeeName,
ItemValue = Math.Round(item.PerforSumFee ?? 0, 2)
});
detail.Items.Add(new DetailModule
{
JobNumber = item.JobNumber,
ItemName = item.EmployeeName,
ItemValue = Math.Round(item.PerforSumFee ?? 0, 2)
});
}
}
deptDetails.Detail.Add(detail);
int groupBasis = 0;
......
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