mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-13 11:49:49 +08:00
update 汇付退款
This commit is contained in:
@@ -1251,6 +1251,11 @@ public class OrderService {
|
|||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 汇付支付 支付回调
|
||||||
|
* @param request
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
public void adapayCallback(HttpServletRequest request) throws Exception {
|
public void adapayCallback(HttpServletRequest request) throws Exception {
|
||||||
//验签请参data
|
//验签请参data
|
||||||
String data = request.getParameter("data");
|
String data = request.getParameter("data");
|
||||||
@@ -1278,7 +1283,6 @@ public class OrderService {
|
|||||||
BigDecimal amount = adapayCallbackRecord.getPayAmt();
|
BigDecimal amount = adapayCallbackRecord.getPayAmt();
|
||||||
if (StringUtils.equals(type, ScenarioEnum.ORDER.getValue())) { // 1-订单支付
|
if (StringUtils.equals(type, ScenarioEnum.ORDER.getValue())) { // 1-订单支付
|
||||||
// 支付订单成功
|
// 支付订单成功
|
||||||
// orderCode = (String) map.get("orderCode");
|
|
||||||
PayOrderSuccessCallbackDTO callbackDTO = PayOrderSuccessCallbackDTO.builder()
|
PayOrderSuccessCallbackDTO callbackDTO = PayOrderSuccessCallbackDTO.builder()
|
||||||
.orderCode(orderCode)
|
.orderCode(orderCode)
|
||||||
.payAmount(amount)
|
.payAmount(amount)
|
||||||
@@ -1297,7 +1301,6 @@ public class OrderService {
|
|||||||
orderPayRecordService.batchInsert(Lists.newArrayList(orderPayRecord));
|
orderPayRecordService.batchInsert(Lists.newArrayList(orderPayRecord));
|
||||||
} else if (StringUtils.equals(type, ScenarioEnum.BALANCE.getValue())) { // 2-充值余额
|
} else if (StringUtils.equals(type, ScenarioEnum.BALANCE.getValue())) { // 2-充值余额
|
||||||
// 充值余额成功
|
// 充值余额成功
|
||||||
// memberId = (String) map.get("memberId");
|
|
||||||
UpdateMemberBalanceDTO dto = new UpdateMemberBalanceDTO();
|
UpdateMemberBalanceDTO dto = new UpdateMemberBalanceDTO();
|
||||||
dto.setMemberId(memberId);
|
dto.setMemberId(memberId);
|
||||||
dto.setType(MemberWalletEnum.TYPE_IN.getValue());
|
dto.setType(MemberWalletEnum.TYPE_IN.getValue());
|
||||||
@@ -1321,6 +1324,11 @@ public class OrderService {
|
|||||||
memberTransactionRecordService.insertSelective(record);
|
memberTransactionRecordService.insertSelective(record);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 汇付支付 退款回调
|
||||||
|
* @param request
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
public void adapayRefundCallback(HttpServletRequest request) throws Exception {
|
public void adapayRefundCallback(HttpServletRequest request) throws Exception {
|
||||||
//验签请参data
|
//验签请参data
|
||||||
String data = request.getParameter("data");
|
String data = request.getParameter("data");
|
||||||
|
|||||||
Reference in New Issue
Block a user