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` -