|
@@ -233,9 +233,20 @@ public class WtInfoPushService {
|
|
|
map.put("pjid", wt.getProjectid());
|
|
|
map.put("lnid", wt.getLineid());
|
|
|
map.put("code", wt.getCode());
|
|
|
- Line ln= InitialRunner.lnmap.get(wt.getLineid());
|
|
|
- map.put("lnname", ln.getName());
|
|
|
|
|
|
+ if( InitialRunner.lnmap.containsKey(wt.getLineid()))
|
|
|
+ {
|
|
|
+ Line ln= InitialRunner.lnmap.get(wt.getLineid());
|
|
|
+ map.put("lnname", ln.getName());
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ if( InitialRunner.wpmap.containsKey(wt.getWindpowerstationid()))
|
|
|
+ {
|
|
|
+ Windpowerstation wp= InitialRunner.wpmap.get(wt.getWindpowerstationid());
|
|
|
+ map.put("wpname", wp.getName());
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
if(StringUtils.notEmp(wt.getModelid()))
|
|
|
{
|
|
@@ -255,7 +266,7 @@ public class WtInfoPushService {
|
|
|
|
|
|
if(StringUtils.notEmp(wtc.getUniformcode()))
|
|
|
{
|
|
|
- codels.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, wtc.getUniformcode()).getCode());
|
|
|
+ codels.add(photovoltaicTestingPointNewService.getPhotovoltaicTestingPointNew(id, wtc.getUniformcode()).getCode());
|
|
|
|
|
|
WtTargetConfigVo vo=new WtTargetConfigVo();
|
|
|
vo.setCode(wtc.getCode());
|
|
@@ -263,7 +274,15 @@ public class WtInfoPushService {
|
|
|
vo.setName(wtc.getName());
|
|
|
vo.setPointtype(wtc.getPointtype());
|
|
|
vo.setTypes(wtc.getTypes());
|
|
|
- vo.setUnit(wtc.getUnit());
|
|
|
+
|
|
|
+ String unit=wtc.getUnit().toLowerCase();
|
|
|
+ if(unit.equals("null"))
|
|
|
+ {
|
|
|
+ vo.setUnit(null);
|
|
|
+ }else
|
|
|
+ {
|
|
|
+ vo.setUnit(wtc.getUnit());
|
|
|
+ }
|
|
|
vo.setRate(wtc.getRate());
|
|
|
vos.add(vo);
|
|
|
}
|