|
|
@@ -159,9 +159,9 @@ public class CommunicationServiceImpl implements CommunicationService {
|
|
|
public PageVO<CommunicationVO> getCommunicationPage(Integer page, Integer size, CommunicationSortStrategyEnum sort, Long userId) {
|
|
|
List<Sort.Order> orders=new ArrayList<>();
|
|
|
if (sort==CommunicationSortStrategyEnum.PUBLISH_TIME_ASC){
|
|
|
- orders.add(new Sort.Order(Sort.Direction.ASC,"publish_time"));
|
|
|
+ orders.add(new Sort.Order(Sort.Direction.ASC,"publishTime"));
|
|
|
}else {
|
|
|
- orders.add(new Sort.Order(Sort.Direction.DESC,"publish_time"));
|
|
|
+ orders.add(new Sort.Order(Sort.Direction.DESC,"publishTime"));
|
|
|
}
|
|
|
orders.add(new Sort.Order(Sort.Direction.DESC,"deadline"));
|
|
|
Pageable pageable = PageRequest.of(page,size,Sort.by(orders));
|