瀏覽代碼

获取当前周逻辑调整

dzx 4 月之前
父節點
當前提交
8b00dc9f88
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/xjrsoft/module/schedule/controller/ScheduleController.java

+ 1 - 1
src/main/java/com/xjrsoft/module/schedule/controller/ScheduleController.java

@@ -175,7 +175,7 @@ public class ScheduleController {
                 LocalDateTime startDate = startDateTime.plusDays(i * 6).withHour(0).withMinute(0).withSecond(0).withNano(0);
                 LocalDateTime endDate = startDateTime.plusDays((i + 1) * 6).withHour(23).withMinute(59).withSecond(59).withNano(9999);
                 if (now.isAfter(startDate) && now.isBefore(endDate)) {
-                    return RT.ok(i + 1);
+                    return RT.ok(i);
                 }
             }
         }