From 755daa3e73aa4af056e06bf790b268a4eccb4b50 Mon Sep 17 00:00:00 2001 From: yangpengming Date: Fri, 1 Sep 2023 16:03:25 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"long=20=E8=BD=ACint=20=E8=B6=85?= =?UTF-8?q?=E5=87=BAint=E8=8C=83=E5=9B=B4=E5=BC=82=E5=B8=B8"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 3c4d6a6f7a4c538c22943d66efec56152160beca. --- .../web/service/impl/DataServiceImpl.java | 2 +- 学习总结/本地编译常见问题.md | 24 ------------------- 2 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 学习总结/本地编译常见问题.md diff --git a/austin-web/src/main/java/com/java3y/austin/web/service/impl/DataServiceImpl.java b/austin-web/src/main/java/com/java3y/austin/web/service/impl/DataServiceImpl.java index 0e0a9f6..5925795 100644 --- a/austin-web/src/main/java/com/java3y/austin/web/service/impl/DataServiceImpl.java +++ b/austin-web/src/main/java/com/java3y/austin/web/service/impl/DataServiceImpl.java @@ -71,7 +71,7 @@ public class DataServiceImpl implements DataService { } // 0. 按时间排序 - List sortAnchorList = userInfoList.stream().map(s -> JSON.parseObject(s, SimpleAnchorInfo.class)).sorted(Comparator.comparing(SimpleAnchorInfo::getTimestamp).reversed()).collect(Collectors.toList()); + List sortAnchorList = userInfoList.stream().map(s -> JSON.parseObject(s, SimpleAnchorInfo.class)).sorted((o1, o2) -> Math.toIntExact(o1.getTimestamp() - o2.getTimestamp())).collect(Collectors.toList()); return buildUserTimeLineVo(sortAnchorList); } diff --git a/学习总结/本地编译常见问题.md b/学习总结/本地编译常见问题.md deleted file mode 100644 index 64a3634..0000000 --- a/学习总结/本地编译常见问题.md +++ /dev/null @@ -1,24 +0,0 @@ -# 1. 编译问题总结 -* 问题1 -``` -解决IDEA中打包时报:Could not transfer artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde问题 -``` -解决方法: -在maven下的setting.xml文件中加入下面的镜像配置内容 -``` - - alimaven - aliyun maven - http://maven.aliyun.com/nexus/content/groups/public/ - central - - - - aliyunmaven - * - spring-plugin - https://maven.aliyun.com/repository/spring-plugin - -``` -最后再进行编译`mvn clean instanll -Dmaven.test.skip -U` -