wzy 2 月之前
父节点
当前提交
4d374577ad

+ 2 - 2
mjava-huagao/src/main/java/com/malk/huagao/schedule/KdScheduleTask.java

@@ -31,8 +31,8 @@ public class KdScheduleTask {
         kdHuaGaoService.syncSTKInventory();
     }
 
-    //每周六 15:00定时处理待处理品数据
-    @Scheduled(cron = "0 0 15 * * 6")
+    //每周六 18:00定时处理待处理品数据
+    @Scheduled(cron = "0 0 18 * * 6")
     public void syncPendingProducts(){
         kdHuaGaoService.syncPendingProducts();
     }

+ 1 - 1
mjava-huagao/src/main/java/com/malk/huagao/service/impl/KdHuaGaoServiceImpl.java

@@ -594,7 +594,7 @@ public class KdHuaGaoServiceImpl implements KdHuaGaoService {
         int year = today.getYear();//获取当前年份
         int month = today.getMonthValue();//当前月份
         WeekFields weekFields = WeekFields.of(Locale.getDefault());
-        int weekOfMonth = today.get(weekFields.weekOfMonth()) - 1;//当前日期是当月的第几周
+        int weekOfMonth = today.get(weekFields.weekOfMonth());//当前日期是当月的第几周
 
         DDR_New ddrNew = new DDR_New();
         int pageSize = 100;