예제 #1
0
 /// <summary>
 /// 根据batchId查询批次信息
 /// </summary>
 /// <param name="batchId"></param>
 /// <returns></returns>
 public static ThirdPartyCodeBatch SelectBatch(Guid batchId)
 {
     try
     {
         return(DalThirdPartyExchangeCode.SelectBatch(batchId));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new ThirdPartyMallConfigException(1, "SelectBatch", ex);
         Logger.Log(Level.Error, exception, "SelectBatch");
         throw ex;
     }
 }
예제 #2
0
 /// <summary>
 /// 判断是否有重复顺序
 /// </summary>
 /// <param name="batchId"></param>
 /// <returns></returns>
 public static int SortChange(int sort)
 {
     try
     {
         return(DalThirdPartyExchangeCode.SortChange(sort));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new ThirdPartyMallConfigException(1, "SortChange", ex);
         Logger.Log(Level.Error, exception, "SortChange");
         throw ex;
     }
 }
예제 #3
0
 /// <summary>
 /// 编辑兑换码批次记录
 /// </summary>
 /// <param name="codeBatch"></param>
 /// <returns></returns>
 public static int UpdateBatches(ThirdPartyCodeBatch codeBatch)
 {
     try
     {
         return(DalThirdPartyExchangeCode.UpdateBatches(codeBatch));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new ThirdPartyExchangerCodeException(1, "UpdateBatches", ex);
         Logger.Log(Level.Error, exception, "UpdateBatches");
         throw ex;
     }
 }
예제 #4
0
 /// <summary>
 /// 搜索兑换码批次信息
 /// </summary>
 /// <returns></returns>
 public static List <ThirdPartyCodeBatch> SelectBatches(SerchElement serchElement)
 {
     try
     {
         return(DalThirdPartyExchangeCode.SelectBatches(serchElement));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new ThirdPartyExchangerCodeException(1, "SelectBatches", ex);
         Logger.Log(Level.Error, exception, "SelectBatches");
         throw ex;
     }
 }
예제 #5
0
 /// <summary>
 ///更新库存
 /// </summary>
 /// <param name="pkid"></param>
 /// <param name="batchQty"></param>
 /// <param name="stockQty"></param>
 /// <returns></returns>
 public static int UpdateQty(int pkid, int batchQty, int stockQty)
 {
     try
     {
         return(DalThirdPartyExchangeCode.UpdateQty(pkid, batchQty, stockQty));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new ThirdPartyExchangerCodeException(1, "UpdateQty", ex);
         Logger.Log(Level.Error, exception, "UpdateQty");
         throw ex;
     }
 }
예제 #6
0
 /// <summary>
 /// 搜索兑换码批次信息
 /// </summary>
 /// <returns></returns>
 public static List <Tuhu.Provisioning.DataAccess.Entity.ThirdPartyExchangeCode> SelectExchangCode(SerchCodeElement serchElement)
 {
     try
     {
         return(DalThirdPartyExchangeCode.SelectExchangCode(serchElement));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new ThirdPartyExchangerCodeException(1, "SelectExchangCode", ex);
         Logger.Log(Level.Error, exception, "SelectExchangCode");
         throw ex;
     }
 }
예제 #7
0
 /// <summary>
 /// 批次导入兑换码
 /// </summary>
 /// <param name="exchangeCode"></param>
 /// <returns></returns>
 public static int InsertExchangeCode(DataAccess.Entity.ThirdPartyExchangeCode exchangeCode)
 {
     try
     {
         return(DalThirdPartyExchangeCode.InsertExchangeCode(exchangeCode));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new ThirdPartyExchangerCodeException(1, "InsertExchangeCode", ex);
         Logger.Log(Level.Error, exception, "InsertExchangeCode");
         throw ex;
     }
 }