作者 雷海东

... ... @@ -237,6 +237,7 @@ public class JeecgController<T, S extends IService<T>> {
// 获取字段值,并检查是否为空
Object value = field.get(data);
if (value != null) {
hasNonNullValue = true;
break;
}
... ... @@ -256,7 +257,7 @@ public class JeecgController<T, S extends IService<T>> {
long start = System.currentTimeMillis();
service.saveBatch(dataListToSave);
log.info("批量保存消耗时间:" + (System.currentTimeMillis() - start) + "毫秒");
return Result.ok("文件导入成功!数据行数:" + list.size());
return Result.ok("文件导入成功!数据行数:" + dataListToSave.size());
} else {
return Result.error("文件导入失败:没有有效的数据需要保存!");
}
... ...