Bläddra i källkod

fixed gitee issues/IHH83

= 7 år sedan
förälder
incheckning
0d19d258db

+ 2 - 0
mybatis-plus-generate/src/main/resources/templates/entity.java.ftl

@@ -24,7 +24,9 @@ import lombok.experimental.Accessors;
  */
 <#if entityLombokModel>
 @Data
+<#if superEntityClass??>
 @EqualsAndHashCode(callSuper = true)
+</#if>
 @Accessors(chain = true)
 </#if>
 <#if table.convert>

+ 2 - 0
mybatis-plus-generate/src/main/resources/templates/entity.java.vm

@@ -22,7 +22,9 @@ import lombok.experimental.Accessors;
  */
 #if(${entityLombokModel})
 @Data
+#if(${superEntityClass})
 @EqualsAndHashCode(callSuper = true)
+#end
 @Accessors(chain = true)
 #end
 #if(${table.convert})