方法增加参数默认值,方便客户端调用
This commit is contained in:
parent
addcd487a9
commit
7290d4a43f
|
@ -21,7 +21,7 @@ namespace Bootstrap.DataAccess
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="pIds"></param>
|
/// <param name="pIds"></param>
|
||||||
/// <returns></returns>
|
/// <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";
|
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 =>
|
var ret = CacheManager.GetOrAdd(TerminalDataKey, CacheSection.RetrieveIntervalByKey(TerminalDataKey), key =>
|
||||||
|
|
Loading…
Reference in New Issue