mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
汇付退款回调接口
This commit is contained in:
@@ -256,4 +256,6 @@ public interface IOrderBasicInfoService {
|
||||
|
||||
|
||||
String tempUpdateVirtualAmount(QueryOrderDTO dto);
|
||||
|
||||
void adapayRefund(WeChatRefundDTO dto);
|
||||
}
|
||||
|
||||
@@ -1727,4 +1727,19 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
||||
}
|
||||
return "共查询到" + orderListVOS.size() + "条订单,修改成功" + i + "条订单数据";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void adapayRefund(WeChatRefundDTO dto) {
|
||||
// 退款有两种情况 1-订单结算退款 2-用户余额退款
|
||||
String refundType = dto.getRefundType();
|
||||
if (StringUtils.equals(refundType, "1")) {
|
||||
WechatPayRefundResponse response = refundForOrder(dto);
|
||||
logger.info("订单结算退款 result:{}", JSONObject.toJSONString(response));
|
||||
} else if (StringUtils.equals(refundType, "2")) {
|
||||
WechatPayRefundResponse response = refundForBalance(dto);
|
||||
logger.info("用户余额退款 result:{}", JSONObject.toJSONString(response));
|
||||
} else {
|
||||
logger.warn("没有找到退款处理逻辑");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user