/// <summary> /// 获得数据列表 /// </summary> public IList <Wuyiju.Model.DepositBankCard> GetList(Wuyiju.Model.DepositBankCard.Query filter) { StringBuilder sql = new StringBuilder(@"select * from ec_deposit_bank_card where 1 = 1 "); DynamicParameters param = new DynamicParameters(); sql.AndEquals("user_id"); if (filter != null) { param.AddDynamicParams(filter); } return(db.GetList <Wuyiju.Model.DepositBankCard>(sql, param)); }
/// <summary> /// 获得前几行数据 /// </summary> public IList <Wuyiju.Model.DepositBankCard> GetList(Wuyiju.Model.DepositBankCard.Query filter, int?limit = null) { StringBuilder sql = new StringBuilder(@"select * from ec_deposit_bank_card where 1 = 1 "); if (limit != null) { sql.Append(" limit @rows "); } DynamicParameters param = new DynamicParameters(); if (filter != null) { param.AddDynamicParams(filter); } if (limit != null) { param.Add("rows", limit); } return(db.GetList <Wuyiju.Model.DepositBankCard>(sql, param)); }
/// <summary> /// 获得前几行数据 /// </summary> public IList <Wuyiju.Model.DepositBankCard> GetList(Wuyiju.Model.DepositBankCard.Query query, int?limit = null) { return(dao.GetList(query, limit)); }
/// <summary> /// 获得数据列表 /// </summary> public IList <Wuyiju.Model.DepositBankCard> GetList(Wuyiju.Model.DepositBankCard.Query query) { return(dao.GetList(query)); }