mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 19:51:56 +08:00
BaseController强化json响应,追加图标
This commit is contained in:
@@ -67,6 +67,10 @@ public class ${ClassName}Controller extends BaseController
|
||||
// public void export(HttpServletResponse response, ${ClassName} ${className})
|
||||
// {
|
||||
// List<${ClassName}> list = ${className}Service.select${ClassName}List(${className});
|
||||
// if (list.isEmpty()) {
|
||||
// responseJsonWarn(response, "没有数据可以导出");
|
||||
// return;
|
||||
// }
|
||||
// ExcelUtil<${ClassName}> util = new ExcelUtil<>(${ClassName}.class);
|
||||
// util.exportExcel(response, list, "${functionName}数据");
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user