|
@@ -120,12 +120,7 @@ public class SavePayResultService {
|
|
|
dao.couponUsed(order.getCouponId());
|
|
|
return payTime;
|
|
|
}
|
|
|
- String refund = refundService.autoRefund(order.getTradeNo(), response);
|
|
|
- if (!refund.startsWith("ERROR:")) {
|
|
|
- dao.refundOrder(order.getTradeNo(), response);
|
|
|
- return response;
|
|
|
- }
|
|
|
- throw new BizException(ExceptionEnum.LOGICAL_ERROR, "保存挂号信息失败,自动退款失败,请联系服务中心进行退款。");
|
|
|
+ throw new BizException(ExceptionEnum.LOGICAL_ERROR, "保存挂号信息失败,请前往收费窗口或联系服务中心进行退款。");
|
|
|
}
|
|
|
|
|
|
public String saveMzChargeInfo(WxPayOrder order, String payTime) throws Exception {
|
|
@@ -174,12 +169,7 @@ public class SavePayResultService {
|
|
|
updateAppletHisChargeplStatus(hisOrdNum, tradeNo, order.getCouponId(), order.getCashpayAmt());
|
|
|
return payTime;
|
|
|
}
|
|
|
- String refund = refundService.autoRefund(tradeNo, saveMzPayResponse.getMessage());
|
|
|
- if (!refund.startsWith("ERROR:")) {
|
|
|
- dao.refundOrder(tradeNo, saveMzPayResponse.getMessage());
|
|
|
- return "ERROR:【" + saveMzPayResponse.getMessage() + "】已为您自动退款,请留意到账信息。";
|
|
|
- }
|
|
|
- return "ERROR:【" + saveMzPayResponse.getMessage() + "】自动退款失败,请联系服务中心进行退款。";
|
|
|
+ throw new BizException(ExceptionEnum.LOGICAL_ERROR, "保存处方失败,请前往收费窗口或联系服务中心进行退款。");
|
|
|
}
|
|
|
|
|
|
private void updateAppletHisChargeplStatus(String hisOrdNum, String tradeNo, String couponId, BigDecimal cashpayAmt) {
|