|
|
@ -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 判断身份证是否合法 |
|
|
|