|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.epmet.plugin.power.modules.rent.controller; |
|
|
|
|
|
|
|
import com.alibaba.nacos.client.naming.utils.CollectionUtils; |
|
|
|
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
import com.epmet.commons.tools.utils.ExcelUtils; |
|
|
@ -75,6 +76,11 @@ public class RentHouseController { |
|
|
|
@GetMapping("export") |
|
|
|
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|
|
|
List<RentHouseDTO> list = rentHouseService.list(params); |
|
|
|
if(CollectionUtils.isEmpty(list)){ |
|
|
|
RentHouseDTO dto = new RentHouseDTO(); |
|
|
|
dto.setId(""); |
|
|
|
list.add(dto); |
|
|
|
} |
|
|
|
ExcelUtils.exportExcelToTarget(response, null, list, RentHouseExcel.class); |
|
|
|
} |
|
|
|
|
|
|
|