Commit f1f2e24cdefa45ba226f796d5334a3c9ba1f6ef3
1 parent
a0020f03
FIX_BUG controller.vm模版中的export-excel引用的Vo类没有加上sceneEnum.prefixClass前缀导致报错
Showing
1 changed file
with
2 additions
and
2 deletions
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 { | @@ -121,8 +121,8 @@ public class ${sceneEnum.prefixClass}${table.className}Controller { | ||
| 121 | pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); | 121 | pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
| 122 | List<${table.className}DO> list = ${classNameVar}Service.get${simpleClassName}Page(pageReqVO).getList(); | 122 | List<${table.className}DO> list = ${classNameVar}Service.get${simpleClassName}Page(pageReqVO).getList(); |
| 123 | // 导出 Excel | 123 | // 导出 Excel |
| 124 | - ExcelUtils.write(response, "${table.classComment}.xls", "数据", ${table.className}RespVO.class, | ||
| 125 | - BeanUtils.toBean(list, ${table.className}RespVO.class)); | 124 | + ExcelUtils.write(response, "${table.classComment}.xls", "数据", ${sceneEnum.prefixClass}${table.className}RespVO.class, |
| 125 | + BeanUtils.toBean(list, ${sceneEnum.prefixClass}${table.className}RespVO.class)); | ||
| 126 | } | 126 | } |
| 127 | ## 特殊:树表专属逻辑(树不需要分页接口) | 127 | ## 特殊:树表专属逻辑(树不需要分页接口) |
| 128 | #else | 128 | #else |