From 53e1bb6454c8a40d9c83af6048d21fced18ecaaa Mon Sep 17 00:00:00 2001 From: "kuang.yifei@iwhalecloud.com" Date: Fri, 8 Jul 2022 10:01:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=B9=E9=87=8F=E7=94=9F?= =?UTF-8?q?=E6=88=90=E4=BB=A3=E7=A0=81=E6=A8=A1=E7=89=88=EF=BC=8C=E6=A8=A1?= =?UTF-8?q?=E7=89=88=E4=B8=AD=E5=8A=A0=E5=85=A5App=E7=AB=AF=E7=9A=84list?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/vm/java/controller.java.vm | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/ghy-generator/src/main/resources/vm/java/controller.java.vm b/ghy-generator/src/main/resources/vm/java/controller.java.vm index 3498ac1a..8b81384a 100644 --- a/ghy-generator/src/main/resources/vm/java/controller.java.vm +++ b/ghy-generator/src/main/resources/vm/java/controller.java.vm @@ -5,11 +5,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.bind.annotation.*; import com.ghy.common.annotation.Log; import com.ghy.common.enums.BusinessType; import ${packageName}.domain.${ClassName}; @@ -59,6 +55,19 @@ public class ${ClassName}Controller extends BaseController List<${ClassName}> list = ${className}Service.select${ClassName}List(${className}); return getDataTable(list); } + + /** + * App查询${functionName}列表 + */ + @PostMapping("/app/list") + @ResponseBody + public TableDataInfo appList(@RequestBody ${ClassName} ${className}) + { + startPage(); + List<${ClassName}> list = ${className}Service.select${ClassName}List(${className}); + return getDataTable(list); + } + #elseif($table.tree) /** * 查询${functionName}树列表