From 093a918b84e5d46e12d5405a5ff754d87673ae59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?MOSHOW=E9=83=91=E9=94=B4?= Date: Sat, 16 Jan 2021 20:23:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Did=E9=94=99=E4=BD=8D=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/code-generator/mybatis-plus/plusentity.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-web/src/main/resources/templates/code-generator/mybatis-plus/plusentity.ftl b/generator-web/src/main/resources/templates/code-generator/mybatis-plus/plusentity.ftl index dedeb92..2cb9d33 100644 --- a/generator-web/src/main/resources/templates/code-generator/mybatis-plus/plusentity.ftl +++ b/generator-web/src/main/resources/templates/code-generator/mybatis-plus/plusentity.ftl @@ -19,13 +19,13 @@ public class ${classInfo.className} implements Serializable { private static final long serialVersionUID = 1L; + @TableId(type = IdType.AUTO) <#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0> <#list classInfo.fieldList as fieldItem > <#if isComment?exists && isComment==true>/** * ${fieldItem.fieldComment} */<#if isSwagger?exists && isSwagger==true> @ApiModelProperty("${fieldItem.fieldComment}") - @TableId(type = IdType.AUTO) private ${fieldItem.fieldClass} ${fieldItem.fieldName}; <#if isLombok?exists && isLombok==false>