|
|
@ -194,7 +194,6 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Cached(cacheType = CacheType.REMOTE,name="mobile:", key = "#orderNo",expire = 3600*24*30) |
|
|
|
|
|
|
|
public OutRechargeOrder findByOrderNo(String orderNo) { |
|
|
|
public OutRechargeOrder findByOrderNo(String orderNo) { |
|
|
|
|
|
|
|
|
|
|
|
OutRechargeOrderExample example = new OutRechargeOrderExample(); |
|
|
|
OutRechargeOrderExample example = new OutRechargeOrderExample(); |
|
|
@ -933,7 +932,6 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService { |
|
|
|
|
|
|
|
|
|
|
|
for (String s : rechargePlatform) { |
|
|
|
for (String s : rechargePlatform) { |
|
|
|
// 尖椒充值
|
|
|
|
// 尖椒充值
|
|
|
|
System.out.println("话费定时任务 -> 需要重新充值:尖椒开始"); |
|
|
|
|
|
|
|
if (s.equals("1") && type == 1) { |
|
|
|
if (s.equals("1") && type == 1) { |
|
|
|
object.put("out_order_id", orderNo); |
|
|
|
object.put("out_order_id", orderNo); |
|
|
|
object.put("amount", outRechargePrice.getRechargePrice()); |
|
|
|
object.put("amount", outRechargePrice.getRechargePrice()); |
|
|
@ -955,14 +953,13 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService { |
|
|
|
map.put("sourceId" , outRechargePrice.getId()); |
|
|
|
map.put("sourceId" , outRechargePrice.getId()); |
|
|
|
map.put("rechargePlatform" , type); |
|
|
|
map.put("rechargePlatform" , type); |
|
|
|
BsRechargeCode rechargeCode = rechargeCodeService.findByMap(map); |
|
|
|
BsRechargeCode rechargeCode = rechargeCodeService.findByMap(map); |
|
|
|
System.out.println("话费定时任务 -> 需要重新充值:龙阅开始"); |
|
|
|
|
|
|
|
object.put("out_trade_num", orderNo); |
|
|
|
object.put("out_trade_num", orderNo); |
|
|
|
object.put("product_id", rechargeCode.getGoodsId()); |
|
|
|
object.put("product_id", rechargeCode.getGoodsId()); |
|
|
|
object.put("mobile", outRechargeOrder.getRechargeContent()); |
|
|
|
object.put("mobile", outRechargeOrder.getRechargeContent()); |
|
|
|
object.put("notifyUrl", CommonSysConst.getSysConfig().getLyNotifyUrl()); |
|
|
|
object.put("notifyUrl", CommonSysConst.getSysConfig().getLyNotifyUrl()); |
|
|
|
JSONObject returnObject = RechargeConfig.rechargeOrderByLy(object); |
|
|
|
JSONObject returnObject = RechargeConfig.rechargeOrderByLy(object); |
|
|
|
object.put("return_content", returnObject); |
|
|
|
object.put("return_content", returnObject); |
|
|
|
if (returnObject != null && returnObject.getLong("errno") == 0) { |
|
|
|
if (returnObject.getLong("errno") == 0) { |
|
|
|
childOrder.setStatus(102); |
|
|
|
childOrder.setStatus(102); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
childOrder.setStatus(103); |
|
|
|
childOrder.setStatus(103); |
|
|
@ -976,8 +973,6 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService { |
|
|
|
map.put("sourceId" , outRechargePrice.getId()); |
|
|
|
map.put("sourceId" , outRechargePrice.getId()); |
|
|
|
map.put("rechargePlatform" , type); |
|
|
|
map.put("rechargePlatform" , type); |
|
|
|
BsRechargeCode rechargeCode = rechargeCodeService.findByMap(map); |
|
|
|
BsRechargeCode rechargeCode = rechargeCodeService.findByMap(map); |
|
|
|
|
|
|
|
|
|
|
|
System.out.println("话费定时任务 -> 需要重新充值:龙阅开始"); |
|
|
|
|
|
|
|
object.put("agentOrderId", orderNo); |
|
|
|
object.put("agentOrderId", orderNo); |
|
|
|
object.put("productId", rechargeCode.getGoodsId()); |
|
|
|
object.put("productId", rechargeCode.getGoodsId()); |
|
|
|
object.put("mobile", outRechargeOrder.getRechargeContent()); |
|
|
|
object.put("mobile", outRechargeOrder.getRechargeContent()); |
|
|
|