|
|
@@ -1038,12 +1038,14 @@ public class WalletService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
-
|
|
|
public Object launchRefund(RefundReq refundReq) {
|
|
|
KwpWalletRefund kwpWalletRefund = walletOrderService.queryById(refundReq.getIdLong());
|
|
|
if (Objects.isNull(kwpWalletRefund)) {
|
|
|
throw new BusinessException("退款订单不存在");
|
|
|
}
|
|
|
+ if (kwpWalletRefund.getStatus() != RefundEnum.APPLY.getStatus()) {
|
|
|
+ throw new BusinessException("退款订单状态异常");
|
|
|
+ }
|
|
|
ChannelEnum channelEnum = ChannelEnum.getByChannel(kwpWalletRefund.getChannel());
|
|
|
if (Objects.isNull(channelEnum)) {
|
|
|
throw new BusinessException("支付通道不存在");
|