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

添加区域点击

parent 265f7b2b
package com.mortals.xhx.common.pdu.site; package com.mortals.xhx.common.pdu.site;
import java.util.Date;
import java.util.List;
import com.mortals.framework.model.BaseEntityLong; import com.mortals.framework.model.BaseEntityLong;
import java.util.List;
/** /**
* 站点Pdu对象 * 站点Pdu对象
* *
...@@ -12,7 +13,6 @@ import com.mortals.framework.model.BaseEntityLong; ...@@ -12,7 +13,6 @@ import com.mortals.framework.model.BaseEntityLong;
public class SitePdu extends BaseEntityLong { public class SitePdu extends BaseEntityLong {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 站点名称 * 站点名称
*/ */
......
...@@ -196,7 +196,9 @@ public class SitestatServiceImpl extends AbstractCRUDServiceImpl<SitestatDao, Si ...@@ -196,7 +196,9 @@ public class SitestatServiceImpl extends AbstractCRUDServiceImpl<SitestatDao, Si
res.setPageInfo(pageInfo); res.setPageInfo(pageInfo);
} else { } else {
SitePdu sitePdu = new SitePdu(); 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); Rest<List<SitePdu>> result = siteFeign.getFlatSitesByAreaIds(sitePdu);
log.info("areaSiteList:{}",JSON.toJSONString(result)); log.info("areaSiteList:{}",JSON.toJSONString(result));
if (result.getCode() == YesNoEnum.YES.getValue()) { 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