public static List <RoundPlayResponse> GetRoundPlayList(RoundPlayQuery query) { Hashtable ht = new Hashtable(); List <StatementCondition> list = new List <StatementCondition>(); if (query.RoundPlayIds != null && query.RoundPlayIds.Count > 0) { ht.Add("RoundPlayIds", DbUtils.ToWhereInParam(query.RoundPlayIds)); list.Add(new StatementCondition("RoundPlayIds", true)); } if (query.AssociatedArticleId.HasValue) { ht.Add("AssociatedArticleId", query.AssociatedArticleId.Value); list.Add(new StatementCondition("AssociatedArticleId", true)); } if (query.ChannelId.HasValue) { ht.Add("ChannelId", query.ChannelId.Value); list.Add(new StatementCondition("ChannelId", true)); } if (query.ShowCount.HasValue) { ht.Add("Count", query.ShowCount.Value); list.Add(new StatementCondition("Top", true)); } return(DataSources.Default.QueryCollection <RoundPlayResponse>("GetRoundPlay", null, list, ht).ToList()); }
public static List <RoundPlayResponse> GetRoundPlayList(RoundPlayQuery query) { var list = ConfigDal.GetRoundPlayList(query); return(list); }