Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
pan.wl.2
2024-11-13 14:12:16 +08:00
185 changed files with 203 additions and 198 deletions

View File

@@ -83,7 +83,7 @@ public class PayServiceImpl implements IPayService {
List<DevPayWay> devPayWays = devPayWayMapper.selectList(
new QueryWrapper<DevPayWay>()
.eq("scene", terminal)
.eq("status", YesNoEnum.YES.getCode()).orderByDesc("is_default").orderByAsc("id"));
.eq("status", YesNoEnum.YES.getCode()).orderByDesc("id"));
PayWayListVo vo = new PayWayListVo();
if (from.equals("recharge")) {
@@ -113,10 +113,11 @@ public class PayServiceImpl implements IPayService {
if (devPayConfig.getPayWay().equals(PaymentEnum.ALI_PAY.getCode())) {
infoVo.setExtra("支付宝快捷支付");
}
list.add(infoVo);
}
Collections.sort(list, Comparator.comparing(PayWayInfoVo::getSort).reversed()
.thenComparing(Comparator.comparingInt(PayWayInfoVo::getId).reversed()));
vo.setLists(list);
return vo;
}