Revert "long 转int 超出int范围异常"

This reverts commit 3c4d6a6f7a.
pull/57/head
yangpengming 1 year ago
parent 3c4d6a6f7a
commit 755daa3e73

@ -71,7 +71,7 @@ public class DataServiceImpl implements DataService {
} }
// 0. 按时间排序 // 0. 按时间排序
List<SimpleAnchorInfo> sortAnchorList = userInfoList.stream().map(s -> JSON.parseObject(s, SimpleAnchorInfo.class)).sorted(Comparator.comparing(SimpleAnchorInfo::getTimestamp).reversed()).collect(Collectors.toList()); List<SimpleAnchorInfo> 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); return buildUserTimeLineVo(sortAnchorList);
} }

@ -1,24 +0,0 @@
# 1. 编译问题总结
* 问题1
```
解决IDEA中打包时报Could not transfer artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde问题
```
解决方法:
在maven下的setting.xml文件中加入下面的镜像配置内容
```
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>spring-plugin</name>
<url>https://maven.aliyun.com/repository/spring-plugin</url>
</mirror>
```
最后再进行编译`mvn clean instanll -Dmaven.test.skip -U`
Loading…
Cancel
Save