``增加跳列功能
This commit is contained in:
@@ -85,7 +85,6 @@ namespace TempTask.WebEntry.Tools
|
||||
int current_skip_count = 0;
|
||||
for (int i = 0; i < sheet_item.null_row_count; i++)
|
||||
{
|
||||
|
||||
var c_rowindex = startRowIndex + i;
|
||||
if (sheet_item.skip_rows != null && sheet_item.skip_rows.Contains(c_rowindex + 1))
|
||||
{
|
||||
@@ -101,10 +100,13 @@ namespace TempTask.WebEntry.Tools
|
||||
}
|
||||
else
|
||||
{
|
||||
var column_letter = App.Configuration[$"column_name_match_{excelTypeInt}_{sheet_item.sheet_no}:{ x.ToExcelColumnName()}"];
|
||||
if (string.IsNullOrWhiteSpace(column_letter))
|
||||
var column_letter = x.ToExcelColumnName();
|
||||
if (sheet_item.skip_columns != null && sheet_item.skip_columns.Contains(column_letter))
|
||||
continue;
|
||||
var jtoken = datas[i - current_skip_count][column_letter];
|
||||
var api_column_name = App.Configuration[$"column_name_match_{excelTypeInt}_{sheet_item.sheet_no}:{ x.ToExcelColumnName()}"];
|
||||
if (string.IsNullOrWhiteSpace(api_column_name))
|
||||
continue;
|
||||
var jtoken = datas[i - current_skip_count][api_column_name];
|
||||
var cellvalue = string.Empty;
|
||||
if (jtoken.Type == JTokenType.Null)
|
||||
cellvalue = "/";
|
||||
|
||||
Reference in New Issue
Block a user