替换代码生成模板

This commit is contained in:
不做码农
2021-12-01 14:06:01 +08:00
parent 76b0affa48
commit 995c88cd92
13 changed files with 222 additions and 281 deletions

View File

@@ -151,8 +151,8 @@ namespace ZR.Admin.WebApi.Controllers
BusinessName = CodeGeneratorTool.GetBusinessName(tableName),
FunctionAuthor = ConfigUtils.Instance.GetConfig(GenConstants.Gen_author),
TableName = tableName,
TableComment = string.IsNullOrEmpty(tabInfo.Description) ? tableName : tabInfo.Description,
FunctionName = string.IsNullOrEmpty(tabInfo.Description) ? tableName : tabInfo.Description,
TableComment = tabInfo?.Description,
FunctionName = tabInfo?.Description,
Create_by = userName,
};
genTable.TableId = GenTableService.ImportGenTable(genTable);