| | |
| | | /** |
| | | * 定时计算用户过期积分 |
| | | */ |
| | | @Scheduled(cron = "0 10 1 * * ?") |
| | | @Scheduled(cron = "0 10 0 * * ?") |
| | | public void calculatingExpiredPoint() { |
| | | log.info("过期积分计算开始:" + DateFormatUtils.format(System.currentTimeMillis(), "yyyy-MM-dd HH:mm:ss")); |
| | | LocalDate now = LocalDate.now().minusDays(1);//前一天 |
| | |
| | | /** |
| | | * 积分兑换券过期 |
| | | */ |
| | | @Scheduled(cron = "0 46 11 * * ?") |
| | | @Scheduled(cron = "0 5 0 * * ?") |
| | | public void expiredPointGoodsRecord() { |
| | | log.info("积分兑换券过期计算开始:" + DateFormatUtils.format(System.currentTimeMillis(), "yyyy-MM-dd HH:mm:ss")); |
| | | pointGoodsRecordMapper.updateExpiredPointGoodsRecord(); |