|
|
|
@ -70,6 +70,9 @@ public class JournalController {
|
|
|
|
|
UserLoginDto user = jwtUtil.getUserLoginDto(authorization);
|
|
|
|
|
updateQuery(deviceType,user,queryReq);
|
|
|
|
|
Long count = journalService.countJournal(queryReq);
|
|
|
|
|
if(0==count) {
|
|
|
|
|
return Result.success(new PageResult<JournalRespDTO>(count, Collections.emptyList()));
|
|
|
|
|
}
|
|
|
|
|
List<JournalRespDTO> pageList=journalService.queryJournalByPage(queryReq);
|
|
|
|
|
Set<String> journalCollectSet = getJournalCollectSet(user);
|
|
|
|
|
updateCollectStatus(pageList,journalCollectSet);
|
|
|
|
@ -115,6 +118,9 @@ public class JournalController {
|
|
|
|
|
return Result.success(new PageResult<JournalRespDTO>(0L, Collections.emptyList()));
|
|
|
|
|
}
|
|
|
|
|
Long count = Long.valueOf(getJournalCollectSet(queryReq.getUserId()).size());
|
|
|
|
|
if(0==count) {
|
|
|
|
|
return Result.success(new PageResult<JournalRespDTO>(count, Collections.emptyList()));
|
|
|
|
|
}
|
|
|
|
|
List<Journal> pageList = journalService.orderByField(objectIds);
|
|
|
|
|
UserLoginDto user = jwtUtil.getUserLoginDto(authorization);
|
|
|
|
|
Set<String> journalCollectSet = getMyCollectSet(user.getUserId(),queryReq.getUserId(),objectIds);
|
|
|
|
|