/// <summary> /// 根据品种标识返回品种_现货_交易费用 /// </summary> /// <param name="breedClassID">品种标识</param> /// <returns></returns> public Entity.XH_SpotCosts GetSpotCostsByBreedClassID(int breedClassID) { try { LogHelper.WriteDebug("Debug-8405根据品种标识返回品种_现货_交易费用方法名称:GetSpotCostsByBreedClassID(int breedClassID)参数是:" + breedClassID + "时间是:" + DateTime.Now); XH_SpotCostsBLL xH_SpotCostsBLL = new XH_SpotCostsBLL(); //Entity.XH_SpotCosts xH_SpotCosts = // xH_SpotCostsBLL.GetListArray(string.Format("BreedClassID={0}", breedClassID))[0]; List <Entity.XH_SpotCosts> xH_SpotCostsList = xH_SpotCostsBLL.GetListArray(string.Format("BreedClassID={0}", breedClassID)); if (xH_SpotCostsList.Count > 0) { Entity.XH_SpotCosts xH_SpotCosts = xH_SpotCostsList[0]; if (xH_SpotCosts != null) { return(xH_SpotCosts); } } return(null); } catch (Exception ex) { string errCode = "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 Update(ManagementCenter.Model.XH_SpotCosts model) { try { return(xH_SpotCostsDAL.Update(model)); } catch (Exception ex) { string errCode = "GL-5502"; 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 UpdateSpotCosts(ManagementCenter.Model.XH_SpotCosts model) { XH_SpotCostsBLL xH_SpotCostsBLL = new XH_SpotCostsBLL(); return(xH_SpotCostsBLL.Update(model)); }