mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-06 11:40:45 +08:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user