查询排行榜列表

master
kanade 3 years ago
parent f23da1e915
commit 7b3bb76390

@ -51,16 +51,16 @@ public class ScheduleController {
taskService.update(ew);
}
// @Scheduled(cron = "0 0 0 1 1/1 ?")
@Scheduled(cron = "0 0/1 * * * ? ")
// @Scheduled(cron = "0 0/1 * * * ? ")
@Scheduled(cron = "0 0 0 1 1/1 ?")
public void taskRank() {
//获取开始时间和结束时间
Calendar cal = Calendar.getInstance();
cal.setTime(new Date());
cal.add(Calendar.DAY_OF_MONTH,-1);
cal.add(Calendar.MONTH,-1);
cal.set(Calendar.DAY_OF_MONTH,1);
Date timeStart = cal.getTime();
cal.getActualMaximum(Calendar.DAY_OF_MONTH);
cal.set(Calendar.DAY_OF_MONTH,cal.getActualMaximum(Calendar.DAY_OF_MONTH));
Date timeEnd = cal.getTime();
//获取员工排名进排名数据库
QueryWrapper<RankListDTO> queryWrapper = new QueryWrapper<>();

Loading…
Cancel
Save