Exemple #1
0
 /// <summary>
 /// 插入限购数据
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int InsertProductLimitCount(ProductLimitCountEntity model)
 {
     try
     {
         return(DALProductLimit.InsertProductLimitCount(model));
     }
     catch (Exception ex)
     {
         logger.Error("InsertProductLimitCount", ex);
     }
     return(0);
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public ProductLimitCountEntity FetchProductLimitCount(ProductLimitCountEntity model)
 {
     try
     {
         return(DALProductLimit.FetchProductLimitCount(model));
     }
     catch (Exception ex)
     {
         logger.Error("FetchProductLimitCount", ex);
         return(new ProductLimitCountEntity());
     }
 }
Exemple #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="category"></param>
 /// <param name="level"></param>
 /// <returns></returns>
 public ProductLimitCountEntity GetModelByName(string category, int level)
 {
     try
     {
         return(DALProductLimit.GetModelByName(category, level));
     }
     catch (Exception ex)
     {
         logger.Error("GetLimitCountByCategoryName", ex);
         return(new ProductLimitCountEntity());
     }
 }
Exemple #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool UpdateProductLimitCount(ProductLimitCountEntity model)
 {
     try
     {
         return(DALProductLimit.UpdateProductLimitCount(model));
     }
     catch (Exception ex)
     {
         logger.Error("UpdateProductLimitCount", ex);
     }
     return(false);
 }
Exemple #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="category"></param>
 /// <param name="pageIndex"></param>
 /// <param name="pageSize"></param>
 /// <param name="sqlWhere"></param>
 /// <returns></returns>
 public List <ProductLimitCountEntity> GetProductListByCategory(string category, int pageIndex, int pageSize, string sqlWhere, out int total)
 {
     try
     {
         return(DALProductLimit.GetProductListByCategory(category, pageIndex, pageSize, sqlWhere, out total));
     }
     catch (Exception ex)
     {
         total = 0;
         logger.Error("GetProductListByCategory", ex);
         return(new List <ProductLimitCountEntity>());
     }
 }