Browse Source

居民信息采集-人口信息导出 ,excel 标题变更

feature/screenDataPush
zhangyongzhangyong 4 years ago
parent
commit
24b944689e
  1. 6
      esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/controller/PopulationInformationController.java

6
esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/controller/PopulationInformationController.java

@ -106,11 +106,7 @@ public class PopulationInformationController {
@GetMapping("export") @GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<PopulationInformationDTO> list = populationInformationService.list(params); List<PopulationInformationDTO> list = populationInformationService.list(params);
String fileName = "居民-人口信息导出"; ExcelUtils.exportExcelToTarget(response, "居民-人口信息导出", list, PopulationInformationExcel.class);
if(list.size()>0){
fileName = fileName.concat("("+list.size()+"条)");
}
ExcelUtils.exportExcelToTarget(response, fileName, list, PopulationInformationExcel.class);
} }
/** /**
* @Description 判断身份证是否合法 * @Description 判断身份证是否合法

Loading…
Cancel
Save