mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-26 07:59:56 +00:00
perf[storage]: 兼容空的String
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user