/// <summary> /// 获取数量 /// </summary> /// <param name="userName"></param> /// <returns></returns> public int GetCount(string where) { UsersBLL bll = new UsersBLL(); string decodeWhere = Common.Base64ToString(where); string newWhere = Common.Where2Query <Roles>(decodeWhere); return(bll.Count(newWhere)); }