Package com.elitesland.ystdms.sys.config
Class MyBatisEntityListener
java.lang.Object
com.elitesland.ystdms.sys.config.MyBatisEntityListener
- All Implemented Interfaces:
com.mybatisflex.annotation.InsertListener,com.mybatisflex.annotation.Listener,com.mybatisflex.annotation.UpdateListener,Comparable<com.mybatisflex.annotation.Listener>
public class MyBatisEntityListener
extends Object
implements com.mybatisflex.annotation.InsertListener, com.mybatisflex.annotation.UpdateListener
MyBatis-Flex 实体监听器
自动填充创建人、更新人信息
-
Constructor Summary
ConstructorsConstructorDescription无参构造函数,默认启用手机号后四位拼接MyBatisEntityListener(boolean phoneSuffixEnabled) 带参数构造函数,可配置是否拼接手机号后四位 -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mybatisflex.annotation.Listener
compareTo, order
-
Constructor Details
-
MyBatisEntityListener
public MyBatisEntityListener()无参构造函数,默认启用手机号后四位拼接 -
MyBatisEntityListener
public MyBatisEntityListener(boolean phoneSuffixEnabled) 带参数构造函数,可配置是否拼接手机号后四位- Parameters:
phoneSuffixEnabled- 是否拼接手机号后四位
-
-
Method Details
-
onInsert
插入前置处理 自动填充:creator- Specified by:
onInsertin interfacecom.mybatisflex.annotation.InsertListener
-
onUpdate
更新前置处理 自动填充:updater- Specified by:
onUpdatein interfacecom.mybatisflex.annotation.UpdateListener
-