Commit 336ff975 authored by 张永's avatar 张永

11

parent 4e0cbebe
......@@ -1789,7 +1789,7 @@ public class OrderServiceImpl implements OrderService {
List<Map<String, Object>> returnMap = jdbcTemplate.executeMutil("exec up_B2BSalesOrderPayCallBack ?, ?, ?, ?, ?, ?, ?", new Object[] {OutTradeNO,"",PayAmount,now, PayTypeID, "0", "1"}).getDatas().get(0);
String returnStr = GsonUtil.toJson(returnMap);
logger.info("优惠券回写:{}",returnStr);
logger.info("订单号:{},优惠券回写:{}",salesOrderID,returnStr);
Map<String,Object> aMap = returnMap.get(0);
Integer rStatus = (Integer)aMap.get("Status");
String rErrorMsg = (String)aMap.get("ErrorMsg");
......@@ -1813,7 +1813,7 @@ public class OrderServiceImpl implements OrderService {
crmService.vUpdateMemPoint(0, shopNO, shopNO, PayPoint, OutTradeNO, cashier, hostname, ipaddress);
List<Map<String, Object>> returnMap = jdbcTemplate.executeMutil("exec up_B2BSalesOrderPayCallBack ?, ?, ?, ?, ?, ?, ?", new Object[] {OutTradeNO,"",PayAmount,now, PayTypeID, "0", "1"}).getDatas().get(0);
String returnStr = GsonUtil.toJson(returnMap);
logger.info("积分回写:{}",returnStr);
logger.info("订单号:{} , 积分回写:{}",salesOrderID,returnStr);
Map<String,Object> aMap = returnMap.get(0);
Integer rStatus = (Integer)aMap.get("Status");
String rErrorMsg = (String)aMap.get("ErrorMsg");
......@@ -1835,7 +1835,7 @@ public class OrderServiceImpl implements OrderService {
crmService.vCardPay(shopNO, shopNO, PayAmount, posno, OutTradeNO, cashier, hostname, ipaddress);
List<Map<String, Object>> returnMap = jdbcTemplate.executeMutil("exec up_B2BSalesOrderPayCallBack ?, ?, ?, ?, ?, ?, ?", new Object[] {OutTradeNO,"",PayAmount,now, PayTypeID, "0", "1"}).getDatas().get(0);
String returnStr = GsonUtil.toJson(returnMap);
logger.info("储值余额支付回写:{}",returnStr);
logger.info("订单号:{} ,储值余额支付回写:{}",salesOrderID,returnStr);
Map<String,Object> aMap = returnMap.get(0);
Integer rStatus = (Integer)aMap.get("Status");
String rErrorMsg = (String)aMap.get("ErrorMsg");
......@@ -1881,9 +1881,9 @@ public class OrderServiceImpl implements OrderService {
boolean isPay_170_flag = false; //170分账是否支付成功,true为成功,false为失败
String statusName ="";
for(int ii = 1;ii<= cbkTimes ;ii++) { //需求 #17427 失败了遍历100次,
logger.info("第:{} 次进行扫呗分账支付 ,请求:{} ",ii,payObj.toString());
logger.info("订单号:{},第:{} 次进行扫呗分账支付 ,请求:{} ",salesOrderID,ii,payObj.toString());
String cbkResult = payClient.post("/lcsw/fz_cbk_dotrans_f", params,map.get("trace_id")+"");
logger.info("第:{} 次进行扫呗分账支付 ,结果:{} ",ii,cbkResult);
logger.info("订单号:{},第:{} 次进行扫呗分账支付 ,结果:{} ",salesOrderID,ii,cbkResult);
JSONObject cbkJsonResult = JSONObject.parseObject(cbkResult);
if(cbkJsonResult.getBooleanValue("isValid")) {
String cbk_out_trade_no = cbkJsonResult.getString("out_trade_no"); //CBK的支付结果单号
......@@ -1894,7 +1894,7 @@ public class OrderServiceImpl implements OrderService {
List<Map<String, Object>> returnMap = jdbcTemplate.executeMutil(sql).getDatas().get(0);
String returnStr = GsonUtil.toJson(returnMap);
logger.info("第:{} 次进行扫呗分账支付成功 ,回写结果:{} ",ii,returnStr);
logger.info("订单号:{},第:{} 次进行扫呗分账支付成功 ,回写结果:{} ",salesOrderID,ii,returnStr);
isPay_170_flag = true;
break;
}else {
......@@ -1908,9 +1908,9 @@ public class OrderServiceImpl implements OrderService {
String sql = "exec up_B2BSalesOrderPayCallBack '" + OutTradeNO + "' ,'', '0' , '' , '" + PayTypeID + "' ,1,'"+statusName+"' ";
List<Map<String, Object>> returnMap = jdbcTemplate.executeMutil(sql).getDatas().get(0);
String returnStr = GsonUtil.toJson(returnMap);
logger.info("第:{} 次进行扫呗分账支付失败 ,回写结果:{} ",ii,returnStr);
logger.info("订单号:{},第:{} 次进行扫呗分账支付失败 ,回写结果:{} ",salesOrderID,ii,returnStr);
} catch (Exception e) {
logger.info("第:{} 次进行扫呗分账支付失败 ,回写结果异常:{} ",ii,e);
logger.info("订单号:{},第:{} 次进行扫呗分账支付失败 ,回写结果异常:{} ",salesOrderID,ii,e);
}
}
}
......
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