From fcc42f6a61705f72f74422a59a2e95bcf331fdd7 Mon Sep 17 00:00:00 2001 From: zhousq Date: Wed, 6 Dec 2023 11:49:58 +0800 Subject: [PATCH] =?UTF-8?q?2023-12-6=20=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=99=A8=E7=94=9F=E6=88=90=E7=9A=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/vm/java/controller.java.vm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lzbi-generator/src/main/resources/vm/java/controller.java.vm b/lzbi-generator/src/main/resources/vm/java/controller.java.vm index 471fd90..05b609c 100644 --- a/lzbi-generator/src/main/resources/vm/java/controller.java.vm +++ b/lzbi-generator/src/main/resources/vm/java/controller.java.vm @@ -1,5 +1,7 @@ package ${packageName}.controller; - +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; import java.util.List; import javax.servlet.http.HttpServletResponse; import org.springframework.security.access.prepost.PreAuthorize; @@ -71,10 +73,10 @@ public class ${ClassName}Controller extends BaseController @PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')") @Log(title = "${functionName}", businessType = BusinessType.EXPORT) @PostMapping("/export") - public void export(HttpServletResponse response, ${ClassName} ${ClassName}) + public void export(HttpServletResponse response,${ClassName} ${ClassName}) { - List< ${ClassName}> list = ${className}Service.select ${ClassName}List(${ClassName}); - ExcelUtil< ${ClassName}> util = new ExcelUtil<(${ClassName}>(${ClassName}.class); + List<${ClassName}> list = ${className}Service.select${ClassName}List(${ClassName}); + ExcelUtil<${ClassName}> util = new ExcelUtil<${ClassName}>(${ClassName}.class); util.exportExcel(response, list, "${functionName}数据"); }