修改service方法

This commit is contained in:
不做码农
2021-10-17 17:36:25 +08:00
parent 9980386e9c
commit 86ee45f4e3
4 changed files with 4 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ namespace ZR.Service.System
/// <returns></returns>
public int DeleteGenTableByTbName(string tableName)
{
return GenTableRepository.Delete(f => f.TableName == tableName) ? 1 : 0;
return GenTableRepository.Delete(f => f.TableName == tableName);
}
/// <summary>
@@ -54,7 +54,7 @@ namespace ZR.Service.System
/// <returns></returns>
public GenTable GetGenTableInfo(long tableId)
{
return GenTableRepository.GetById(tableId);
return GenTableRepository.GetId(tableId);
}
/// <summary>