|
|
|
@@ -58,7 +58,7 @@ public class CouponOrderExpiringSchedule { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Scheduled(cron = "0 0 5 * * ?") // 每天凌晨00:05 |
|
|
|
@Scheduled(cron = "0 0/5 * * * ?") // 每天凌晨00:05 |
|
|
|
// @Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 |
|
|
|
public void couponOrderExpiringSchedule() { |
|
|
|
|
|
|
|
@@ -71,7 +71,7 @@ public class CouponOrderExpiringSchedule { |
|
|
|
try { |
|
|
|
proxy.couponOrderExpire(co, true); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage(),e); |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
@@ -79,7 +79,7 @@ public class CouponOrderExpiringSchedule { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Scheduled(cron = "0 0 5 * * ?") // 每天凌晨00:05 |
|
|
|
@Scheduled(cron = "0 0/5 * * * ?") // 每天凌晨00:05 |
|
|
|
// @Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 |
|
|
|
public void couponOrderRefundSchedule() { |
|
|
|
CouponOrderExpiringSchedule proxy = (CouponOrderExpiringSchedule) AopContext.currentProxy(); |
|
|
|
@@ -90,7 +90,7 @@ public class CouponOrderExpiringSchedule { |
|
|
|
try { |
|
|
|
proxy.refund(co); |
|
|
|
}catch(Exception e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
logger.error(e.getMessage(),e); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
@@ -191,7 +191,7 @@ public class CouponOrderExpiringSchedule { |
|
|
|
} |
|
|
|
|
|
|
|
} catch (MallinkException e) { |
|
|
|
logger.error("券过期不退款: " + co.getId() + " ERROR:" + e.getMessage()); |
|
|
|
logger.error("券过期不退款: " + co.getId() + " ERROR:" + e.getMessage(),e); |
|
|
|
throw new MallinkException(e.getErrorCode(), e.getMessage()); |
|
|
|
} |
|
|
|
|
|
|
|
|