From: yunpeng.ma Date: Fri, 25 Sep 2020 08:23:41 +0000 (+0800) Subject: 排序修改 X-Git-Tag: 1.0.26^2~1 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=62e0fe07238a4f510a8d6c6c439add7959a29a5e;p=epayment%2Ffood_payapi.git 排序修改 --- diff --git a/payapi/src/main/java/com/supwisdom/dlpay/system/service/impl/PointsServiceImpl.java b/payapi/src/main/java/com/supwisdom/dlpay/system/service/impl/PointsServiceImpl.java index 01e2b125..2753084b 100644 --- a/payapi/src/main/java/com/supwisdom/dlpay/system/service/impl/PointsServiceImpl.java +++ b/payapi/src/main/java/com/supwisdom/dlpay/system/service/impl/PointsServiceImpl.java @@ -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 page = pointsDtlDao.findAllByUserid(tCard.getUserid(),pageable);