12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- 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<DT_Lottery> QueryAll()
- {
- return services.ToList<DT_Lottery>();
-
- }
- public static List<DT_TrendChart> QueryTrendChartAll()
- {
- return services.ToList<DT_TrendChart>();
- }
- public static List<DT_TrendChart> GetTrendChart(int cid,int tid)
- {
- List<EExpression> listexp = new List<EExpression>();
- listexp.Add(new EExpression("Cid", "=", cid));
- listexp.Add(new EExpression("Tid", "=", tid));
- List<DT_TrendChart> list = new List<DT_TrendChart>();
- try
- {
- list = services.GetList<DT_TrendChart>(null, listexp);
- }
- catch (Exception ee)
- {
- LogHelper.Error(typeof(TrendChartBLL), ee.Message + "GetTrendChart");
- }
- return list;
- }
- public static List<DT_TrendChart> GetTrendChart( List<int> cid,List<int> tid)
- {
- List<EExpression> listexp = new List<EExpression>();
- listexp.Add(new EExpression("Cid", EnumExpression.In, cid));
- listexp.Add(new EExpression("Tid", EnumExpression.In, tid));
- List<DT_TrendChart> list = new List<DT_TrendChart>();
- try
- {
- list = services.GetList<DT_TrendChart>(null, listexp);
- }
- catch (Exception ee)
- {
- LogHelper.Error(typeof(TrendChartBLL), ee.Message + "GetTrendChart");
- }
- return list;
- }
- /// <summary>
- /// 获取所有TDK
- /// </summary>
- /// <returns></returns>
- public static List<L_TDK> GetTDKList()
- {
- List<EExpression> listexp = new List<EExpression>();
- listexp.Add(new EExpression("type", "=", "1"));
- return services.GetList<L_TDK>(null, listexp);
- }
- }
- }
|