| | |
| | | import com.ruoyi.framework.web.controller.BaseController;
|
| | | import com.ruoyi.framework.web.domain.AjaxResult;
|
| | | import com.ruoyi.common.utils.poi.ExcelUtil;
|
| | | #if($table.crud)
|
| | | #if($table.crud || $table.sub)
|
| | | import com.ruoyi.framework.web.page.TableDataInfo;
|
| | | #elseif($table.tree)
|
| | | #end
|
| | |
| | | */
|
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')")
|
| | | @GetMapping("/list")
|
| | | #if($table.crud)
|
| | | #if($table.crud || $table.sub)
|
| | | public TableDataInfo list(${ClassName} ${className})
|
| | | {
|
| | | startPage();
|
| | |
| | | {
|
| | | List<${ClassName}> list = ${className}Service.select${ClassName}List(${className});
|
| | | ExcelUtil<${ClassName}> util = new ExcelUtil<${ClassName}>(${ClassName}.class);
|
| | | return util.exportExcel(list, "${businessName}");
|
| | | return util.exportExcel(list, "${functionName}数据");
|
| | | }
|
| | |
|
| | | /**
|