123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
-
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using Models.Entity.LottomatBaseDB;
- using Services;
- using Models;
- using Interface;
- using Common;
- namespace Business.SS
- {
- public class SS_SSListBLL
- {
- static BaseInterface service;
- // private static LogHelper log = null;
- static SS_SSListBLL()
- {
- // log = new LogHelper();
- service = new ZXServic();
- }
- /// <summary>
- /// 根据分类Id得到缩水工具集合
- /// </summary>
- /// <param name="id">分类ID</param>
- /// <returns></returns>
- public static List<Base_Tools> GetSSListByCateId(string id)
- {
- List<EExpression> listexp = new List<EExpression>();
- listexp.Add(new EExpression("CategoryId", "=", id));
- List<Base_Tools> list = new List<Base_Tools>();
- try
- {
- list = service.GetList<Base_Tools>(null, listexp);
- }
- catch (Exception ee)
- {
- LogHelper.Error(typeof(SS_SSListBLL), ee.Message + "GetSSListByCateId");
- }
- return list;
- }
- public static List<Base_Tools> GetSSListByCateId(List<string> ids)
- {
- List<EExpression> listexp = new List<EExpression>();
- listexp.Add(new EExpression("CategoryId", EnumExpression.In, ids));
- List<Base_Tools> list = new List<Base_Tools>();
- try
- {
- list = service.GetList<Base_Tools>(null, listexp);
- }
- catch (Exception ee)
- {
- LogHelper.Error(typeof(SS_SSListBLL), ee.Message + "GetSSListByCateId");
- }
- return list;
- }
- public static Base_Tools GetToolById(string id)
- {
- return service.QueryItembyKey<Base_Tools>(id);
- }
- }
- }
|