|
|
@ -51,6 +51,10 @@ public class FactUserHouseController { |
|
|
|
@GetMapping("export") |
|
|
|
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|
|
|
List<FactUserHouseResultDTO> list = factUserHouseService.list(params); |
|
|
|
if (list.isEmpty()) { |
|
|
|
FactUserHouseResultDTO dto = new FactUserHouseResultDTO(); |
|
|
|
list.add(dto); |
|
|
|
} |
|
|
|
ExcelUtils.exportExcelToTarget(response, null, list, FactUserHouseExcel.class); |
|
|
|
} |
|
|
|
|
|
|
|