mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-11 12:29:03 +00:00
perf[storage]: 兼容空的String
This commit is contained in:
1 parent
493558b4e5
commit
d7e6f7ba7b
1 file changed
+1
-1
@@ -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