From bc76319f28b390ae06207f5bf43d57af0c1d940f Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期四, 25 八月 2022 13:59:41 +0800 Subject: [PATCH] !220 【轻量级Pr】修复角色表实体类非表字段注解缺失 Merge pull request !220 from MichelleChung/dev --- ruoyi-generator/src/main/resources/vm/java/domain.java.vm | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ruoyi-generator/src/main/resources/vm/java/domain.java.vm b/ruoyi-generator/src/main/resources/vm/java/domain.java.vm index 2cf259c..28ca34c 100644 --- a/ruoyi-generator/src/main/resources/vm/java/domain.java.vm +++ b/ruoyi-generator/src/main/resources/vm/java/domain.java.vm @@ -2,7 +2,7 @@ import com.baomidou.mybatisplus.annotation.*; import lombok.Data; -import lombok.NoArgsConstructor; +import lombok.EqualsAndHashCode; import java.io.Serializable; import java.util.Date; import java.math.BigDecimal; @@ -25,9 +25,10 @@ #if($table.crud || $table.sub) #set($Entity="BaseEntity") #elseif($table.tree) - #set($Entity="TreeEntity") + #set($Entity="TreeEntity<${ClassName}>") #end @Data +@EqualsAndHashCode(callSuper = true) @TableName("${tableName}") public class ${ClassName} extends ${Entity} { -- Gitblit v1.9.3