优化代码生成
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user