1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- package test;
- import com.gyee.SpringbootStart;
- import com.gyee.frame.common.spring.SpringUtils;
- import com.gyee.frame.controller.projectplan.ProjectPlanController;
- import lombok.SneakyThrows;
- import org.springframework.boot.SpringApplication;
- public class ProjectPlanTest {
- @SneakyThrows
- public static void main(String[] args) {
- SpringApplication.run(SpringbootStart.class, args);
- String wpId="MHS_FDC";
- String pjId="MHS01_GC";
- String year="2021";
- ProjectPlanController projectPlanController= SpringUtils.getBean("projectPlanController");
- // AjaxResult ajaxResult =projectPlanController.getProjectPlanVo(null,null,"2021");
- //
- // List<ProjectPlanVo> test=(List<ProjectPlanVo>)ajaxResult.get("data");
- // for(ProjectPlanVo wtd:test)
- // {
- // System.out.println(wtd.getGc01()+ wtd.getGc02()+ wtd.getGc03()+ wtd.getGc04()+wtd.getGc05()+wtd.getGc06()+
- // wtd.getGc07()+wtd.getGc08()+wtd.getGc09()+wtd.getGc10()+wtd.getGc11()+wtd.getGc12()+wtd.getGeneratingcapacity()+
- // wtd.getWindpower()+wtd.getProjectid()
- // );
- // }
- // AjaxResult ajaxResult =projectPlanController.getSingleProjectPlan(pjId,year);
- //
- // ProjectPlanVo wtd=(ProjectPlanVo)ajaxResult.get("data");
- // System.out.println(wtd.getGc01()+ wtd.getGc02()+ wtd.getGc03()+ wtd.getGc04()+wtd.getGc05()+wtd.getGc06()+
- // wtd.getGc07()+wtd.getGc08()+wtd.getGc09()+wtd.getGc10()+wtd.getGc11()+wtd.getGc12()+wtd.getGeneratingcapacity()+
- // wtd.getWindpower()+wtd.getProjectid()
- // );
- //
- // wtd.setGc01("111");
- // wtd.setGc02("222");
- //
- // AjaxResult valeu=projectPlanController.saveData(wtd);
- //
- // int temp=(Integer)valeu.get("data");
- // System.out.println(temp);
- }
- }
|