|
@ -71,6 +71,12 @@ public class ${className}Controller { |
|
|
return new Result(); |
|
|
return new Result(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("export") |
|
|
|
|
|
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|
|
|
|
|
List<${className}DTO> list = ${classname}Service.list(params); |
|
|
|
|
|
ExcelUtils.exportExcelToTarget(response, null, list, ${className}Excel.class); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|