From f79218acc9e71f2821444e7862f6c2c2a2a9360e Mon Sep 17 00:00:00 2001 From: RuoYi Date: Fri, 24 Aug 2018 15:02:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/templates/vm/java/Controller.java.vm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/templates/vm/java/Controller.java.vm b/src/main/resources/templates/vm/java/Controller.java.vm index 5d37a948..ac8fe2c6 100644 --- a/src/main/resources/templates/vm/java/Controller.java.vm +++ b/src/main/resources/templates/vm/java/Controller.java.vm @@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.ruoyi.framework.aspectj.lang.annotation.Log; -import com.ruoyi.framework.aspectj.lang.constant.BusinessType; +import com.ruoyi.framework.aspectj.lang.enums.BusinessType; import ${package}.domain.${className}; import ${package}.service.I${className}Service; import com.ruoyi.framework.web.controller.BaseController; @@ -66,7 +66,7 @@ public class ${className}Controller extends BaseController * 新增保存${tableComment} */ @RequiresPermissions("${moduleName}:${classname}:add") - @Log(title = "${tableComment}", action = BusinessType.INSERT) + @Log(title = "${tableComment}", businessType = BusinessType.INSERT) @PostMapping("/add") @ResponseBody public AjaxResult addSave(${className} ${classname}) @@ -89,7 +89,7 @@ public class ${className}Controller extends BaseController * 修改保存${tableComment} */ @RequiresPermissions("${moduleName}:${classname}:edit") - @Log(title = "${tableComment}", action = BusinessType.UPDATE) + @Log(title = "${tableComment}", businessType = BusinessType.UPDATE) @PostMapping("/edit") @ResponseBody public AjaxResult editSave(${className} ${classname}) @@ -101,7 +101,7 @@ public class ${className}Controller extends BaseController * 删除${tableComment} */ @RequiresPermissions("${moduleName}:${classname}:remove") - @Log(title = "${tableComment}", action = BusinessType.DELETE) + @Log(title = "${tableComment}", businessType = BusinessType.DELETE) @PostMapping( "/remove") @ResponseBody public AjaxResult remove(String ids)