|
|
@ -73,7 +73,7 @@ public class OutRechargeOrderController { |
|
|
|
// 判断充值模式:1 话费充值 2. 中石化 3. 中石油
|
|
|
|
// 判断充值模式:1 话费充值 2. 中石化 3. 中石油
|
|
|
|
if (outRechargeOrder.getRechargeModel() == 1) { |
|
|
|
if (outRechargeOrder.getRechargeModel() == 1) { |
|
|
|
JSONObject telObject = telApiService.outApiTel(outRechargeOrder.getRechargeContent()); |
|
|
|
JSONObject telObject = telApiService.outApiTel(outRechargeOrder.getRechargeContent()); |
|
|
|
if (telObject.get("status") == "0") { |
|
|
|
if (telObject.get("status").equals(0)) { |
|
|
|
JSONObject o = telObject.getObject("result",JSONObject.class); |
|
|
|
JSONObject o = telObject.getObject("result",JSONObject.class); |
|
|
|
// 拼接内容
|
|
|
|
// 拼接内容
|
|
|
|
remarks = o.get("province").toString() + o.get("company").toString() + "充值" + outRechargeOrder.getOrderPrice() + "元"; |
|
|
|
remarks = o.get("province").toString() + o.get("company").toString() + "充值" + outRechargeOrder.getOrderPrice() + "元"; |
|
|
@ -81,6 +81,8 @@ public class OutRechargeOrderController { |
|
|
|
log.error("orderToPay error!"); |
|
|
|
log.error("orderToPay error!"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.PHONE_NUM_IS_ERROR); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.PHONE_NUM_IS_ERROR); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else if (outRechargeOrder.getRechargeModel() == 2) { |
|
|
|
|
|
|
|
remarks = "中石化充值" + outRechargeOrder.getOrderPrice() + "元"; |
|
|
|
} else if (outRechargeOrder.getRechargeModel() == 3 ) { |
|
|
|
} else if (outRechargeOrder.getRechargeModel() == 3 ) { |
|
|
|
// 中石油需要姓名和身份证号
|
|
|
|
// 中石油需要姓名和身份证号
|
|
|
|
if (StringUtils.isBlank(outRechargeOrder.getRechargeName()) || |
|
|
|
if (StringUtils.isBlank(outRechargeOrder.getRechargeName()) || |
|
|
@ -89,8 +91,6 @@ public class OutRechargeOrderController { |
|
|
|
log.error("orderToPay error!"); |
|
|
|
log.error("orderToPay error!"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); |
|
|
|
} |
|
|
|
} |
|
|
|
remarks = "中石化充值" + outRechargeOrder.getOrderPrice() + "元"; |
|
|
|
|
|
|
|
} else if (outRechargeOrder.getRechargeModel() == 2) { |
|
|
|
|
|
|
|
remarks = "中石油充值" + outRechargeOrder.getOrderPrice() + "元"; |
|
|
|
remarks = "中石油充值" + outRechargeOrder.getOrderPrice() + "元"; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
log.error("orderToPay error!"); |
|
|
|
log.error("orderToPay error!"); |
|
|
@ -145,8 +145,6 @@ public class OutRechargeOrderController { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.STATUS_ERROR, ""); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.STATUS_ERROR, ""); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success("操作成功"); |
|
|
|
return ResponseMsgUtil.success("操作成功"); |
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
@ -161,6 +159,7 @@ public class OutRechargeOrderController { |
|
|
|
public ResponseData getUserOrderList( |
|
|
|
public ResponseData getUserOrderList( |
|
|
|
@RequestParam(name = "status", required = false) Integer status, |
|
|
|
@RequestParam(name = "status", required = false) Integer status, |
|
|
|
@RequestParam(name = "orderNo", required = false) String orderNo, |
|
|
|
@RequestParam(name = "orderNo", required = false) String orderNo, |
|
|
|
|
|
|
|
@RequestParam(name = "rechargeModel", required = false) String rechargeModel, |
|
|
|
@RequestParam(name = "pageNum", required = true) Integer pageNum, |
|
|
|
@RequestParam(name = "pageNum", required = true) Integer pageNum, |
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize, |
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize, |
|
|
|
HttpServletRequest request) { |
|
|
|
HttpServletRequest request) { |
|
|
@ -179,6 +178,9 @@ public class OutRechargeOrderController { |
|
|
|
if (StringUtils.isNotBlank(orderNo)) { |
|
|
|
if (StringUtils.isNotBlank(orderNo)) { |
|
|
|
map.put("orderNo", orderNo); |
|
|
|
map.put("orderNo", orderNo); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(rechargeModel)) { |
|
|
|
|
|
|
|
map.put("rechargeModel", rechargeModel); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PageHelper.startPage(pageNum,pageSize); |
|
|
|
PageHelper.startPage(pageNum,pageSize); |
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(outRechargeOrderService.getListRechargeOrder(map))); |
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(outRechargeOrderService.getListRechargeOrder(map))); |
|
|
|