|
@@ -480,7 +480,17 @@ public class InitialRunner implements CommandLineRunner {
|
|
|
|
|
|
WindpowerstationExample windpowerstationExample = new WindpowerstationExample();
|
|
WindpowerstationExample windpowerstationExample = new WindpowerstationExample();
|
|
windpowerstationExample.setOrderByClause("ordernum ASC");
|
|
windpowerstationExample.setOrderByClause("ordernum ASC");
|
|
-// windpowerstationExample.createCriteria().andIdNotLike("%SY_FDC%");
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ WindpowerstationExample.Criteria cr=windpowerstationExample.createCriteria();
|
|
|
|
+ cr.andIdNotLike("%HR_GDC%");
|
|
|
|
+ cr.andIdNotLike("%PL_GDC%");
|
|
|
|
+ cr.andIdNotLike("%TL_GDC%");
|
|
|
|
+ cr.andIdNotLike("%TZ_GDC%");
|
|
|
|
+ cr.andIdNotLike("%YG_GDC%");
|
|
|
|
+ cr.andIdNotLike("%YX_GDC%");
|
|
|
|
+ cr.andIdNotLike("%YY_GDC%");
|
|
|
|
+
|
|
wpallls = windpowerstationService.selectByExample(windpowerstationExample);
|
|
wpallls = windpowerstationService.selectByExample(windpowerstationExample);
|
|
if (!wpallls.isEmpty()) {
|
|
if (!wpallls.isEmpty()) {
|
|
for (Windpowerstation wp : wpallls) {
|
|
for (Windpowerstation wp : wpallls) {
|
|
@@ -564,9 +574,18 @@ public class InitialRunner implements CommandLineRunner {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ List<String> pjidls=new ArrayList<>();
|
|
ProjectExample projectExample = new ProjectExample();
|
|
ProjectExample projectExample = new ProjectExample();
|
|
projectExample.setOrderByClause("ordernum ASC");
|
|
projectExample.setOrderByClause("ordernum ASC");
|
|
// projectExample.createCriteria().andWindpowerstationidNotLike("%SY_FDC%");
|
|
// projectExample.createCriteria().andWindpowerstationidNotLike("%SY_FDC%");
|
|
|
|
+ ProjectExample.Criteria pjcr=projectExample.createCriteria();
|
|
|
|
+ pjcr.andWindpowerstationidNotLike("%HR_GDC%");
|
|
|
|
+ pjcr.andWindpowerstationidNotLike("%PL_GDC%");
|
|
|
|
+ pjcr.andWindpowerstationidNotLike("%TL_GDC%");
|
|
|
|
+ pjcr.andWindpowerstationidNotLike("%TZ_GDC%");
|
|
|
|
+ pjcr.andWindpowerstationidNotLike("%YG_GDC%");
|
|
|
|
+ pjcr.andWindpowerstationidNotLike("%YX_GDC%");
|
|
|
|
+ pjcr.andWindpowerstationidNotLike("%YY_GDC%");
|
|
pjallls = projectService.selectByExample(projectExample);
|
|
pjallls = projectService.selectByExample(projectExample);
|
|
|
|
|
|
if (!pjallls.isEmpty()) {
|
|
if (!pjallls.isEmpty()) {
|
|
@@ -584,12 +603,14 @@ public class InitialRunner implements CommandLineRunner {
|
|
pjls.add(pj);
|
|
pjls.add(pj);
|
|
pjsmap.put(pj.getWindpowerstationid(), pjls);
|
|
pjsmap.put(pj.getWindpowerstationid(), pjls);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ pjidls.add(pj.getId());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
LineExample lineExample = new LineExample();
|
|
LineExample lineExample = new LineExample();
|
|
lineExample.setOrderByClause("ordernum ASC");
|
|
lineExample.setOrderByClause("ordernum ASC");
|
|
- lineExample.createCriteria().getAllCriteria();
|
|
|
|
|
|
+ lineExample.createCriteria().andProjectidIn(pjidls);
|
|
lineallls = lineService.selectByExample(lineExample);
|
|
lineallls = lineService.selectByExample(lineExample);
|
|
|
|
|
|
if (!lineallls.isEmpty()) {
|
|
if (!lineallls.isEmpty()) {
|
|
@@ -615,7 +636,7 @@ public class InitialRunner implements CommandLineRunner {
|
|
|
|
|
|
WindturbineExample windturbineExample = new WindturbineExample();
|
|
WindturbineExample windturbineExample = new WindturbineExample();
|
|
windturbineExample.setOrderByClause("ID ASC");
|
|
windturbineExample.setOrderByClause("ID ASC");
|
|
-
|
|
|
|
|
|
+ // windturbineExample.createCriteria().andProjectidIn(pjidls);
|
|
wtallls = windturbineService.selectByExample(windturbineExample);
|
|
wtallls = windturbineService.selectByExample(windturbineExample);
|
|
|
|
|
|
if (!wtallls.isEmpty()) {
|
|
if (!wtallls.isEmpty()) {
|
|
@@ -796,11 +817,18 @@ public class InitialRunner implements CommandLineRunner {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- WindturbinetestingpointnewExample windTurbineTestingPointAiExample=new WindturbinetestingpointnewExample();
|
|
|
|
|
|
|
|
- List<Windturbinetestingpointnew> wtAilist= windTurbineTestingPointAiService.selectByExample(windTurbineTestingPointAiExample);
|
|
|
|
|
|
|
|
|
|
+ List<Windturbinetestingpointnew> wtAilist= new ArrayList<>();
|
|
|
|
|
|
|
|
+ for (Windpowerstation wp : wpallls) {
|
|
|
|
+ if (wp.getId().endsWith("FDC")) {
|
|
|
|
+ WindturbinetestingpointnewExample windTurbineTestingPointAiExample=new WindturbinetestingpointnewExample();
|
|
|
|
+ windTurbineTestingPointAiExample.createCriteria().andWindpowerstationidEqualTo(wp.getId());
|
|
|
|
+ List<Windturbinetestingpointnew> ailist= windTurbineTestingPointAiService.selectByExample(windTurbineTestingPointAiExample);
|
|
|
|
+ wtAilist.addAll(ailist);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
if(wtAilist != null && !wtAilist.isEmpty()){
|
|
if(wtAilist != null && !wtAilist.isEmpty()){
|
|
for(Windturbinetestingpointnew mp : wtAilist){
|
|
for(Windturbinetestingpointnew mp : wtAilist){
|