/// <summary> /// 根据品种标识返回现货_品种_交易规则 /// </summary> /// <param name="breedClassID">品种标识</param> /// <returns></returns> public Entity.XH_SpotTradeRules GetSpotTradeRulesByBreedClassID(int breedClassID) { try { LogHelper.WriteDebug("Debug-8412根据品种标识返回现货_品种_交易规则方法名称:GetSpotTradeRulesByBreedClassID(int breedClassID)参数是:" + breedClassID + "时间是:" + DateTime.Now); XH_SpotTradeRulesBLL xH_SpotTradeRulesBLL = new XH_SpotTradeRulesBLL(); var list = xH_SpotTradeRulesBLL.GetListArray(string.Format("BreedClassID={0}", breedClassID)); if (list.Count > 0) { Entity.XH_SpotTradeRules xH_SpotTradeRules = list[0]; if (xH_SpotTradeRules != null) { return(xH_SpotTradeRules); } } return(null); } catch (Exception ex) { string errCode = "GL-8412"; 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_SpotTradeRules> GetAllSpotTradeRules() { try { LogHelper.WriteDebug("Debug-8411获取所有的现货_品种_交易规则方法名称:GetAllSpotTradeRules()" + DateTime.Now); XH_SpotTradeRulesBLL xH_SpotTradeRulesBLL = new XH_SpotTradeRulesBLL(); return(xH_SpotTradeRulesBLL.GetListArray(string.Empty)); } catch (Exception ex) { string errCode = "GL-8411"; string errMsg = "获取所有的现货_品种_交易规则失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }