Commit 0c21de3c by lcx

获取采集数据,null值判断

parent b6481b96
......@@ -127,11 +127,10 @@ private void WriteDataToFile(IWorkbook workbook, int allotId, Dictionary<ExDataD
if (customer != null)
{
string sheetName = sheet.SheetName.NoBlank();
var collects = collectData.Where(t => t.SheetName.NoBlank() == sheetName)?.ToList();
if (collects != null && collects.Any())
{
customer.WriteCollectData(sheet, point, sheetType, style, collects);
}
var collects = collectData?.Where(t => t.SheetName.NoBlank() == sheetName).ToList();
customer.WriteCollectData(sheet, point, sheetType, style, collects);
var exdata = extractDto.Where(t => t.SheetName.NoBlank() == sheetName)?.ToList();
var data = GetDataBySheetType(sheetType, exdata, employeeDict);
customer.WriteSheetData(sheet, point, sheetType, style, data, exdict);
......
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