perf[storage]: 兼容空的String

This commit is contained in:
jaysunxiao
2021-11-22 14:57:27 +08:00
parent 493558b4e5
commit d7e6f7ba7b
@@ -83,7 +83,7 @@ public class ExcelResourceReader implements IResourceReader {
for (var fieldInfo : fieldInfos) {
var cell = row.getCell(fieldInfo.index);
var content = CellUtils.getCellStringValue(cell);
if (StringUtils.isNotEmpty(content)) {
if (StringUtils.isNotEmpty(content) || fieldInfo.field.getType() == String.class) {
inject(instance, fieldInfo.field, content);
}
}