当前位置: 首页 > news >正文

中科汇联网站建设手册上海公司名称注册查询网

中科汇联网站建设手册,上海公司名称注册查询网,wordpress速度和cms,保定网站开发接口想要提高查询速度#xff0c;需要减少查询数据库的次数#xff0c;需要把循环里面的查询提出来一次性查询完毕#xff0c;然后通过java代码来获取响应的值。如下所示#xff1a; ListOrderInfoHtVO orderInfoList orderInfoService.getOrderInfoHtlist(query…接口想要提高查询速度需要减少查询数据库的次数需要把循环里面的查询提出来一次性查询完毕然后通过java代码来获取响应的值。如下所示 ListOrderInfoHtVO orderInfoList orderInfoService.getOrderInfoHtlist(query);if(CollectionUtils.isNotEmpty(orderInfoList)){ListInteger orderIdList orderInfoList.stream().map(OrderInfoHtVO::getOrderId) .collect(Collectors.toList());ListString orderNoList orderInfoList.stream().map(OrderInfoHtVO::getOrderNumber) .collect(Collectors.toList());ListInvoiceStatusVO invoiceStatusVOList applayInvoiceInfoService. getInvoiceStatusByOrderList(orderIdList,orderNoList,orderInfoList);MapInteger,ListInvoiceStatusVO invoiceStatusVOMap invoiceStatusVOList.stream(). collect(Collectors.groupingBy(InvoiceStatusVO::getOrderId));ListApplayInvoiceHongChongCountVO applayInvoiceHongChongCountVOList applayInvoiceInfoService .searchApplayInvoiceHongChongCountListByOrderNoList(orderNoList);MapString,ListApplayInvoiceHongChongCountVO applayInvoiceHongChongCountVOMap applayInvoiceHongChongCountVOList.stream() .collect(Collectors.groupingBy(ApplayInvoiceHongChongCountVO::getOrderNo));ListPackageGoodsCountVO packageGoodsCountVOList orderInfoService .searchPackageGoodsCountListByOrderIdList(orderIdList);MapInteger,ListPackageGoodsCountVO packageGoodsCountVOMap packageGoodsCountVOList.stream() .collect(Collectors.groupingBy(PackageGoodsCountVO::getOrderId));for (OrderInfoHtVO orderInfoHtVO : orderInfoList) {if(CollectionUtils.isNotEmpty(invoiceStatusVOMap.get(orderInfoHtVO.getOrderId()))){orderInfoHtVO.setInvoiceStatus(invoiceStatusVOMap.get(orderInfoHtVO.getOrderId()).get(0).getInvoiceStatus()); }else{orderInfoHtVO.setInvoiceStatus(0); }if(CollectionUtils.isNotEmpty(applayInvoiceHongChongCountVOMap.get(orderInfoHtVO.getOrderNumber()))){orderInfoHtVO.setIsHongChong(applayInvoiceHongChongCountVOMap.get(orderInfoHtVO.getOrderNumber()).get(0).getIsHongChong()); }else{orderInfoHtVO.setIsHongChong(0); }if(CollectionUtils.isNotEmpty(packageGoodsCountVOMap.get(orderInfoHtVO.getOrderId()))){orderInfoHtVO.setIsPackage(packageGoodsCountVOMap.get(orderInfoHtVO.getOrderId()).get(0).getIsPackage()); }else{orderInfoHtVO.setIsPackage(0); }}}
http://www.w-s-a.com/news/993015/

相关文章:

  • 网站建设电子商务课总结和体会关于做网站书籍
  • 仪征网站建设公司哪家好简单网页制作素材图片
  • 甘肃第九建设集团公司网站潍坊个人做网站
  • 如何做后台网站的教程网站建设 关于我们
  • 极速网站建设哪家好连云港百度推广网站建设
  • 医院网站建设的目标wordpress中英文网站模板
  • 门户型网站开发难度网站导航栏有哪些
  • 推荐做任务网站软件定制开发哪家好
  • 邯郸兄弟建站第三方仓储配送公司
  • 商丘家具网站建设wordpress 添加代码
  • 基础建设的网站有哪些内容成都科技网站建设咨询电话
  • 券多多是谁做的网站招聘网站开发模板
  • 网站主机一般选哪种的企业数字展厅
  • 网站建设该如何学衡水建设局网站首页
  • 高校网站建设工作总结番禺网站开发哪家好
  • 苏州 网站的公司wordpress主页代码
  • 怎么用html做图片展示网站外贸网站建设推广费用
  • 可以做本地生活服务的有哪些网站中油七建公司官网
  • 如何建设谷歌网站网站建设优点
  • 做网站的目标是什么产品宣传片制作公司
  • 柳州建设公司网站辽宁建设工程信息网评标专家入库
  • 合肥建设学校官方网站excel导入wordpress
  • 禹城网站设计做网站需要考虑哪些
  • 深圳做营销网站建设wordpress添加文章封面
  • 阿里云的网站建设方案织梦和wordpress哪个安全
  • 聊城网站建设公司电话wordpress怎么重新配置文件
  • 创业如何进行网站建设泰州公司注册
  • 免费网站建设培训学校手机百度高级搜索入口在哪里
  • 建站经验安徽六安发现一例新冠阳性检测者
  • 滨州内做网站系统的公司汕头网络营销公司