修复代码生成时,tenant_id 默认需要传递的问题

pull/2/head
YunaiV 2022-03-12 15:02:53 +08:00
parent c11a14b9da
commit 5c0e695f34
1 changed files with 3 additions and 1 deletions

View File

@ -51,6 +51,8 @@ public class CodegenBuilder {
.put("image", CodegenColumnHtmlTypeEnum.UPLOAD_IMAGE) .put("image", CodegenColumnHtmlTypeEnum.UPLOAD_IMAGE)
.put("file", CodegenColumnHtmlTypeEnum.UPLOAD_FILE) .put("file", CodegenColumnHtmlTypeEnum.UPLOAD_FILE)
.put("content", CodegenColumnHtmlTypeEnum.EDITOR) .put("content", CodegenColumnHtmlTypeEnum.EDITOR)
.put("description", CodegenColumnHtmlTypeEnum.EDITOR)
.put("demo", CodegenColumnHtmlTypeEnum.EDITOR)
.put("time", CodegenColumnHtmlTypeEnum.DATETIME) .put("time", CodegenColumnHtmlTypeEnum.DATETIME)
.put("date", CodegenColumnHtmlTypeEnum.DATETIME) .put("date", CodegenColumnHtmlTypeEnum.DATETIME)
.build(); .build();
@ -58,7 +60,7 @@ public class CodegenBuilder {
/** /**
* *
*/ */
public static final String TENANT_ID_FIELD = "tenant_id"; public static final String TENANT_ID_FIELD = "tenantId";
/** /**
* {@link cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO} * {@link cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO}
*/ */