|
|
@ -203,7 +203,7 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService { |
|
|
|
} else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE7.getNumber())) { |
|
|
|
} else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE7.getNumber())) { |
|
|
|
eCouponPackageHandle(order , childOrder); |
|
|
|
eCouponPackageHandle(order , childOrder); |
|
|
|
} else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE8.getNumber())) { |
|
|
|
} else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE8.getNumber())) { |
|
|
|
hltUnionCardRechargeHandle(order); |
|
|
|
hltUnionCardRechargeHandle(order , childOrder); |
|
|
|
} else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE9.getNumber())) { |
|
|
|
} else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE9.getNumber())) { |
|
|
|
|
|
|
|
|
|
|
|
} else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE10.getNumber())) { |
|
|
|
} else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE10.getNumber())) { |
|
|
@ -415,44 +415,18 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService { |
|
|
|
* @Param [order] |
|
|
|
* @Param [order] |
|
|
|
* @Return void |
|
|
|
* @Return void |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void hltUnionCardRechargeHandle(HighOrder order) throws Exception { |
|
|
|
private void hltUnionCardRechargeHandle(HighOrder order , HighChildOrder highChildOrder) throws Exception { |
|
|
|
// 汇联通充值
|
|
|
|
// 汇联通充值
|
|
|
|
String goodsDesc = "汇联通充值"+order.getPayPrice()+"元"; |
|
|
|
String goodsDesc = "汇联通充值"+order.getPayPrice()+"元"; |
|
|
|
String tranDesc = ""; |
|
|
|
String tranDesc = ""; |
|
|
|
String businessType = "ghk_deposit"; |
|
|
|
String businessType = "ghk_deposit"; |
|
|
|
|
|
|
|
|
|
|
|
// 汇联通卡充值
|
|
|
|
// 汇联通卡充值
|
|
|
|
JSONObject deposit = HuiLianTongUnionCardConfig.deposit(order.getOrderNo(), order.getMemCardNo(), order.getPayPrice(), businessType, order.getPaySerialNo(), tranDesc); |
|
|
|
JSONObject deposit = HuiLianTongUnionCardConfig.deposit(order.getOrderNo(), highChildOrder.getGoodsSpecName(), order.getPayPrice(), businessType, order.getPaySerialNo(), goodsDesc); |
|
|
|
|
|
|
|
|
|
|
|
// 汇联通充值回调解析
|
|
|
|
// 汇联通充值回调解析
|
|
|
|
HuiLianTongUnionCardConfig.resolveResponse(deposit.getString("data")); |
|
|
|
HuiLianTongUnionCardConfig.resolveResponse(deposit.getString("data")); |
|
|
|
|
|
|
|
|
|
|
|
// Map<String,Object> dataMap = new HashMap<>();
|
|
|
|
|
|
|
|
// dataMap.put("orderNo", order.getOrderNo());
|
|
|
|
|
|
|
|
// dataMap.put("cardType", "ghk");
|
|
|
|
|
|
|
|
// dataMap.put("cardNo", order.getMemCardNo());
|
|
|
|
|
|
|
|
// dataMap.put("checkPassword", "N");
|
|
|
|
|
|
|
|
// dataMap.put("tranAmount", order.getPayPrice());
|
|
|
|
|
|
|
|
// dataMap.put("tranChannel", "HiSen");
|
|
|
|
|
|
|
|
// dataMap.put("businessType", businessType);
|
|
|
|
|
|
|
|
// dataMap.put("goodsDesc", goodsDesc);
|
|
|
|
|
|
|
|
// dataMap.put("tranDesc", tranDesc);
|
|
|
|
|
|
|
|
// HighGasOrderPush payPush = new HighGasOrderPush();
|
|
|
|
|
|
|
|
// payPush.setType(OrderPushType.type7.getType());
|
|
|
|
|
|
|
|
// payPush.setOrderNo(order.getOrderNo());
|
|
|
|
|
|
|
|
// payPush.setCreateTime(new Date());
|
|
|
|
|
|
|
|
// payPush.setCode(deposit.getString("respCode"));
|
|
|
|
|
|
|
|
// payPush.setRequestContent(JSON.toJSONString(dataMap));
|
|
|
|
|
|
|
|
// payPush.setReturnContent(deposit.toJSONString());
|
|
|
|
|
|
|
|
// highGasOrderPushMapper.insert(payPush);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// if (!Objects.equals(deposit.getString("respCode"), "0000")) {
|
|
|
|
|
|
|
|
// throw ErrorHelp.genException(SysCode.System , ErrorCode.COMMON_ERROR , deposit.getString("respMessage"));
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// // 记录回调信息
|
|
|
|
|
|
|
|
// if (!dataObject.getBoolean("success")) {
|
|
|
|
|
|
|
|
// throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, dataObject.getString("message"));
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|