Commit cccf0e4a by lcx

bug修改,核算数据值为负数时不显示

parent df4cf65c
...@@ -284,7 +284,7 @@ private void CommonExport(int sheetID, SheetExportResponse response) ...@@ -284,7 +284,7 @@ private void CommonExport(int sheetID, SheetExportResponse response)
{ {
var data = dataList.FirstOrDefault(t => t.RowNumber == rowNumber && t.SignID == head.SignID); var data = dataList.FirstOrDefault(t => t.RowNumber == rowNumber && t.SignID == head.SignID);
var value = data?.CellValue; var value = data?.CellValue;
if (value.HasValue && value.Value > 0) if (value.HasValue)
rowbody.Data.Add(new Cell(head.PointCell.Value, value, 1, 1, data.IsTotal == 1, true, data.Annotation)); rowbody.Data.Add(new Cell(head.PointCell.Value, value, 1, 1, data.IsTotal == 1, true, data.Annotation));
} }
} }
......
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