diff --git a/pom.xml b/pom.xml
index e50cf45..bb5182d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
com.alibaba
easyexcel
- 2.2.1
+ 2.2.2
jar
easyexcel
diff --git a/src/main/java/com/alibaba/excel/util/WriteHandlerUtils.java b/src/main/java/com/alibaba/excel/util/WriteHandlerUtils.java
index 57f0c49..044e7b2 100644
--- a/src/main/java/com/alibaba/excel/util/WriteHandlerUtils.java
+++ b/src/main/java/com/alibaba/excel/util/WriteHandlerUtils.java
@@ -234,6 +234,6 @@ public class WriteHandlerUtils {
} else {
writeHandlerMap = writeContext.currentWriteHolder().writeHandlerMap();
}
- return writeHandlerMap.get(WorkbookWriteHandler.class);
+ return writeHandlerMap.get(clazz);
}
}
diff --git a/update.md b/update.md
index fe4b1ae..dd54a2a 100644
--- a/update.md
+++ b/update.md
@@ -1,3 +1,6 @@
+# 2.2.2
+* 修改`sheet`事件未调用的bug
+
# 2.2.1
* 发布正式版
* 修复第一行为空不会调用`invokeHeadMap`的bug [Issue #993](https://github.com/alibaba/easyexcel/issues/993)