提交代码

master
胡锐 3 months ago
parent 8c0ddfc755
commit 40bff1d19d
  1. 4
      service/src/main/java/com/hfkj/service/hlt/HltCardRefundService.java
  2. 3
      service/src/main/java/com/hfkj/service/order/impl/BsOrderRefundServiceImpl.java

@ -49,7 +49,7 @@ public class HltCardRefundService {
* @param orderRefund
* @return
*/
public BsOrderRefund refund(BsOrderRefund orderRefund) {
public boolean refund(BsOrderRefund orderRefund) {
// 查询系统订单号
BsHltCardRecord oldCardRecord = hltCardRecordService.getNewPayOrderNo(orderRefund.getOrderNo());
if (oldCardRecord == null) {
@ -147,6 +147,6 @@ public class HltCardRefundService {
oldCardRecord.setExceptionContent("未知错误");
hltCardRecordService.update(oldCardRecord);
}
return orderRefund;
return !oldCardRecord.getExceptionStatus();
}
}

@ -103,8 +103,7 @@ public class BsOrderRefundServiceImpl implements BsOrderRefundService {
} else if (OrderPayChannelEnum.type4.getCode() == orderRefund.getRefundPayChannel()) {
// 商户退款
orderRefund = hltCardRefundService.refund(orderRefund);
return true;
return hltCardRefundService.refund(orderRefund);
} else {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "退款失败!该支付方式暂不支持退款");
}

Loading…
Cancel
Save