Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
liaochong committed Apr 30, 2023
1 parent 72a93ac commit a20e849
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,19 +368,19 @@ private void setFormula(int i, Td td) {
if (filteredFields.isEmpty()) {
return;
}
FieldDefinition field = filteredFields.get(i);
ExcelColumnMapping excelColumnMapping = excelColumnMappingMap.get(field);
FieldDefinition fieldDefinition = filteredFields.get(i);
ExcelColumnMapping excelColumnMapping = excelColumnMappingMap.get(fieldDefinition.getField());
if (excelColumnMapping != null && excelColumnMapping.formula) {
td.formula = true;
}
}

protected void setPrompt(Td td, int index) {
if (filteredFields == null || filteredFields.isEmpty()) {
if (filteredFields.isEmpty()) {
return;
}
FieldDefinition field = filteredFields.get(index);
ExcelColumnMapping excelColumnMapping = excelColumnMappingMap.get(field);
FieldDefinition fieldDefinition = filteredFields.get(index);
ExcelColumnMapping excelColumnMapping = excelColumnMappingMap.get(fieldDefinition.getField());
if (excelColumnMapping != null && excelColumnMapping.promptContainer != null) {
td.promptContainer = excelColumnMapping.promptContainer;
}
Expand Down

0 comments on commit a20e849

Please sign in to comment.