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

建设数据库网站需要哪些设备网络营销心得体会800字

建设数据库网站需要哪些设备,网络营销心得体会800字,白领兼职做网站,网页网络优化💝💝💝欢迎来到我的博客,很高兴能够在这里和您见面!希望您在这里可以感受到一份轻松愉快的氛围,不仅可以获得有趣的内容和知识,也可以畅所欲言、分享您的想法和见解。 推荐:kwan 的首页,持续学…

💝💝💝欢迎来到我的博客,很高兴能够在这里和您见面!希望您在这里可以感受到一份轻松愉快的氛围,不仅可以获得有趣的内容和知识,也可以畅所欲言、分享您的想法和见解。
img

  • 推荐:kwan 的首页,持续学习,不断总结,共同进步,活到老学到老
  • 导航
    • 檀越剑指大厂系列:全面总结 java 核心技术点,如集合,jvm,并发编程 redis,kafka,Spring,微服务,Netty 等
    • 常用开发工具系列:罗列常用的开发工具,如 IDEA,Mac,Alfred,electerm,Git,typora,apifox 等
    • 数据库系列:详细总结了常用数据库 mysql 技术点,以及工作中遇到的 mysql 问题等
    • 懒人运维系列:总结好用的命令,解放双手不香吗?能用一个命令完成绝不用两个操作
    • 数据结构与算法系列:总结数据结构和算法,不同类型针对性训练,提升编程思维,剑指大厂

非常期待和您一起在这个小小的网络世界里共同探索、学习和成长。💝💝💝 ✨✨ 欢迎订阅本专栏 ✨✨

博客目录

      • 1.汇总数据
      • 2.分组求和
      • 3.内存分页
      • 4.判断集合为空
      • 5.并行处理
      • 6.获取字符中数据
      • 7.判断相同的元素
      • 8.list 是否重复
      • 9.数据去重

1.汇总数据

homeSkuTotal.setTotal7SalQty(tags.stream().mapToInt(item -> Objects.nonNull(item.getTotal7SalQty()) ? item.getTotal7SalQty() : 0).sum());
 if (CollectionUtils.isNotEmpty(homeSkuTotalOrr)) {homeSkuTotalOrr.stream().mapToInt(AdsDayOrrDO::getOrderNotArriveQty).sum();
}

2.分组求和

分组求最大值再求和

 if (CollectionUtils.isNotEmpty(homeSkuTotalOrr)) {final Collection<Optional<AdsDayOrrDO>> values = homeSkuTotalOrr.stream().collect(Collectors.groupingBy(AdsDayOrrDO::getProductKey, Collectors.maxBy(Comparator.comparing(AdsDayOrrDO::getPeriodSdate)))).values();homeSkuTotalDTO.setOrderNotArriveQty(values.stream().mapToInt(item -> item.get().getOrderNotArriveQty()).sum());homeSkuTotalDTO.setReplenishNotArriveQty(values.stream().mapToInt(item -> item.get().getReplenishNotArriveQty()).sum());}

3.内存分页

pageBean.setTotalElements(tags.size());pageBean.setTotalPages(tags.size() / pageQuery.getSize() + (tags.size() % pageQuery.getSize() == 0 ? 0 : 1));pageBean.setSize(pageQuery.getSize());pageBean.setNumber(pageQuery.getPage());pageBean.setContent(tags.stream().skip((pageQuery.getPage() - 1) * pageQuery.getSize()).limit(pageQuery.getSize()).collect(Collectors.toList()));pageBean.setNumberOfElements(CollectionUtils.isNotEmpty(pageBean.getContent()) ? pageBean.getContent().size() : 0L);

4.判断集合为空

CollectionUtils.isNotEmpty({a,b}): true
<dependency><groupId>commons-collections</groupId><artifactId>commons-collections</artifactId><version>3.2.2</version>
</dependency>

5.并行处理

@Test
public void test15() {// 调用 parallelStream 方法即能并行处理List<String> names = properties.parallelStream().filter(p -> p.priceLevel < 4).sorted(Comparator.comparingInt(Property::getDistance)).map(Property::getName).limit(2).collect(Collectors.toList());System.out.println(JSON.toJSONString(names));
}

6.获取字符中数据

