Browse Source

lrl-2021-11-11

lirl 3 years ago
parent
commit
cc62f87364

+ 0 - 1
src/main/java/com/steerinfo/ems/foldthevalues/service/impl/FoldTheValuesServiceImpl.java

@@ -76,7 +76,6 @@ public class FoldTheValuesServiceImpl extends BaseServiceImpl<FoldTheValues, Str
 
             }
         }
-        this.insertNewDate();
     }
     public void insertNewDate(){
         Calendar calendar = Calendar.getInstance();

+ 1 - 0
src/main/java/com/steerinfo/task/SpringCronTask.java

@@ -316,6 +316,7 @@ public class SpringCronTask implements SchedulingConfigurer{
 						 if(c.get(Calendar.DATE) == 1){
 						 foldTheValuesService.getMonthData();
 						 }
+						 foldTheValuesService.insertNewDate();
 					 } catch (Exception e) {
 						 e.printStackTrace();
 					 }