|
|
@@ -618,10 +618,10 @@ public class CollectionService {
|
|
|
}
|
|
|
|
|
|
@Cacheable(value = "subscribeCollectionList", key = "#now.hashCode()")
|
|
|
- public List<SubscribeListDTO> subscribeAll(LocalDate now) {
|
|
|
+ public Map<LocalDate, List<SubscribeListDTO>> subscribeAll(LocalDate now) {
|
|
|
+
|
|
|
List<SubscribeListDTO> subscribeListDTOS = new ArrayList<>();
|
|
|
// Map<String, Object> resultMap = new HashMap<>();
|
|
|
-//
|
|
|
// resultMap.put("subList", subscribeListDTOS);
|
|
|
// resultMap.put("notSubscribedIds", dtoPage.getContent().stream().filter(dto -> !dto.isSubscribed())
|
|
|
// .map(CollectionDTO::getId).collect(Collectors
|
|
|
@@ -672,6 +672,7 @@ public class CollectionService {
|
|
|
}
|
|
|
});
|
|
|
// resultMap.put("notSubscribedIds", );
|
|
|
- return subscribeListDTOS;
|
|
|
+ return subscribeListDTOS.stream()
|
|
|
+ .collect(Collectors.groupingBy(subscribeListDTO -> subscribeListDTO.getDateTime().toLocalDate()));
|
|
|
}
|
|
|
}
|