:zap:代码生成优化

This commit is contained in:
不做码农
2023-12-09 12:57:03 +08:00
parent 1316e14664
commit dc6f41d96e
9 changed files with 86 additions and 74 deletions
+2 -2
View File
@@ -38,10 +38,10 @@ namespace ZR.Model.System.Dto
public string Sql { get; set; }
[ExcelColumn(Name = "变更前数据", Width = 30)]
public string BeforeData { get; set; }
public string BeforeData { get; set; } = string.Empty;
[ExcelColumn(Name = "变更后数据", Width = 30)]
public string AfterData { get; set; }
public string AfterData { get; set; } = string.Empty;
[ExcelColumn(Name = "操作用户名")]
public string UserName { get; set; }
+1 -1
View File
@@ -48,7 +48,7 @@ namespace ZR.ServiceCore.Services
if (info != null)
{
info.Columns = GenTableColumnService.GenTableColumns(tableId);
if (!info.SubTableName.IsEmpty() && info.SubTable != null)
if (!info.SubTableName.IsEmpty())
{
info.SubTable = Queryable().Where(f => f.TableName == info.SubTableName).First();
info.SubTable.Columns = GenTableColumnService.GenTableColumns(info.SubTable.TableId);