|
@@ -1,6 +1,7 @@
|
|
|
package com.gyee.failurestatistics.init;
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.gyee.failurestatistics.model.auto.*;
|
|
|
import com.gyee.failurestatistics.service.auto.*;
|
|
|
import org.slf4j.Logger;
|
|
@@ -151,7 +152,10 @@ public class CacheContext implements CommandLineRunner {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- List<ProBasicEquipmentPoint> WindturbinetestingpointaiList = proBasicEquipmentPointService.list();
|
|
|
+
|
|
|
+ QueryWrapper<ProBasicEquipmentPoint> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.like("windpowerstation_id","FDC");
|
|
|
+ List<ProBasicEquipmentPoint> WindturbinetestingpointaiList = proBasicEquipmentPointService.list(queryWrapper);
|
|
|
Map<String, ProBasicEquipmentPoint> map = null;
|
|
|
|
|
|
if(WindturbinetestingpointaiList != null && !WindturbinetestingpointaiList.isEmpty()){
|
|
@@ -167,8 +171,9 @@ public class CacheContext implements CommandLineRunner {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- List<ProBasicPowerstationPoint> wplist = proBasicPowerstationPointService.list();
|
|
|
+ QueryWrapper<ProBasicPowerstationPoint> queryWrapper2 = new QueryWrapper<>();
|
|
|
+ queryWrapper2.like("windpowerstation_id","FDC");
|
|
|
+ List<ProBasicPowerstationPoint> wplist = proBasicPowerstationPointService.list(queryWrapper2);
|
|
|
for (ProBasicPowerstationPoint ProBasicPowerstationPoint : wplist) {
|
|
|
if (wppointmap.containsKey(ProBasicPowerstationPoint.getWindpowerstationId())){
|
|
|
wppointmap.get(ProBasicPowerstationPoint.getWindpowerstationId()).put(ProBasicPowerstationPoint.getUniformCode(),ProBasicPowerstationPoint);
|