|
@@ -2,6 +2,7 @@ package com.gyee.frame.common.spring;
|
|
|
|
|
|
import com.gyee.frame.model.auto.*;
|
|
|
import com.gyee.frame.service.*;
|
|
|
+import com.gyee.frame.util.StringUtils;
|
|
|
import org.springframework.boot.CommandLineRunner;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
@@ -94,6 +95,10 @@ public class InitialRunner implements CommandLineRunner {
|
|
|
wtls= windturbineService.selectByExample(windturbineExample);
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if(wtls!=null && !wtls.isEmpty()){
|
|
|
|
|
|
for(int i=0;i<wtls.size();i++){
|
|
@@ -134,6 +139,27 @@ public class InitialRunner implements CommandLineRunner {
|
|
|
// }
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ List<Windturbine> ls=wp_wtmap.get("SBQ_FDC");
|
|
|
+ List<Windturbine> temp1=new ArrayList<>();
|
|
|
+ List<Windturbine> temp2=new ArrayList<>();
|
|
|
+ for(Windturbine wt:ls)
|
|
|
+ {
|
|
|
+ String str=wt.getId().substring(wt.getId().length()-3,wt.getId().length());
|
|
|
+ if(StringUtils.isNumeric(str))
|
|
|
+ {
|
|
|
+ temp2.add(wt);
|
|
|
+ }else
|
|
|
+ {
|
|
|
+ temp1.add(wt);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ ls.clear();
|
|
|
+ ls.addAll(temp1);
|
|
|
+ ls.addAll(temp2);
|
|
|
+ wp_wtmap.put("SBQ_FDC",ls);
|
|
|
}
|
|
|
|
|
|
|