人口基本信息- 增加了自定义Excel导出功能

This commit is contained in:
java_cuibaocheng@163.com 2024-01-30 15:50:49 +08:00
parent c88fe69fd2
commit 2fd49f17f4
2 changed files with 2 additions and 48 deletions

View File

@ -504,15 +504,6 @@ public class PopulationInfoServiceImpl extends AbstractService implements IPopul
populationInfoDTO.setLabels(labels); populationInfoDTO.setLabels(labels);
populationInfoDTO.setLabelList(dataList); populationInfoDTO.setLabelList(dataList);
} }
// 封装所在房屋
query.put("populationInfoId", populationInfoDTO.getPopulationInfoId());
List<HouseDTO> list1 = houseService.list(query);
String houses = "";
for(HouseDTO dto : list1) {
String house = dto.getResidentialName() + "/" + dto.getBuildingName() + "/" + dto.getAffiliationUnit() + "/" + dto.getHouseNum();
houses = houses + house + "";
}
populationInfoDTO.setHouses(houses);
} }
return listList; return listList;
} }
@ -1072,15 +1063,6 @@ public class PopulationInfoServiceImpl extends AbstractService implements IPopul
} }
populationInfoDTO.setLabelList(dataList); populationInfoDTO.setLabelList(dataList);
} }
// 封装所在房屋
query.put("populationInfoId", populationInfoDTO.getPopulationInfoId());
List<HouseDTO> list1 = houseService.list(query);
String houses = "";
for(HouseDTO dto : list1) {
String house = dto.getResidentialName() + "/" + dto.getBuildingName() + "/" + dto.getAffiliationUnit() + "/" + dto.getHouseNum();
houses = houses + house + "";
}
populationInfoDTO.setHouses(houses);
} }
return listList; return listList;
} }
@ -1149,15 +1131,6 @@ public class PopulationInfoServiceImpl extends AbstractService implements IPopul
} }
populationInfoDTO.setLabelList(dataList); populationInfoDTO.setLabelList(dataList);
} }
// 封装所在房屋
query.put("populationInfoId", populationInfoDTO.getPopulationInfoId());
List<HouseDTO> list1 = houseService.list(query);
String houses = "";
for(HouseDTO dto : list1) {
String house = dto.getResidentialName() + "/" + dto.getBuildingName() + "/" + dto.getAffiliationUnit() + "/" + dto.getHouseNum();
houses = houses + house + "";
}
populationInfoDTO.setHouses(houses);
} }
PageInfo<PopulationInfoDTO> pageInfo = new PageInfo<>(listList); PageInfo<PopulationInfoDTO> pageInfo = new PageInfo<>(listList);
return new SuccessResultList<>(listList, pageInfo.getPageNum(), pageInfo.getTotal()); return new SuccessResultList<>(listList, pageInfo.getPageNum(), pageInfo.getTotal());
@ -1335,15 +1308,6 @@ public class PopulationInfoServiceImpl extends AbstractService implements IPopul
} }
populationInfoDTO.setLabelList(dataList); populationInfoDTO.setLabelList(dataList);
} }
// 封装所在房屋
query.put("populationInfoId", populationInfoDTO.getPopulationInfoId());
List<HouseDTO> list1 = houseService.list(query);
String houses = "";
for(HouseDTO dto : list1) {
String house = dto.getResidentialName() + "/" + dto.getBuildingName() + "/" + dto.getAffiliationUnit() + "/" + dto.getHouseNum();
houses = houses + house + "";
}
populationInfoDTO.setHouses(houses);
} }
PageInfo<PopulationInfoDTO> pageInfo = new PageInfo<>(listList); PageInfo<PopulationInfoDTO> pageInfo = new PageInfo<>(listList);
return new SuccessResultList<>(listList, pageInfo.getPageNum(), pageInfo.getTotal()); return new SuccessResultList<>(listList, pageInfo.getPageNum(), pageInfo.getTotal());
@ -1412,15 +1376,6 @@ public class PopulationInfoServiceImpl extends AbstractService implements IPopul
break; break;
} }
} }
// 封装所在房屋
query.put("populationInfoId", populationInfoDTO.getPopulationInfoId());
List<HouseDTO> list1 = houseService.list(query);
String houses = "";
for(HouseDTO dto : list1) {
String house = dto.getResidentialName() + "/" + dto.getBuildingName() + "/" + dto.getAffiliationUnit() + "/" + dto.getHouseNum();
houses = houses + house + "";
}
populationInfoDTO.setHouses(houses);
} }
PageInfo<PopulationInfoDTO> pageInfo = new PageInfo<>(listList); PageInfo<PopulationInfoDTO> pageInfo = new PageInfo<>(listList);
return new SuccessResultList<>(listList, pageInfo.getPageNum(), pageInfo.getTotal()); return new SuccessResultList<>(listList, pageInfo.getPageNum(), pageInfo.getTotal());

View File

@ -977,8 +977,7 @@
{name: '是否为党员', key: 'isParty'}, {name: '是否为党员', key: 'isParty'},
{name: '党组织名称', key: 'partyOrganization'}, {name: '党组织名称', key: 'partyOrganization'},
{name: '入党时间', key: 'partyTime'}, {name: '入党时间', key: 'partyTime'},
{name: '其他', key: 'othertext'}, {name: '其他', key: 'othertext'}
{name: '所在房屋', key: 'houses', color: 'FF0000'}
]; ];
/** /**