CCN.Modules.Rewards.DataAccess.RewardsDataAccess.GetMallShopCardTypeNameList C# (CSharp) Метод

GetMallShopCardTypeNameList() публичный Метод

查询该商户下有多少种券
public GetMallShopCardTypeNameList ( string shopid ) : IEnumerable
shopid string 查询条件
Результат IEnumerable
        public IEnumerable<string> GetMallShopCardTypeNameList(string shopid)
        {
            const string sql = "select distinct bc.codename from coupon_card as a inner join base_code as bc on a.cardtype=bc.codevalue and bc.typekey='coupon_type' where shopid = @shopid;";
            return Helper.Query<string>(sql, new { shopid });
        }