|
|
@ -69,7 +69,7 @@ public class OutRechargeOrderController { |
|
|
|
private HighOrderService highOrderService; |
|
|
|
private HighOrderService highOrderService; |
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private TelApiService telApiService; |
|
|
|
private OutRechargePriceService outRechargePriceService; |
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private WechatPayUtil wechatPayUtil; |
|
|
|
private WechatPayUtil wechatPayUtil; |
|
|
@ -124,14 +124,6 @@ public class OutRechargeOrderController { |
|
|
|
// 判断充值模式:1 电信 2. 移动 3. 联通
|
|
|
|
// 判断充值模式:1 电信 2. 移动 3. 联通
|
|
|
|
// 拼接内容
|
|
|
|
// 拼接内容
|
|
|
|
remarks = outRechargeOrder.getRechargeContent() + "充值" + outRechargeOrder.getOrderPrice() + "元"; |
|
|
|
remarks = outRechargeOrder.getRechargeContent() + "充值" + outRechargeOrder.getOrderPrice() + "元"; |
|
|
|
// JSONObject telObject = telApiService.outApiTel(outRechargeOrder.getRechargeContent());
|
|
|
|
|
|
|
|
// if (telObject.get("status").equals(0)) {
|
|
|
|
|
|
|
|
// JSONObject o = telObject.getObject("result",JSONObject.class);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// log.error("orderToPay error!");
|
|
|
|
|
|
|
|
// throw ErrorHelp.genException(SysCode.System, ErrorCode.PHONE_NUM_IS_ERROR);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HighDiscountUserRel highDiscountUserRel = null; |
|
|
|
HighDiscountUserRel highDiscountUserRel = null; |
|
|
|
if (outRechargeOrder.getMemDiscountId() != null) { |
|
|
|
if (outRechargeOrder.getMemDiscountId() != null) { |
|
|
@ -195,6 +187,8 @@ public class OutRechargeOrderController { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OutRechargePrice outRechargePrice = outRechargePriceService.findById(outRechargeOrder.getObjectId().longValue()); |
|
|
|
|
|
|
|
|
|
|
|
HighUserCard highUserCard = highUserCardService.getUserHtlCardNo(userInfoModel.getHighUser().getId()); |
|
|
|
HighUserCard highUserCard = highUserCardService.getUserHtlCardNo(userInfoModel.getHighUser().getId()); |
|
|
|
if (highUserCard != null) { |
|
|
|
if (highUserCard != null) { |
|
|
|
outRechargeOrder.setIdCard(highUserCard.getCardNo()); |
|
|
|
outRechargeOrder.setIdCard(highUserCard.getCardNo()); |
|
|
@ -204,6 +198,7 @@ public class OutRechargeOrderController { |
|
|
|
outRechargeOrder.setOrderNo("CZ" + DateUtil.date2String(new Date(),"yyyyMMddHHmmss") + IDGenerator.nextId(5)); |
|
|
|
outRechargeOrder.setOrderNo("CZ" + DateUtil.date2String(new Date(),"yyyyMMddHHmmss") + IDGenerator.nextId(5)); |
|
|
|
outRechargeOrder.setUserId(userInfoModel.getHighUser().getId()); |
|
|
|
outRechargeOrder.setUserId(userInfoModel.getHighUser().getId()); |
|
|
|
outRechargeOrder.setUserName(userInfoModel.getHighUser().getName()); |
|
|
|
outRechargeOrder.setUserName(userInfoModel.getHighUser().getName()); |
|
|
|
|
|
|
|
outRechargeOrder.setRechargeType(outRechargePrice.getRechargeType()); |
|
|
|
outRechargeOrder.setUserPhone(userInfoModel.getHighUser().getPhone()); |
|
|
|
outRechargeOrder.setUserPhone(userInfoModel.getHighUser().getPhone()); |
|
|
|
|
|
|
|
|
|
|
|
outRechargeOrder.setCreateTimed(new Date()); |
|
|
|
outRechargeOrder.setCreateTimed(new Date()); |
|
|
|