From 844e5942fecefddb3a441abbce69cb3cc579e0b5 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Wed, 21 Jan 2026 10:48:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A7=E8=BF=90=E4=BB=A3=E7=90=86=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8E=92=E5=BA=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/user/impl/UserFreightBalanceRestServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/user/impl/UserFreightBalanceRestServiceImpl.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/user/impl/UserFreightBalanceRestServiceImpl.java index 6a753006..17b84f02 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/user/impl/UserFreightBalanceRestServiceImpl.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/user/impl/UserFreightBalanceRestServiceImpl.java @@ -114,7 +114,7 @@ public class UserFreightBalanceRestServiceImpl implements UserFreightBalanceRest // 构建国家代码到国旗URL的映射 Map countryFlagMap = buildCountryFlagMap(appCountryCode); - return pagedResult.convert(dto -> { + PageResult result = pagedResult.convert(dto -> { UserFreightBalanceCO co = userFreightBalanceConvertor.toUserFreightBalanceCO(dto); co.setBalance(dto.getBalance()); co.setIsFollow(userProfileGateway.checkFollow(appExtCommand.getReqUserId(), dto.getUserId())); @@ -142,6 +142,9 @@ public class UserFreightBalanceRestServiceImpl implements UserFreightBalanceRest } return co; }); + + result.setRecords(result.getRecords().stream().sorted(Comparator.comparing(UserFreightBalanceCO::getTransactionCount).reversed()).collect(Collectors.toList())); + return result; } /**