using Common; using Interface; using Models; using Models.Entity.LotteryNumDB; using Services; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Business.TrendChart { public static class TrendChartBLL { private static LotteryNumInterface services; static TrendChartBLL() { services= new LotteryService(); } public static List QueryAll() { return services.ToList(); } public static List QueryTrendChartAll() { return services.ToList(); } public static List GetTrendChart(int cid,int tid) { List listexp = new List(); listexp.Add(new EExpression("Cid", "=", cid)); listexp.Add(new EExpression("Tid", "=", tid)); List list = new List(); try { list = services.GetList(null, listexp); } catch (Exception ee) { LogHelper.Error(typeof(TrendChartBLL), ee.Message + "GetTrendChart"); } return list; } public static List GetTrendChart( List cid,List tid) { List listexp = new List(); listexp.Add(new EExpression("Cid", EnumExpression.In, cid)); listexp.Add(new EExpression("Tid", EnumExpression.In, tid)); List list = new List(); try { list = services.GetList(null, listexp); } catch (Exception ee) { LogHelper.Error(typeof(TrendChartBLL), ee.Message + "GetTrendChart"); } return list; } /// /// 获取所有TDK /// /// public static List GetTDKList() { List listexp = new List(); listexp.Add(new EExpression("type", "=", "1")); return services.GetList(null, listexp); } } }