mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 17:18:24 +08:00
optimize MapperInvocationHandler.java
This commit is contained in:
parent
7bdf8aa1fa
commit
87f17bfed1
@ -28,6 +28,7 @@ import com.mybatisflex.core.util.StringUtil;
|
|||||||
import org.apache.ibatis.session.Configuration;
|
import org.apache.ibatis.session.Configuration;
|
||||||
|
|
||||||
import java.lang.reflect.InvocationHandler;
|
import java.lang.reflect.InvocationHandler;
|
||||||
|
import java.lang.reflect.InvocationTargetException;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
public class MapperInvocationHandler implements InvocationHandler {
|
public class MapperInvocationHandler implements InvocationHandler {
|
||||||
@ -72,6 +73,8 @@ public class MapperInvocationHandler implements InvocationHandler {
|
|||||||
clearDbType = true;
|
clearDbType = true;
|
||||||
}
|
}
|
||||||
return method.invoke(mapper, args);
|
return method.invoke(mapper, args);
|
||||||
|
} catch (InvocationTargetException e1) {
|
||||||
|
throw e1.getCause();
|
||||||
} finally {
|
} finally {
|
||||||
if (clearDbType) {
|
if (clearDbType) {
|
||||||
DialectFactory.clearHintDbType();
|
DialectFactory.clearHintDbType();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user