diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientRateMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientRateMapper.xml index d1245e90a..e471d54b3 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientRateMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientRateMapper.xml @@ -95,8 +95,9 @@ ( SELECT max(active_time) FROM sys_client_rates WHERE client_id = #{client_id} - and rate_name in('Wechat','Alipay') ) + and rate_name in('Wechat','Alipay') + order by expiry_time desc \ No newline at end of file