Crunchy
2024-07-31 f07557c57e8c67a05b913011cc8df38d4523ee0e
system-run/src/main/java/com/yuanchu/mom/backup/MysqlDataBackup.java
@@ -200,10 +200,10 @@
    /**
     * 定时任务,每个月1号的00:00:00
     * 定时任务,每个月1号的00:00:00给下一个月排班
     * 给每个人都进行排班(默认早班)
     */
    //@Scheduled(cron = "0 0 0 1 *?")
    @Scheduled(cron = "0 0 0 1 * ?")
    //@Scheduled(cron = "0/20 * * * * ?")
    private void timerCreateSchedule(){
        System.out.println("开始给每个人进行排班,默认早班======start");
@@ -218,7 +218,7 @@
        performanceShiftAddDto.setUserId(userIds);
        //周次--当月所有
        // 获取当前日期
        LocalDate today = LocalDate.now();
        LocalDate today = LocalDate.now().plusMonths(1);
        // 获取本月的第一天和最后一天
        LocalDate firstDayOfMonth = today.with(TemporalAdjusters.firstDayOfMonth());
        LocalDate lastDayOfMonth = today.with(TemporalAdjusters.lastDayOfMonth());