Browse Source

修改排序规则

tianyun 3 năm trước cách đây
mục cha
commit
4300d2f562

+ 2 - 2
book-server/src/main/java/com/book/server/service/impl/SunDataServiceImpl.java

@@ -203,7 +203,7 @@ public class SunDataServiceImpl implements SunDataService {
         SunOrderCollectExample example = SunOrderCollectExample.newAndCreateCriteria().example();
         long l = sunOrderCollectMapper.countByExample(example);
         example.page(sunVO.getPage(), sunVO.getSize());
-        example.orderBy(SunOrderCollect.Column.createTime.desc());
+        example.orderBy(SunOrderCollect.Column.startTime.desc());
         return new PageResult<>(l, sunOrderCollectMapper.selectByExample(example));
     }
 
@@ -212,7 +212,7 @@ public class SunDataServiceImpl implements SunDataService {
         SunUserCollectExample example = SunUserCollectExample.newAndCreateCriteria().example();
         long l = sunUserCollectMapper.countByExample(example);
         example.page(sunVO.getPage(), sunVO.getSize());
-        example.orderBy(SunUserCollect.Column.createTime.desc());
+        example.orderBy(SunUserCollect.Column.startTime.desc());
         return new PageResult<>(l, sunUserCollectMapper.selectByExample(example));
     }