Commit b1ed2d1a authored by 张永's avatar 张永

refund.succeeded

parent 53dc191a
...@@ -1229,7 +1229,7 @@ public class OrderServiceImpl implements OrderService { ...@@ -1229,7 +1229,7 @@ public class OrderServiceImpl implements OrderService {
String out_payment_id = event_content.getString("out_payment_id"); // 付款方 ID String out_payment_id = event_content.getString("out_payment_id"); // 付款方 ID
if (event_type.equals("mse_payment.succeeded") || event_type.equals("mse_payment.close") if (event_type.equals("mse_payment.succeeded") || event_type.equals("mse_payment.close")
|| event_type.equals("mse_payment.revoke")) { || event_type.equals("mse_payment.revoke") || event_type.equals("mse_payment.clearing")) {
// String openid = event_content.getString("purchaser_id");//个人付款时对应微企付用户openid // String openid = event_content.getString("purchaser_id");//个人付款时对应微企付用户openid
String status = event_content.getString("status"); String status = event_content.getString("status");
String PayAmount = event_content.getString("amount"); String PayAmount = event_content.getString("amount");
...@@ -1251,6 +1251,10 @@ public class OrderServiceImpl implements OrderService { ...@@ -1251,6 +1251,10 @@ public class OrderServiceImpl implements OrderService {
StatusID = "3"; StatusID = "3";
StatusName = "支付退票"; StatusName = "支付退票";
break; break;
case "CLEARING":
StatusID = "4";
StatusName = "银行清算中";
break;
default: default:
break; break;
} }
...@@ -1259,7 +1263,7 @@ public class OrderServiceImpl implements OrderService { ...@@ -1259,7 +1263,7 @@ public class OrderServiceImpl implements OrderService {
+ PayAmount + "' , '" + pay_succ_time + "' , '" + PayTypeID + "' , '" + StatusID + "' , '" + PayAmount + "' , '" + pay_succ_time + "' , '" + PayTypeID + "' , '" + StatusID + "' , '"
+ StatusName + "' "; + StatusName + "' ";
returnMap = jdbcTemplate.executeMutil(sql).getDatas().get(0); returnMap = jdbcTemplate.executeMutil(sql).getDatas().get(0);
} else if (event_type.equals("mse_refund.succeeded")) { // 退款成功 } else if (event_type.equals("refund.succeeded")) { // 退款成功
// up_B2BCancelOrderBizPayCallBack // up_B2BCancelOrderBizPayCallBack
String status = event_content.getString("status"); String status = event_content.getString("status");
if (status.equals("SUCCEEDED")) {// 退款成功 if (status.equals("SUCCEEDED")) {// 退款成功
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment