Commit adb898e5 authored by 赵啸非's avatar 赵啸非

添加区域点击

parent 265f7b2b
package com.mortals.xhx.common.pdu.site;
import java.util.Date;
import java.util.List;
import com.mortals.framework.model.BaseEntityLong;
import java.util.List;
/**
* 站点Pdu对象
*
......@@ -12,7 +13,6 @@ import com.mortals.framework.model.BaseEntityLong;
public class SitePdu extends BaseEntityLong {
private static final long serialVersionUID = 1L;
/**
* 站点名称
*/
......
......@@ -196,7 +196,9 @@ public class SitestatServiceImpl extends AbstractCRUDServiceImpl<SitestatDao, Si
res.setPageInfo(pageInfo);
} else {
SitePdu sitePdu = new SitePdu();
sitePdu.setAreaCodeList(Arrays.asList(entity.getAreaCode()));
List<String> areaCodeList = new ArrayList<>();
areaCodeList.add(entity.getAreaCode());
sitePdu.setAreaCodeList(areaCodeList);
Rest<List<SitePdu>> result = siteFeign.getFlatSitesByAreaIds(sitePdu);
log.info("areaSiteList:{}",JSON.toJSONString(result));
if (result.getCode() == YesNoEnum.YES.getValue()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment