|
@@ -8,6 +8,7 @@ import com.gyee.frame.model.auto.*;
|
|
import com.gyee.frame.model.custom.MatrixVo;
|
|
import com.gyee.frame.model.custom.MatrixVo;
|
|
import com.gyee.frame.model.custom.PointData;
|
|
import com.gyee.frame.model.custom.PointData;
|
|
import com.gyee.frame.model.custom.StopTypeTreeVo;
|
|
import com.gyee.frame.model.custom.StopTypeTreeVo;
|
|
|
|
+import com.gyee.frame.model.custom.WindpowerstationVo;
|
|
import com.gyee.frame.service.WindTurbineTestingPointAiService;
|
|
import com.gyee.frame.service.WindTurbineTestingPointAiService;
|
|
import com.gyee.frame.service.Windpowerinfoday3Service;
|
|
import com.gyee.frame.service.Windpowerinfoday3Service;
|
|
import com.gyee.frame.service.Windturbineinfoday3Service;
|
|
import com.gyee.frame.service.Windturbineinfoday3Service;
|
|
@@ -110,16 +111,40 @@ public class PowerCompareController {
|
|
public AjaxResult windfarmByCmAjax(String cmId) {
|
|
public AjaxResult windfarmByCmAjax(String cmId) {
|
|
|
|
|
|
|
|
|
|
- List<Windpowerstation> vos=new ArrayList<>();
|
|
|
|
|
|
+ List<WindpowerstationVo> vos=new ArrayList<>();
|
|
if(StringUtils.notEmp(cmId))
|
|
if(StringUtils.notEmp(cmId))
|
|
{
|
|
{
|
|
|
|
|
|
Map<String, List<Windpowerstation>> map = InitialRunner.cm_wpmap;
|
|
Map<String, List<Windpowerstation>> map = InitialRunner.cm_wpmap;
|
|
|
|
+
|
|
|
|
+
|
|
if(null!=map && !map.isEmpty())
|
|
if(null!=map && !map.isEmpty())
|
|
{
|
|
{
|
|
if(map.containsKey(cmId))
|
|
if(map.containsKey(cmId))
|
|
{
|
|
{
|
|
- vos=map.get(cmId);
|
|
|
|
|
|
+ List<Windpowerstation> ls=map.get(cmId);
|
|
|
|
+ if(!ls.isEmpty())
|
|
|
|
+ {
|
|
|
|
+ for(Windpowerstation wp:ls)
|
|
|
|
+ {
|
|
|
|
+ WindpowerstationVo vo=new WindpowerstationVo();
|
|
|
|
+ vo.setCapacity(wp.getCapacity());
|
|
|
|
+ vo.setCode(wp.getCode());
|
|
|
|
+ vo.setCompanyid(wp.getCompanyid());
|
|
|
|
+ vo.setId(wp.getId());
|
|
|
|
+ vo.setLatitude(wp.getLatitude());
|
|
|
|
+ vo.setLongitude(wp.getLongitude());
|
|
|
|
+ vo.setName(wp.getName());
|
|
|
|
+ vo.setQuantity(wp.getQuantity());
|
|
|
|
+
|
|
|
|
+ if(InitialRunner.pjsmap.containsKey(wp.getId()))
|
|
|
|
+ {
|
|
|
|
+ vo.setPjls(InitialRunner.pjsmap.get(wp.getId()));
|
|
|
|
+ }
|
|
|
|
+ vos.add(vo);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|