Commit 524a8219 authored by 张永's avatar 张永

1

parent 88983e77
...@@ -93,8 +93,7 @@ public class PayNotifyController { ...@@ -93,8 +93,7 @@ public class PayNotifyController {
return "success"; return "success";
} }
public static void main(String[] args) { public static void main(String[] args) {
......
...@@ -1207,6 +1207,15 @@ public class OrderServiceImpl implements OrderService { ...@@ -1207,6 +1207,15 @@ public class OrderServiceImpl implements OrderService {
String from_type = reqObj.getString("from_type"); // PAY为支付回调、REFUND为退款回调 String from_type = reqObj.getString("from_type"); // PAY为支付回调、REFUND为退款回调
boolean isValid = reqObj.getBooleanValue("isValid"); boolean isValid = reqObj.getBooleanValue("isValid");
if (isValid) { if (isValid) {
if(from_type.equals("CREATE")) {
String OutTradeNo = reqObj.getString("OutTradeNo");
String OrderNo = reqObj.getString("OrderNo"); // 网商订单号
String TotalAmount = reqObj.getString("TotalAmount"); //
String PayCardNO = reqObj.getString("PayCardNO"); //
String sql = "exec up_B2BSalesOrderPayUpdate '" + OutTradeNo + "' ,'" + OrderNo + "' , '" + PayCardNO
+ "' , '" + TotalAmount + "' , '" + PayTypeID + "' ";
returnMap = jdbcTemplate.executeMutil(sql).getDatas().get(0);
}
if (from_type.equals("PAY")) { if (from_type.equals("PAY")) {
String OutTradeNo = reqObj.getString("OutTradeNo"); String OutTradeNo = reqObj.getString("OutTradeNo");
String OrderNo = reqObj.getString("OrderNo"); // 网商订单号 String OrderNo = reqObj.getString("OrderNo"); // 网商订单号
......
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