From f1f2e24cdefa45ba226f796d5334a3c9ba1f6ef3 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 7 Jul 2024 09:26:28 +0800 Subject: [PATCH] =?UTF-8?q?FIX=5FBUG=20controller.vm=E6=A8=A1=E7=89=88?= =?UTF-8?q?=E4=B8=AD=E7=9A=84export-excel=E5=BC=95=E7=94=A8=E7=9A=84Vo?= =?UTF-8?q?=E7=B1=BB=E6=B2=A1=E6=9C=89=E5=8A=A0=E4=B8=8AsceneEnum.prefixCl?= =?UTF-8?q?ass=E5=89=8D=E7=BC=80=E5=AF=BC=E8=87=B4=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/codegen/java/controller/controller.vm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/controller/controller.vm b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/controller/controller.vm index a358d7cc0..5aa3baef8 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/controller/controller.vm +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/controller/controller.vm @@ -121,8 +121,8 @@ public class ${sceneEnum.prefixClass}${table.className}Controller { pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); List<${table.className}DO> list = ${classNameVar}Service.get${simpleClassName}Page(pageReqVO).getList(); // 导出 Excel - ExcelUtils.write(response, "${table.classComment}.xls", "数据", ${table.className}RespVO.class, - BeanUtils.toBean(list, ${table.className}RespVO.class)); + ExcelUtils.write(response, "${table.classComment}.xls", "数据", ${sceneEnum.prefixClass}${table.className}RespVO.class, + BeanUtils.toBean(list, ${sceneEnum.prefixClass}${table.className}RespVO.class)); } ## 特殊:树表专属逻辑(树不需要分页接口) #else