ProjectPlanTest.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package test;
  2. import com.gyee.SpringbootStart;
  3. import com.gyee.frame.common.spring.SpringUtils;
  4. import com.gyee.frame.controller.projectplan.ProjectPlanController;
  5. import lombok.SneakyThrows;
  6. import org.springframework.boot.SpringApplication;
  7. public class ProjectPlanTest {
  8. @SneakyThrows
  9. public static void main(String[] args) {
  10. SpringApplication.run(SpringbootStart.class, args);
  11. String wpId="MHS_FDC";
  12. String pjId="MHS01_GC";
  13. String year="2021";
  14. ProjectPlanController projectPlanController= SpringUtils.getBean("projectPlanController");
  15. // AjaxResult ajaxResult =projectPlanController.getProjectPlanVo(null,null,"2021");
  16. //
  17. // List<ProjectPlanVo> test=(List<ProjectPlanVo>)ajaxResult.get("data");
  18. // for(ProjectPlanVo wtd:test)
  19. // {
  20. // System.out.println(wtd.getGc01()+ wtd.getGc02()+ wtd.getGc03()+ wtd.getGc04()+wtd.getGc05()+wtd.getGc06()+
  21. // wtd.getGc07()+wtd.getGc08()+wtd.getGc09()+wtd.getGc10()+wtd.getGc11()+wtd.getGc12()+wtd.getGeneratingcapacity()+
  22. // wtd.getWindpower()+wtd.getProjectid()
  23. // );
  24. // }
  25. // AjaxResult ajaxResult =projectPlanController.getSingleProjectPlan(pjId,year);
  26. //
  27. // ProjectPlanVo wtd=(ProjectPlanVo)ajaxResult.get("data");
  28. // System.out.println(wtd.getGc01()+ wtd.getGc02()+ wtd.getGc03()+ wtd.getGc04()+wtd.getGc05()+wtd.getGc06()+
  29. // wtd.getGc07()+wtd.getGc08()+wtd.getGc09()+wtd.getGc10()+wtd.getGc11()+wtd.getGc12()+wtd.getGeneratingcapacity()+
  30. // wtd.getWindpower()+wtd.getProjectid()
  31. // );
  32. //
  33. // wtd.setGc01("111");
  34. // wtd.setGc02("222");
  35. //
  36. // AjaxResult valeu=projectPlanController.saveData(wtd);
  37. //
  38. // int temp=(Integer)valeu.get("data");
  39. // System.out.println(temp);
  40. }
  41. }