优化代码生成

This commit is contained in:
izory
2021-09-19 20:50:49 +08:00
parent 08c989d73d
commit 06ec7b0ddc
7 changed files with 67 additions and 66 deletions

View File

@@ -183,7 +183,7 @@ namespace ZR.Admin.WebApi.Controllers
ModuleName = "bus",
ClassName = CodeGeneratorTool.GetClassName(tableName),
BusinessName = CodeGeneratorTool.GetClassName(tableName),
FunctionAuthor = ConfigUtils.Instance.GetConfig(OptionsSetting.Gen_author),
FunctionAuthor = ConfigUtils.Instance.GetConfig(GenConstants.Gen_author),
FunctionName = tabInfo.Description,
TableName = tableName,
TableComment = tabInfo.Description,
@@ -211,8 +211,8 @@ namespace ZR.Admin.WebApi.Controllers
IsIncrement = column.IsIdentity,
Create_by = userName,
Create_time = DateTime.Now,
IsInsert = true,
IsEdit = true,
IsInsert = !column.IsIdentity && !column.IsPrimarykey,
IsEdit = !column.IsIdentity && !column.IsPrimarykey,
IsList = true,
IsQuery = false,
HtmlType = GenConstants.HTML_INPUT