首页 > 其他分享 >dapper Query和 IList

dapper Query和 IList

时间:2022-09-20 16:22:18浏览次数:58  
标签:Goods int DMList GoodsID IList Query dapper entity MiaoShaList

        public GoodDM GetDMGoods(int GoodsID, int BID)
        {
            GoodDM entity = new GoodDM();
            var entity_Goods = bllGoods.GetGoodsDetail(GoodsID, BID);
            if (entity_Goods != null && entity_Goods.GoodsID != 0)
            {
                entity.Detaile = entity_Goods;
                IList<TM.SOA.Entity.DM.DM> Goods_DMList = new List<TM.SOA.Entity.DM.DM>();
                Goods_DMList = GetDMListByGoods(BID,GoodsID,true);//查询得到的过滤过期的DM
                var MiaoShaList = Goods_DMList.Where(p => p.Type == (int)DMEnum.miao).ToList();
                if (MiaoShaList != null && MiaoShaList.Count > 0)
                {//如果商品存在秒杀,直接返回秒杀
                    entity.IsMiao = true;
                    entity.DMList = MiaoShaList;
                    return entity;
                }
                entity.DMList = Goods_DMList;
            }
            entity.IsMiao = false;
            return entity;
        }

 

搜索

复制

标签:Goods,int,DMList,GoodsID,IList,Query,dapper,entity,MiaoShaList
From: https://www.cnblogs.com/jankie1122/p/11079775.html

相关文章

  • vue-router query和params 传参和接收参数
    1、params方式传递和接收参数//传参this.$router.push({name:'checkDetailInfo',params:{fkdNum:fkdNum,jyayStr:jyayStr,......
  • JQuery 操作指南_1
    $(this).hide()演示jQueryhide()函数,隐藏当前的HTML元素。$("#test").hide()演示jQueryhide()函数,隐藏id="test"的元素。$("p").hide()......
  • jQuery伪造post请求
     导出使用场景:当前端需要传非常多的参数数据,就需要用到post导出get请求:window.location.href="/CustomOrder/MapRowLinePlan/PlanUseCommunityDown?appCode=CTMS&dat......
  • Adaptive Importance Sampling to Accelerate Training of a Neural Probabilistic La
    目录概符号说明Motivation本文方法更简洁的形式BengioY.andSen\acute{e}calJ.S.Adaptiveimportancesamplingtoacceleratetrainingofaneuralprobabilistic......
  • cypress安装时npm报错:npm WARN deprecated [email protected]: The querystring API
    处理方法一:更新npm版本:npminstall-gnpm使用淘宝镜像重新安装依赖:npminstall--registry=https://registry.npm.taobao.orgnpminstall-gcnpm--registry=https......
  • jquery 操作样式
    <!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>Title</title><scriptsrc="node_modules/jquery/dist/jquery.min.js"></script>......
  • jquery操作class
    <!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>Title</title><scriptsrc="node_modules/jquery/dist/jquery.min.js"></script>......
  • jquery操作内容
    <!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>Title</title><scriptsrc="node_modules/jquery/dist/jquery.min.js"></script>......
  • jQuery-强大的jQuery选择器 (详解)
    jq除常用的选择写法之外的更多方法记录。原文:jQuery-强大的jQuery选择器(详解)[转]1.基础选择器 Basics名称说明举例#id根据元素Id选择$("divId")选择ID......
  • Static Query on Tree (述链剖分+线段树)(2022杭电多校)
    题意:给定一棵树,nn 个结点。根为 11,所有的结点只能走向其父亲结点。有 qq 次询问,每次询问给出 33 个结点集合 A,B,CA,B,C。问树上有多少点满足如下条件:该点可以......