类 MyBatisEntityListener
java.lang.Object
com.elitesland.ystdms.sys.config.MyBatisEntityListener
- 所有已实现的接口:
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 实体监听器
自动填充创建人、更新人信息
-
构造器详细资料
-
MyBatisEntityListener
public MyBatisEntityListener()无参构造函数,默认启用手机号后四位拼接 -
MyBatisEntityListener
public MyBatisEntityListener(boolean phoneSuffixEnabled) 带参数构造函数,可配置是否拼接手机号后四位- 参数:
phoneSuffixEnabled- 是否拼接手机号后四位
-
-
方法详细资料
-
onInsert
插入前置处理 自动填充:creator- 指定者:
onInsert在接口中com.mybatisflex.annotation.InsertListener
-
onUpdate
更新前置处理 自动填充:updater- 指定者:
onUpdate在接口中com.mybatisflex.annotation.UpdateListener
-