作者 雷海东

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