用easypoi 导出的时候,mybatis二级缓存失效(内容缺失?), 原因暂时未知
------------------------------2021.02.20-------
不是mybatis二级缓存的问题
是easypoi导出的时候迭代器删除了dataSet的数据
protected void insertDataToSheet(Workbook workbook, ExportParams entity,
List<ExcelExportEntity> entityList, Collection<?> dataSet,
Sheet sheet) {
try {
...
Iterator<?> its = dataSet.iterator();
List<Object> tempList = new ArrayList<Object>();
while (its.hasNext()) {
Object t = its.next();
index += createCells(patriarch, index, t, excelParams, sheet, workbook, rowHeight);
tempList.add(t);
if (index >= MAX_NUM) {
break;
}
}
if (entity.getFreezeCol() != 0) {
sh