/// <summary> /// 根据品种标识返回港股_交易费用 /// </summary> /// <param name="breedClassID">品种标识</param> /// <returns></returns> public Entity.HK_SpotCosts GetHKSpotCostsByBreedClassID(int breedClassID) { try { LogHelper.WriteDebug("Debug-8609根据品种标识返回港股_交易费用方法名称:GetHKSpotCostsByBreedClassID(int breedClassID)参数是:" + breedClassID + "时间是:" + DateTime.Now); HK_SpotCostsBLL hK_SpotCostsBLL = new HK_SpotCostsBLL(); List <Entity.HK_SpotCosts> hK_SpotCostsList = hK_SpotCostsBLL.GetListArray(string.Format("BreedClassID={0}", breedClassID)); if (hK_SpotCostsList.Count > 0) { Entity.HK_SpotCosts hK_SpotCosts = hK_SpotCostsList[0]; if (hK_SpotCosts != null) { return(hK_SpotCosts); } } return(null); } catch (Exception ex) { string errCode = "GL-8609";// "GL-8405"; string errMsg = "根据品种标识返回港股_交易费用失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }
/// <summary> /// 更新港股交易费用 /// </summary> /// <param name="model">港股交易费用实体</param> /// <returns></returns> public bool UpdateHKSpotCosts(ManagementCenter.Model.HK_SpotCosts model) { try { return(hK_SpotCostsDAL.Update(model)); } catch (Exception ex) { string errCode = "GL-7852"; string errMsg = " 更新港股交易费用失败!"; VTException exception = new VTException(errCode, errMsg, ex); LogHelper.WriteError(exception.ToString(), exception.InnerException); return(false); } }
/// <summary> /// 更新港股交易费用 /// </summary> /// <param name="model">港股交易费用实体</param> /// <returns></returns> public static bool UpdateHKSpotCosts(ManagementCenter.Model.HK_SpotCosts model) { HK_SpotCostsBLL hK_SpotCostsBLL = new HK_SpotCostsBLL(); return(hK_SpotCostsBLL.UpdateHKSpotCosts(model)); }