ソースを参照

feat:修复了获得查找交流的bug

DingXiaoYu 3 年 前
コミット
0617e21fd6

+ 2 - 2
seecoder-portal-server/src/main/java/cn/seecoder/seecoderportalserver/serviceImpl/CommunicationServiceImpl.java

@@ -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));