| | |
| | | */
|
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')")
|
| | | @Log(title = "${functionName}", businessType = BusinessType.EXPORT)
|
| | | @GetMapping("/export")
|
| | | @PostMapping("/export")
|
| | | public void export(HttpServletResponse response, ${ClassName} ${className}) throws IOException
|
| | | {
|
| | | List<${ClassName}> list = ${className}Service.select${ClassName}List(${className});
|
| | | ExcelUtil<${ClassName}> util = new ExcelUtil<${ClassName}>(${ClassName}.class);
|
| | | return util.exportExcel(response, list, "${businessName}");
|
| | | util.exportExcel(response, list, "${businessName}");
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | #end
|
| | | import org.apache.commons.lang3.builder.ToStringBuilder;
|
| | | import org.apache.commons.lang3.builder.ToStringStyle;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
| | | import com.ruoyi.common.core.annotation.Excel;
|
| | | #if($table.crud)
|
| | | import com.ruoyi.framework.web.domain.BaseEntity;
|
| | | import com.ruoyi.common.core.web.domain.BaseEntity;
|
| | | #elseif($table.tree)
|
| | | import com.ruoyi.framework.web.domain.TreeEntity;
|
| | | #end
|