|
|
|
@ -198,33 +198,28 @@ public class CashRefundServiceImpl implements RefundService { |
|
|
|
if (cashRecordRefund.getMarket() == null || cashRecordRefund.getMarket().trim().isEmpty()) { |
|
|
|
throw new Exception("请选择所属地区"); |
|
|
|
} |
|
|
|
if(cashRecordRefund.getWalletId() != null) { |
|
|
|
String payType = cashRecordRefund.getPayType(); |
|
|
|
Integer wallet = null; |
|
|
|
if (payType == null || payType.trim().isEmpty()) { |
|
|
|
throw new SystemException("未穿输支付方式"); |
|
|
|
} |
|
|
|
if (payType.equals("Stripe")||payType.equals("PaymentAsia")) |
|
|
|
{ |
|
|
|
if (payType.equals("Stripe") || payType.equals("PaymentAsia")) { |
|
|
|
wallet = 2; |
|
|
|
} |
|
|
|
if (payType.equals("FirstData")||payType.equals("Grabpay")||payType.equals("Nets")||payType.equals("PayPal")||payType.equals("IOS")) |
|
|
|
{ |
|
|
|
if (payType.equals("FirstData") || payType.equals("Grabpay") || payType.equals("Nets") || payType.equals("PayPal") || payType.equals("IOS")) { |
|
|
|
wallet = 5; |
|
|
|
} |
|
|
|
if (payType.equals("Stripe2")) |
|
|
|
{ |
|
|
|
if (payType.equals("Stripe2")) { |
|
|
|
wallet = 3; |
|
|
|
} |
|
|
|
if (payType.equals("Ipay88")) |
|
|
|
{ |
|
|
|
if (payType.equals("Ipay88")) { |
|
|
|
wallet = 4; |
|
|
|
} |
|
|
|
if (payType.equals("E-Transfer")) |
|
|
|
{ |
|
|
|
if (payType.equals("E-Transfer")) { |
|
|
|
wallet = 6; |
|
|
|
} |
|
|
|
if (payType.equals("paysolution")) |
|
|
|
{ |
|
|
|
if (payType.equals("paysolution")) { |
|
|
|
wallet = 8; |
|
|
|
} |
|
|
|
String payType1 = languageTranslationUtil.translate("银行转账", lang); |
|
|
|
@ -248,7 +243,7 @@ public class CashRefundServiceImpl implements RefundService { |
|
|
|
if (userRegionWallet.getCurrentPermanentGold().compareTo(BigDecimal.valueOf(cashRecordRefund.getPartRefundGold())) < 0) { |
|
|
|
throw new BusinessException("用户钱包金币不足"); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
CashRecordDone cashRecordDonetwo = new CashRecordDone(); |
|
|
|
cashRecordDonetwo.setAreaServise(cashRecordRefund.getAreaServise()); |
|
|
|
cashRefundMapper.addAudit(cashRecordDonetwo); |
|
|
|
|