AnalysisTest.java 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package cn.gyee.tamplate;
  2. import cn.gyee.tamplate.service.analysis.AnalysisNewService;
  3. import org.junit.Test;
  4. import org.junit.runner.RunWith;
  5. import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
  6. import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
  7. import org.springframework.boot.test.context.SpringBootTest;
  8. import org.springframework.test.context.junit4.SpringRunner;
  9. import javax.annotation.Resource;
  10. /**
  11. * @ClassName : AnalysisTest
  12. * @Author : xieshengjie
  13. * @Date: 2021/4/16 10:34
  14. * @Description :
  15. */
  16. @RunWith(SpringRunner.class)
  17. @EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
  18. @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
  19. public class AnalysisTest {
  20. @Resource
  21. private AnalysisNewService analysisNewService;
  22. @Test
  23. public void test3() throws Exception{
  24. // analysisNewService.savaAnalysisGfmain("2021-04-01", "2021-04-22");
  25. // analysisNewService.saveAnalysisGfTableBottom("2021-07-10", "2021-08-02");
  26. // analysisNewService.savePvProject("2021-04-01", "2021-04-22");
  27. // analysisNewService.savePvStation("2021-04-01", "2021-04-22");
  28. // analysisNewService.saveAnalysisTableBottom("2021-10-28", "2021-10-28");
  29. // analysisNewService.savePvProject("2021-10-29", "2021-10-29");
  30. // analysisNewService.savePvStation("2021-10-29", "2021-10-29");
  31. analysisNewService.savePvProject("2021-11-22", "2021-11-22");
  32. analysisNewService.savePvStation("2021-11-22", "2021-11-22");
  33. // analysisNewService.savaAnalysismain("2021-04-25", "2021-04-25");
  34. // analysisNewService.saveAnalysisTableBottom("2021-07-10", "2021-08-02");
  35. // analysisNewService.saveWindProject("2021-10-30", "2021-10-30");
  36. // analysisNewService.saveWindStation("2021-04-26", "2021-04-26");
  37. // analysisNewService.saveCompany("2021-04-26", "2021-04-26");
  38. }
  39. }