Commit ecfc0041 authored by chenzhao's avatar chenzhao

Merge remote-tracking branch 'origin/developer_bw' into developer_bw

parents b6a21562 0b2d191a
......@@ -175,6 +175,16 @@ public class WorkOrderController extends BaseController {
Page<PeasantHousehold> page = new Page<>();
PageHelper.startPage(current,size);
List<PeasantHousehold> list=workOrderPowerStationMapper.selectPeasantHousehold(sequenceNbr,ownersName);
if(list != null && list.size() > 0) {
list.forEach(e -> {
if(e.getPeasantHouseholdNo() != null) {
e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo()));
e.setRealScale(powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo(e.getPeasantHouseholdNo()));
}
});
}
PageInfo<PeasantHousehold> pageInfo = new PageInfo<>(list);
page.setSize(pageInfo.getSize());
page.setCurrent(pageInfo.getPageNum());
......
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