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

Dapper Query和IList

时间:2022-09-20 16:24:59浏览次数:64  
标签:Goods DMList GoodsID IList Query Dapper entity MiaoShaList

Dapper Query和IList

 

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,DMList,GoodsID,IList,Query,Dapper,entity,MiaoShaList
From: https://www.cnblogs.com/jankie1122/p/10766529.html

相关文章

  • dapper Query和 IList
    publicGoodDMGetDMGoods(intGoodsID,intBID){GoodDMentity=newGoodDM();varentity_Goods=bllGoods.GetGoodsDet......
  • 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......