Commit fbee338c authored by 朱晨阳's avatar 朱晨阳

户用管理和并网管理列表添加字段

parent 17576467
...@@ -73,4 +73,7 @@ public class BasicGridAcceptanceDto extends BaseDto { ...@@ -73,4 +73,7 @@ public class BasicGridAcceptanceDto extends BaseDto {
//并网登记id //并网登记id
private Long fonGridId; private Long fonGridId;
// 电站安装规模(kW)
private String scale;
} }
...@@ -54,6 +54,8 @@ public class BasicGridAcceptanceServiceImpl ...@@ -54,6 +54,8 @@ public class BasicGridAcceptanceServiceImpl
@Autowired @Autowired
PeasantHouseholdMapper peasantHouseholdMapper; PeasantHouseholdMapper peasantHouseholdMapper;
@Autowired @Autowired
HouseholdContractMapper householdContractMapper;
@Autowired
private CommonServiceImpl commonService; private CommonServiceImpl commonService;
private final String OK = "0"; private final String OK = "0";
...@@ -82,6 +84,15 @@ public class BasicGridAcceptanceServiceImpl ...@@ -82,6 +84,15 @@ public class BasicGridAcceptanceServiceImpl
pageNew.setCurrent(current); pageNew.setCurrent(current);
pageNew.setTotal(page.getTotal()); pageNew.setTotal(page.getTotal());
pageNew.setSize(size); pageNew.setSize(size);
if(page.getList() != null && page.getList().size() > 0) {
page.getList().forEach(e -> {
if(e.getPeasantHouseholdNo() != null) {
e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo()));
}
});
}
pageNew.setRecords(page.getList()); pageNew.setRecords(page.getList());
return pageNew; return pageNew;
} }
......
...@@ -271,6 +271,16 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto ...@@ -271,6 +271,16 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
pagenew.setCurrent(current); pagenew.setCurrent(current);
pagenew.setTotal(objectPageInfo.getTotal()); pagenew.setTotal(objectPageInfo.getTotal());
pagenew.setSize(size); pagenew.setSize(size);
if(newRecords != null && newRecords.size() > 0) {
newRecords.forEach(e -> {
if(e.getSurveyInformationId() != null) {
e.setScale(peasantHouseholdMapper.getHygfCommercialScale(e.getSurveyInformationId()));
}
});
}
pagenew.setRecords(newRecords); pagenew.setRecords(newRecords);
return pagenew; return pagenew;
......
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