笔记
做紧咩嘢
这个作者很懒,什么都没留下…
展开
-
java 数字、英文、中文混排排序
按照数字,字母,中文拼音首字母顺序排序public static void main(String[] args) { List<QuotationBrandResult> quotationBrands = new ArrayList<>(); QuotationBrandResult brandResult = new QuotationBrandResult("ABS", "0125H", "B啊弄咯"); quotationB原创 2021-10-05 11:12:52 · 1679 阅读 · 0 评论 -
MongoDB日常语法笔记01
MongoDB常用语法mongo 删除语句db.getCollection("_User").remove({ '_id': { "$in": ["qwewre", "qwerwewqweq", "dsffdasd" ] }})mongo 分组统计语句db.getCollection("_User").aggregate([ { ...原创 2020-04-07 11:25:14 · 162 阅读 · 0 评论 -
PG常用语法笔记
日期分组统计SELECT to_char( create_time, 'YYYY-MM-DD' ) AS createTime, COUNT ( ID ) AS total_count FROM cardata_user_temp WHERE create_time >= '2020-02-01 00:00:00' GROUP BY createTime窗口函数 ...原创 2020-03-03 15:50:29 · 613 阅读 · 0 评论 -
Java8 LocaLDate 时间戳相互转换笔记
LocaLDate 时间戳相互转换笔记 /** * 将Long类型的时间戳转换成String 类型的时间格式,时间格式为:yyyy-MM-dd HH:mm:ss */ public static String convertTimeToString(Long time){ Assert.notNull(time, "time is null");...原创 2020-01-09 17:44:50 · 11511 阅读 · 2 评论 -
Java8 stream 使用笔记
Java8 stream 使用笔记1、分组(1)分组查询Map<String, List<InstallationPO>> collect = list.stream().collect(Collectors.groupingBy(InstallationPO::getpUser));(2)分组统计Map<String, Long> collect ...原创 2019-12-02 17:52:13 · 397 阅读 · 0 评论