|
@@ -95,15 +95,15 @@ public class ContractLogServiceImpl extends BaseServiceImpl<ContractLogMapper, C
|
|
|
return Condition.getPage(query);
|
|
|
}
|
|
|
|
|
|
- List<ContractLogVO> voResult = JSONArray.parseArray(JSONObject.toJSONString(result), ContractLogVO.class);
|
|
|
- List<ContractLogVO> deduplicatedList = new ArrayList<>(voResult.stream()
|
|
|
- .filter(vo -> vo.getPdfUrl() != null && !vo.getPdfUrl().isEmpty())
|
|
|
- .collect(Collectors.toMap(
|
|
|
- vo -> vo.getPdfUrl() + vo.getCreateUserName(),
|
|
|
- vo -> vo,
|
|
|
- (existing, replacement) -> existing
|
|
|
- ))
|
|
|
- .values());
|
|
|
+ List<ContractLogVO> deduplicatedList = JSONArray.parseArray(JSONObject.toJSONString(result), ContractLogVO.class);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
deduplicatedList.sort(Comparator.comparing(ContractLogVO::getRecordTime).reversed());
|
|
|
deduplicatedList.forEach(vo -> {
|
|
|
vo.setName(vo.getFileName());
|