|
@@ -215,6 +215,11 @@ public class ScheduleTaskMgr {
|
|
|
timer.schedule(timerTask1,9000);//9秒后执行一次
|
|
|
}
|
|
|
|
|
|
+ @Scheduled(cron = "0 30 0 * * ?")
|
|
|
+ public void initWeilai(){
|
|
|
+ initPumpPowerCons();
|
|
|
+ }
|
|
|
+
|
|
|
@PostConstruct
|
|
|
public void initPumpPowerCons(){
|
|
|
String time = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM"));
|