Parcourir la source

医保局代码生成数据多生成了1天的数据

zfc il y a 1 an
Parent
commit
d7bfec9cfa

+ 0 - 6
mjava-yibaoju/src/main/java/com/malk/yibaoju/controller/YBJController.java

@@ -277,13 +277,7 @@ public class YBJController {
 
     @RequestMapping("test")
     McR test(HttpServletRequest request) {
-        ybjService.syncCreatePlan();
         return McR.success();
     }
 
-
-
-
-
-
 }

+ 3 - 3
mjava-yibaoju/src/main/java/com/malk/yibaoju/service/impl/YBJServiceImpl.java

@@ -315,7 +315,7 @@ public class YBJServiceImpl implements YBJService {
         //获取本月天数
         int daysInMonth = currentDate.lengthOfMonth();
 
-        for (int i = 0; i <(daysInMonth-dayOfMonth)+1 ; i++) {
+        for (int i = 0; i <daysInMonth-dayOfMonth ; i++) {
             //获取当前日期是本月几号
             LocalDate currentDay = LocalDate.now();
             //获取是周几
@@ -398,7 +398,7 @@ public class YBJServiceImpl implements YBJService {
         //获取下月月天数
         int daysInMonth = firstDayOfNextMonth.lengthOfMonth();
 
-        for (int i = 0; i <=(daysInMonth-dayOfMonth)+1 ; i++) {
+        for (int i = 0; i <=daysInMonth-dayOfMonth ; i++) {
             //获取是周几
             String dayOfWeek = firstDayOfNextMonth.plusDays(i).getDayOfWeek().getDisplayName(TextStyle.FULL, new Locale("zh", "CN"));
             //获取循环每天的日期
@@ -497,7 +497,7 @@ public class YBJServiceImpl implements YBJService {
         //获取本月天数
         int daysInMonth = currentDate.lengthOfMonth();
             //重新创建计划任务
-            for (int i = 0; i <(daysInMonth-dayOfMonth)+1 ; i++) {
+            for (int i = 0; i <daysInMonth-dayOfMonth ; i++) {
                 //获取是周几
                 String dayOfWeek = currentDate.plusDays(i).getDayOfWeek().getDisplayName(TextStyle.FULL, new Locale("zh", "CN"));
                 //获取循环每天的日期