123
This commit is contained in:
@@ -18,7 +18,7 @@ public class IncomeStatisticsJob {
|
||||
try {
|
||||
dayIncomeStatisticsService.refreshByDate(LocalDate.now());
|
||||
}catch (Exception e){
|
||||
log.error("保存昨日收益统计失败!",e);
|
||||
log.error("更新每日收益统计失败!",e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.ruoyi.cai.job;
|
||||
|
||||
import com.ruoyi.cai.service.DayIncomeStatisticsService;
|
||||
import com.ruoyi.cai.service.RankService;
|
||||
import com.ruoyi.cai.service.UserService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
@@ -63,9 +64,17 @@ public class RankJob {
|
||||
try {
|
||||
dayIncomeStatisticsService.refreshByDate(date);
|
||||
}catch (Exception e){
|
||||
log.error("保存昨日收益统计失败!",e);
|
||||
log.error("更新昨日收益统计失败!",e);
|
||||
}
|
||||
|
||||
try {
|
||||
userService.refreshByAge();
|
||||
}catch (Exception e){
|
||||
log.error("刷新用户年龄失败!",e);
|
||||
}
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private UserService userService;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user