|
@@ -9,6 +9,9 @@ package org.eco.vip.orm.domain;
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
|
+import com.fhs.core.trans.anno.Trans;
|
|
|
+import com.fhs.core.trans.constant.TransType;
|
|
|
+import com.fhs.core.trans.vo.TransPojo;
|
|
|
import com.mybatisflex.annotation.Column;
|
|
|
import lombok.Data;
|
|
|
|
|
@@ -18,13 +21,12 @@ import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
- * @description 全局基础类
|
|
|
- *
|
|
|
* @author GaoKunW
|
|
|
+ * @description 全局基础类
|
|
|
* @date 2025/3/9 20:30
|
|
|
*/
|
|
|
@Data
|
|
|
-public class BaseEntity implements Serializable {
|
|
|
+public class BaseEntity implements Serializable, TransPojo {
|
|
|
|
|
|
/**
|
|
|
* 租户编号
|
|
@@ -58,6 +60,7 @@ public class BaseEntity implements Serializable {
|
|
|
/**
|
|
|
* 创建者
|
|
|
*/
|
|
|
+ @Trans(type = TransType.SIMPLE, targetClassName = "org.eco.vip.auth.domain.user.User", fields = "userName", ref = "createByName")
|
|
|
private Long createBy;
|
|
|
|
|
|
/**
|
|
@@ -75,6 +78,7 @@ public class BaseEntity implements Serializable {
|
|
|
/**
|
|
|
* 更新者
|
|
|
*/
|
|
|
+ @Trans(type = TransType.SIMPLE, targetClassName = "org.eco.vip.auth.domain.user.User", fields = "userName", ref = "updateByName")
|
|
|
private Long updateBy;
|
|
|
|
|
|
/**
|