|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
package com.hai.schedule; |
|
|
|
|
|
|
|
|
|
import com.hai.entity.HighChildOrder; |
|
|
|
|
import com.hai.entity.OutRechargeChildOrder; |
|
|
|
|
import com.hai.entity.OutRechargeOrder; |
|
|
|
|
import com.hai.service.OutRechargeChildOrderService; |
|
|
|
@ -116,6 +117,11 @@ public class HighRechargeOrderSchedule { |
|
|
|
|
if (orderList != null && orderList.size() > 0) { |
|
|
|
|
for (OutRechargeOrder order : orderList) { |
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
OutRechargeChildOrder childOrder = rechargeChildOrderService.findByOrderId(order.getId()); |
|
|
|
|
|
|
|
|
|
outRechargeOrderService.refundOrder(order.getId() , childOrder); |
|
|
|
|
|
|
|
|
|
outRechargeOrderService.rechargeOrderToRefund(order.getId()); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("HighCouponSchedule --> expiredCoupon() error!", e); |
|
|
|
|