修复war包部署情况下404、500等页面样式丢失问题
This commit is contained in:
@ -46,19 +46,7 @@ public class ${ClassName}Controller extends BaseController
|
||||
return prefix + "/${businessName}";
|
||||
}
|
||||
|
||||
#if($table.tree)
|
||||
/**
|
||||
* 查询${functionName}树列表
|
||||
*/
|
||||
@RequiresPermissions("${permissionPrefix}:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public List<${ClassName}> list(${ClassName} ${className})
|
||||
{
|
||||
List<${ClassName}> list = ${className}Service.select${ClassName}List(${className});
|
||||
return list;
|
||||
}
|
||||
#elseif($table.crud)
|
||||
#if($table.crud)
|
||||
/**
|
||||
* 查询${functionName}列表
|
||||
*/
|
||||
@ -71,6 +59,18 @@ public class ${ClassName}Controller extends BaseController
|
||||
List<${ClassName}> list = ${className}Service.select${ClassName}List(${className});
|
||||
return getDataTable(list);
|
||||
}
|
||||
#elseif($table.tree)
|
||||
/**
|
||||
* 查询${functionName}树列表
|
||||
*/
|
||||
@RequiresPermissions("${permissionPrefix}:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public List<${ClassName}> list(${ClassName} ${className})
|
||||
{
|
||||
List<${ClassName}> list = ${className}Service.select${ClassName}List(${className});
|
||||
return list;
|
||||
}
|
||||
#end
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user