方法增加参数默认值,方便客户端调用

This commit is contained in:
Argo-Lenovo 2016-10-21 15:18:54 +08:00
parent addcd487a9
commit 7290d4a43f
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ namespace Bootstrap.DataAccess
/// </summary>
/// <param name="pIds"></param>
/// <returns></returns>
public static IEnumerable<Terminal> RetrieveTerminals(string tId)
public static IEnumerable<Terminal> RetrieveTerminals(string tId = null)
{
string sql = "select t.*, tc.RuleID, r.Name RuleName from Terminals t left join TerminalRuleConfig tc on t.ID = tc.TerminalId left join Rules r on tc.RuleId = r.Id order by t.Name";
var ret = CacheManager.GetOrAdd(TerminalDataKey, CacheSection.RetrieveIntervalByKey(TerminalDataKey), key =>