/// <summary> /// 根据客户ID,获取客户对应的分组集合 /// </summary> /// <param name="customerId">客户ID</param> /// <returns></returns> public List <CustomerGroupInfo> GetByCustomer(string customerId) { ICustomerGroup dal = baseDal as ICustomerGroup; return(dal.GetByCustomer(customerId)); }
/// <summary> /// 根据用户,获取树形结构的客户分组列表 /// </summary> /// <param name="creator">创建用户</param> /// <param name="condition">过滤条件,可以根据区域进行过滤</param> public List <CustomerGroupNodeInfo> GetTree(string creator, string condition) { ICustomerGroup dal = baseDal as ICustomerGroup; return(dal.GetTree(creator, condition)); }