修改退款查询接口

This commit is contained in:
韩鹏辉
2023-08-16 10:53:09 +08:00
parent 94ebe22ceb
commit dc44094c68

View File

@@ -7,6 +7,7 @@ import cn.pluss.platform.entity.MerchantChannelStatus;
import cn.pluss.platform.entity.MerchantOrder;
import cn.pluss.platform.entity.MerchantRefundOrder;
import cn.pluss.platform.exception.MsgException;
import cn.pluss.platform.klk.service.LkLPayServiceImpl;
import cn.pluss.platform.mapper.MerchantOrderMapper;
import cn.pluss.platform.mapper.MerchantRefundOrderMapper;
import cn.pluss.platform.merchant.MerchantBaseInfoService;
@@ -69,6 +70,9 @@ public class MerchantRefundOrderServiceImpl extends ServiceImpl<MerchantRefundOr
@Setter(onMethod_ = {@Lazy, @Autowired})
private NotifyMessageService notifyMessageService;
@Setter(onMethod_ = {@Autowired, @Qualifier("lkLPayService")})
private PayService lkLPayService;
@Resource
private MerchantOrderMapper merchantOrderMapper;
@@ -124,7 +128,9 @@ public class MerchantRefundOrderServiceImpl extends ServiceImpl<MerchantRefundOr
result = ryxPayService.refundPay(order, channel.getMerchantId());
} else if (channel.getChannel() == 4) {
result = ysPayOldService.refundPay(order, channel.getMerchantId());
}else {
}else if(channel.getChannel()==5){
result=lkLPayService.refundPay(order,channel.getMerchantId());
}else {
MsgException.throwException("未知通道!");
}
if (ResultCode.SUCCESS.code() != (Integer) result.get("code")) {
@@ -181,6 +187,8 @@ public class MerchantRefundOrderServiceImpl extends ServiceImpl<MerchantRefundOr
result = ryxPayService.refundQuery(refundOrder);
} else if (channel.getChannel() == 4) {
result = ysPayOldService.refundQuery(refundOrder);
}else if(channel.getChannel()==5){
result=lkLPayService.refundQuery(refundOrder);
}else {
MsgException.throwException("未知通道!");
}