/// <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> /// <returns></returns> public List <Entity.XH_SpotCosts> GetAllSpotCosts() { try { LogHelper.WriteDebug("Debug-8404获取所有的品种_现货_交易费用方法名称:GetAllSpotCosts()" + DateTime.Now); XH_SpotCostsBLL xH_SpotCostsBLL = new XH_SpotCostsBLL(); return(xH_SpotCostsBLL.GetListArray(string.Empty)); } catch (Exception ex) { string errCode = "GL-8404"; string errMsg = "获取所有的品种_现货_交易费用失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }