|
@@ -95,15 +95,15 @@ public class ContractLogServiceImpl extends BaseServiceImpl<ContractLogMapper, C
|
|
|
return Condition.getPage(query);
|
|
|
}
|
|
|
//有数据,转换成VO
|
|
|
- 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(), //根据pdf、创建人去重
|
|
|
- vo -> vo,
|
|
|
- (existing, replacement) -> existing
|
|
|
- ))
|
|
|
- .values());
|
|
|
+ List<ContractLogVO> deduplicatedList = 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(), //根据pdf、创建人去重
|
|
|
+// vo -> vo,
|
|
|
+// (existing, replacement) -> existing
|
|
|
+// ))
|
|
|
+// .values());
|
|
|
deduplicatedList.sort(Comparator.comparing(ContractLogVO::getRecordTime).reversed());
|
|
|
deduplicatedList.forEach(vo -> {
|
|
|
vo.setName(vo.getFileName());
|