排序修改
authoryunpeng.ma <yunpeng.ma@supwisdom.com>
Fri, 25 Sep 2020 08:23:41 +0000 (16:23 +0800)
committeryunpeng.ma <yunpeng.ma@supwisdom.com>
Fri, 25 Sep 2020 08:23:41 +0000 (16:23 +0800)
payapi/src/main/java/com/supwisdom/dlpay/system/service/impl/PointsServiceImpl.java

index 01e2b12..2753084 100644 (file)
@@ -147,7 +147,7 @@ public class PointsServiceImpl implements PointsService {
     tPointsMain.setName(param.getName());
     tPointsMain.setCardno(param.getIdno());
     tPointsMain.setLevelname(tPersonLevel.getName());
-    Pageable pageable = PageRequest.of(param.getPageNo() - 1, param.getPageSize());
+    Pageable pageable = PageRequest.of(param.getPageNo() - 1, param.getPageSize(), Sort.by(Sort.Direction.DESC, "id"));
 
 //    Page<TPointsdtl> page = pointsDtlDao.findAllByUserid(tCard.getUserid(),pageable);