|
|
|
@ -53,11 +53,11 @@ public class ${ClassName}Controller extends BaseController {
|
|
|
|
|
@SaCheckPermission("${permissionPrefix}:list")
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
|
#if($table.crud || $table.sub)
|
|
|
|
|
public TableDataInfo<${ClassName}Vo> list(@Validated(QueryGroup.class) ${ClassName}Bo bo, PageQuery pageQuery) {
|
|
|
|
|
public TableDataInfo<${ClassName}Vo> list(${ClassName}Bo bo, PageQuery pageQuery) {
|
|
|
|
|
return i${ClassName}Service.queryPageList(bo, pageQuery);
|
|
|
|
|
}
|
|
|
|
|
#elseif($table.tree)
|
|
|
|
|
public R<List<${ClassName}Vo>> list(@Validated(QueryGroup.class) ${ClassName}Bo bo) {
|
|
|
|
|
public R<List<${ClassName}Vo>> list(${ClassName}Bo bo) {
|
|
|
|
|
List<${ClassName}Vo> list = i${ClassName}Service.queryList(bo);
|
|
|
|
|
return R.ok(list);
|
|
|
|
|
}
|
|
|
|
@ -70,7 +70,7 @@ public class ${ClassName}Controller extends BaseController {
|
|
|
|
|
@SaCheckPermission("${permissionPrefix}:export")
|
|
|
|
|
@Log(title = "${functionName}", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(@Validated ${ClassName}Bo bo, HttpServletResponse response) {
|
|
|
|
|
public void export(${ClassName}Bo bo, HttpServletResponse response) {
|
|
|
|
|
List<${ClassName}Vo> list = i${ClassName}Service.queryList(bo);
|
|
|
|
|
ExcelUtil.exportExcel(list, "${functionName}", ${ClassName}Vo.class, response);
|
|
|
|
|
}
|
|
|
|
|