货运代理列表排序修改
This commit is contained in:
parent
cfdaad54e9
commit
844e5942fe
@ -114,7 +114,7 @@ public class UserFreightBalanceRestServiceImpl implements UserFreightBalanceRest
|
|||||||
// 构建国家代码到国旗URL的映射
|
// 构建国家代码到国旗URL的映射
|
||||||
Map<String, String> countryFlagMap = buildCountryFlagMap(appCountryCode);
|
Map<String, String> countryFlagMap = buildCountryFlagMap(appCountryCode);
|
||||||
|
|
||||||
return pagedResult.convert(dto -> {
|
PageResult<UserFreightBalanceCO> result = pagedResult.convert(dto -> {
|
||||||
UserFreightBalanceCO co = userFreightBalanceConvertor.toUserFreightBalanceCO(dto);
|
UserFreightBalanceCO co = userFreightBalanceConvertor.toUserFreightBalanceCO(dto);
|
||||||
co.setBalance(dto.getBalance());
|
co.setBalance(dto.getBalance());
|
||||||
co.setIsFollow(userProfileGateway.checkFollow(appExtCommand.getReqUserId(), dto.getUserId()));
|
co.setIsFollow(userProfileGateway.checkFollow(appExtCommand.getReqUserId(), dto.getUserId()));
|
||||||
@ -142,6 +142,9 @@ public class UserFreightBalanceRestServiceImpl implements UserFreightBalanceRest
|
|||||||
}
|
}
|
||||||
return co;
|
return co;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
result.setRecords(result.getRecords().stream().sorted(Comparator.comparing(UserFreightBalanceCO::getTransactionCount).reversed()).collect(Collectors.toList()));
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user