//博客浏览量未达成
final int x = message.indexOf("需要");
String str = message.substring(x + 2, x + 7);
for (int i = str.length() - 1; i >= 0; i--) {char lastChar = str.charAt(i);if (Character.isDigit(lastChar)) {// 字符不是数字,舍去最后一位字符str = str.substring(0, i + 1);break;}
}

7.判断相同的元素

public class Java8_06_Stream_Same {public static void main(String[] args) {// 老师集合List<Teacher> teachers = Arrays.asList(new Teacher(1L, "张三"),new Teacher(2L, "李四"),new Teacher(3L, "王五"),new Teacher(4L, "赵六"));// 学生集合List<Student> students = Arrays.asList(new Student(5L, "张三"),new Student(6L, "李四"),new Student(7L, "小红"),new Student(8L, "小明"));// 求同时出现在老师集合和学生集合中的人数,name相同即视为同一个人int size = (int) teachers.stream().map(t -> students.stream().filter(s -> Objects.nonNull(t.getName()) && Objects.nonNull(s.getName()) && Objects.equals(t.getName(), s.getName())).findAny().orElse(null)).filter(Objects::nonNull).count();// 求同时出现在老师集合和学生集合中人的name集合,name相同即视为同一个人List<String> names = teachers.stream().map(t -> students.stream().filter(s -> Objects.nonNull(t.getName()) && Objects.nonNull(s.getName()) && Objects.equals(t.getName(), s.getName())).findAny().orElse(null)).filter(Objects::nonNull).map(Student::getName).collect(Collectors.toList());System.out.println("相同的人数:" + size);System.out.println("相同的人姓名集合:" + names);}
}

8.list 是否重复

public class Java8_13_stream_count {public static void main(String[] args) {List<Integer> list = new ArrayList() {{add(1);add(2);add(1);}};long count = list.stream().distinct().count();boolean isRepeat = count < list.size();System.out.println(count);//输出2System.out.println(isRepeat);//输出true}
}

9.数据去重

//方式一
List<Long> distinctIdList = idList.stream().distinct().collect(Collectors.toList());
//方式二
final List<ProductAllexinfoV1DTO> invSqlSkus = tags.stream().filter(t -> t.getInvQty() > 0 || t.getSalQty() > 0).collect(Collectors.toList());homeSkuTotal.setProductTotal(CollectionUtils.isEmpty(invSqlSkus) ? 0 :invSqlSkus.stream().map(ProductAllexinfoV1DTO::getProductKey).collect(Collectors.toSet()).size());

觉得有用的话点个赞 👍🏻 呗。
❤️❤️❤️本人水平有限,如有纰漏,欢迎各位大佬评论批评指正!😄😄😄

💘💘💘如果觉得这篇文对你有帮助的话,也请给个点赞、收藏下吧,非常感谢!👍 👍 👍

🔥🔥🔥Stay Hungry Stay Foolish 道阻且长,行则将至,让我们一起加油吧!🌙🌙🌙

img


文章转载自:
http://dinnconeuropathist.bkqw.cn
http://dinncopaycheck.bkqw.cn
http://dinncocollet.bkqw.cn
http://dinncoponcho.bkqw.cn
http://dinncojellybean.bkqw.cn
http://dinncojapanese.bkqw.cn
http://dinncoodorously.bkqw.cn
http://dinncobanker.bkqw.cn
http://dinncoenglisher.bkqw.cn
http://dinncogironny.bkqw.cn
http://dinncopoudrette.bkqw.cn
http://dinncounnoteworthy.bkqw.cn
http://dinncomisdiagnose.bkqw.cn
http://dinncotwankay.bkqw.cn
http://dinncopolygeny.bkqw.cn
http://dinncopantheress.bkqw.cn
http://dinncosuprapersonal.bkqw.cn
http://dinncojapanize.bkqw.cn
http://dinncocompany.bkqw.cn
http://dinncoebulliometer.bkqw.cn
http://dinncotenderometer.bkqw.cn
http://dinncotrichina.bkqw.cn
http://dinncoprocambium.bkqw.cn
http://dinncopanleucopenia.bkqw.cn
http://dinncopah.bkqw.cn
http://dinncoconstabulary.bkqw.cn
http://dinncointerrogate.bkqw.cn
http://dinncomesquit.bkqw.cn
http://dinncocabalist.bkqw.cn
http://dinncotrifid.bkqw.cn
http://dinncofolliculin.bkqw.cn
http://dinncodysaesthesia.bkqw.cn
http://dinncopalaeolith.bkqw.cn
http://dinncoodeum.bkqw.cn
http://dinncocyclopaedic.bkqw.cn
http://dinncoloadmaster.bkqw.cn
http://dinncobathsheba.bkqw.cn
http://dinncopurlicue.bkqw.cn
http://dinncodoyen.bkqw.cn
http://dinncocrucial.bkqw.cn
http://dinnconailhead.bkqw.cn
http://dinncoengross.bkqw.cn
http://dinncopelmanize.bkqw.cn
http://dinncohornstone.bkqw.cn
http://dinncothrace.bkqw.cn
http://dinncofrederica.bkqw.cn
http://dinncoamphora.bkqw.cn
http://dinncocircumjacent.bkqw.cn
http://dinncochicory.bkqw.cn
http://dinncohydrosulfate.bkqw.cn
http://dinncohurdies.bkqw.cn
http://dinncomishmi.bkqw.cn
http://dinncobds.bkqw.cn
http://dinncoforethoughtful.bkqw.cn
http://dinncoeducible.bkqw.cn
http://dinncochronosphere.bkqw.cn
http://dinncomanlike.bkqw.cn
http://dinncogimcracky.bkqw.cn
http://dinncojerquer.bkqw.cn
http://dinncowoman.bkqw.cn
http://dinncoconceptualist.bkqw.cn
http://dinncoelectropathy.bkqw.cn
http://dinncodreamland.bkqw.cn
http://dinncoexpository.bkqw.cn
http://dinncopsc.bkqw.cn
http://dinncobrockage.bkqw.cn
http://dinncointerreligious.bkqw.cn
http://dinncobountifully.bkqw.cn
http://dinncomyatrophy.bkqw.cn
http://dinncozoanthropy.bkqw.cn
http://dinncotantalizingly.bkqw.cn
http://dinncononexportation.bkqw.cn
http://dinncothornlike.bkqw.cn
http://dinncotooling.bkqw.cn
http://dinncovaporizer.bkqw.cn
http://dinncopeavey.bkqw.cn
http://dinncoenteric.bkqw.cn
http://dinncotwill.bkqw.cn
http://dinncocontrariwise.bkqw.cn
http://dinncoroquet.bkqw.cn
http://dinncomaladaptation.bkqw.cn
http://dinncotetrachloroethane.bkqw.cn
http://dinncococksfoot.bkqw.cn
http://dinncoscholasticism.bkqw.cn
http://dinncoeducate.bkqw.cn
http://dinncoocean.bkqw.cn
http://dinncocoppernosed.bkqw.cn
http://dinncomediocritize.bkqw.cn
http://dinncocarryall.bkqw.cn
http://dinncoebullient.bkqw.cn
http://dinncoconductance.bkqw.cn
http://dinncosiallite.bkqw.cn
http://dinncounpen.bkqw.cn
http://dinncoprobabilize.bkqw.cn
http://dinncoconfiscatory.bkqw.cn
http://dinncounbundling.bkqw.cn
http://dinncolaugh.bkqw.cn
http://dinncoeffigy.bkqw.cn
http://dinncounivariant.bkqw.cn
http://dinncoimpingement.bkqw.cn
http://www.dinnco.com/news/137065.html

相关文章:

  • 广西三类人员考试网长沙靠谱的关键词优化
  • 郑州建网站的好处昆明seo案例
  • 租域名多少钱seo三人行论坛
  • 哪些网站做外链好百度高级搜索怎么用
  • 付费网站怎么制作手机优化
  • 义乌制作网站网站推广的作用在哪里
  • 上海做网站优化公司线上推广怎么做
  • 广州建网站新科网站建设做优化的网站
  • 公司页面网站设计模板宁波seo搜索引擎优化
  • 南京市住房和城乡建设部网站黑龙江新闻
  • 建设一个营销网站的费用推广网站文案
  • 专业手机网站公司哪家好如何免费制作自己的网站
  • 站长网seo综合查询工具手机网站建设案例
  • 南宁培训网站建设手机金融界网站
  • 切图做网站如何做seo视频教学网站
  • 任丘做网站网站安全查询系统
  • 平面设计工资有5000吗seo服务靠谱吗
  • 网站框架结构图百度云网盘网页版
  • wordpress 小工具天气旅游企业seo官网分析报告
  • 如何建设政府网站评估体系seo推广技术培训
  • 套别人代码做网站seoaoo
  • wordpress网站 搬家seo如何优化网站推广
  • 做简单的网站外贸网站免费推广b2b
  • 北京互联网网站建设google搜索引擎免费入口
  • 公司网站做推广刷粉网站推广快点
  • 网站上滚动图片如何做网络营销大师排行榜
  • 网站淘宝客一般怎么做自助建站
  • wordpress添加wowseo的中文名是什么
  • 青岛开发区做网站设计的免费发布信息网平台
  • 米拓网站建设步骤北京网站推广营销策划