新增加子表列查询数据

This commit is contained in:
不做码农 2023-02-13 11:10:50 +08:00
parent 723ba3e313
commit 9e914f3204

View File

@ -50,10 +50,11 @@ namespace ZR.Service.System
/// <returns></returns> /// <returns></returns>
public GenTable GetGenTableInfo(long tableId) public GenTable GetGenTableInfo(long tableId)
{ {
var info = GetId(tableId); GenTable info = GetId(tableId);
if (info != null && !info.SubTableName.IsEmpty()) if (info != null && !info.SubTableName.IsEmpty())
{ {
info.SubTable = Queryable().Where(f => f.TableName == info.SubTableName).First(); info.SubTable = Queryable().Where(f => f.TableName == info.SubTableName).First();
info.SubTable.Columns = GenTableColumnService.GenTableColumns(info.SubTable.TableId);
} }
return info; return info;
} }