HealthTest.java 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. import com.gyee.healthmodel.HealthmodelMain;
  2. import com.gyee.healthmodel.service.HealthJudgeService;
  3. import com.gyee.healthmodel.util.SpringUtils;
  4. import lombok.SneakyThrows;
  5. import org.springframework.boot.SpringApplication;
  6. public class HealthTest {
  7. @SneakyThrows
  8. public static void main(String[] args) {
  9. SpringApplication.run(HealthmodelMain.class, args);
  10. System.out.println("调度程序执行开始!........");
  11. HealthJudgeService healthJudgeService= SpringUtils.getBean("healthJudgeService");
  12. healthJudgeService.healthJudge();
  13. // healthJudgeService.changeHealthModelValue();
  14. // RecommenmainsService recommenmainsService= SpringUtils.getBean("recommenmainsService");
  15. // Calendar cal = Calendar.getInstance();
  16. // recommenmainsService.deleteList(cal.getTime());
  17. //// recommenmainsService.recommenMainWt();
  18. // healthJudgeService.saveWindturbineBjCount();
  19. // healthJudgeService.savePartbjcount();
  20. //
  21. // HealthReportService healthReportService= SpringUtils.getBean("healthReportService");
  22. // healthReportService.createHealthReport(new Date());
  23. System.out.println("调度任务处理完成!........");
  24. }
  25. }