From a73589a18e55ee6e404c424302766439d0526e8d Mon Sep 17 00:00:00 2001 From: james <18604595264@163.com> Date: Wed, 15 May 2019 15:27:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E8=BF=87Sax=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E5=A4=A7=E6=95=B0=E6=8D=AE=E9=87=8F=E5=AF=BC?= =?UTF-8?q?=E5=85=A5Excel=E6=9C=80=E5=90=8E=E4=B8=80=E8=A1=8C=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=AF=BC=E5=85=A5=E7=9A=84=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=EF=BC=8C=E5=BB=BA=E8=AE=AE=E5=90=88=E5=B9=B6=E5=88=B0?= =?UTF-8?q?master=E8=BF=9B=E8=A1=8C=E5=8F=91=E5=B8=83=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../easypoi/excel/imports/sax/parse/SaxRowRead.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/easypoi-base/src/main/java/cn/afterturn/easypoi/excel/imports/sax/parse/SaxRowRead.java b/easypoi-base/src/main/java/cn/afterturn/easypoi/excel/imports/sax/parse/SaxRowRead.java index ff169b0..d46403e 100644 --- a/easypoi-base/src/main/java/cn/afterturn/easypoi/excel/imports/sax/parse/SaxRowRead.java +++ b/easypoi-base/src/main/java/cn/afterturn/easypoi/excel/imports/sax/parse/SaxRowRead.java @@ -136,9 +136,6 @@ public class SaxRowRead extends ImportBaseService implements ISaxRowRead { addListContinue(object, param, datas, titlemap, targetId, params); } } else { - if (object != null && hanlder != null) { - hanlder.handler(object); - } object = PoiPublicUtil.createObject(pojoClass, targetId); SaxReadCellEntity entity; for (int i = 0, le = datas.size(); i < le; i++) { @@ -148,6 +145,9 @@ public class SaxRowRead extends ImportBaseService implements ISaxRowRead { saveFieldValue(params, object, entity, excelParams, titleString); } } + if (object != null && hanlder != null) { + hanlder.handler(object); + } for (ExcelCollectionParams param : excelCollection) { addListContinue(object, param, datas, titlemap, targetId, params); }