fix代码生成问题

This commit is contained in:
不做码农
2022-05-09 18:55:03 +08:00
parent d6cd248e10
commit 387d69a8f2
3 changed files with 6 additions and 3 deletions

View File

@@ -60,7 +60,10 @@ namespace ZR.Service.System
if (info != null && !info.SubTableName.IsEmpty())
{
info.SubTable = GenTableRepository.Queryable().Where(f => f.SubTableName == info.TableName).First();
SetTableFromOptions(info?.SubTable);
if (info?.SubTable != null)
{
SetTableFromOptions(info?.SubTable);
}
}
return info;
}