chenping 1 vuosi sitten
vanhempi
commit
5854851e43
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/main/resources/template/Controller.java.vm

+ 2 - 2
src/main/resources/template/Controller.java.vm

@@ -86,7 +86,7 @@ public class ${className}Controller extends BaseController {
     @ApiOperation("修改")
     @RequiresPermissions("${moduleName}:${pathName}:update")
     @OperationLog(tag = "${comments}管理",remark = "修改${comments}信息")
-    @OperationLogPro(tag = "${comments}管理",remark = "修改${comments}信息",operationType= OperationType.UPDATE,entityType= ${className}Entity.class)
+    @OperationLogPro(tag = "${comments}管理",remark = "修改${comments}信息",operationType= OperationType.UPDATE,entityType= "T(${package}.${moduleName}.biz.entity.${className}Entity)")
     @Transactional(rollbackFor = Exception.class)
     public ApiResponse<R> update(@RequestBody @Validated ${className}UpdatePO request) {
 
@@ -100,7 +100,7 @@ public class ${className}Controller extends BaseController {
     @DeleteMapping("/delete")
     @ApiOperation("删除")
     @RequiresPermissions("${moduleName}:${pathName}:delete")
-    @OperationLogPro(tag = "${comments}管理",remark = "删除${comments}信息",operationType= OperationType.UPDATE,entityType= ${className}Entity.class)
+    @OperationLogPro(tag = "${comments}管理",remark = "删除${comments}信息",operationType= OperationType.DELETE,entityType= "T(${package}.${moduleName}.biz.entity.${className}Entity)")
     @Transactional(rollbackFor = Exception.class)
     public ApiResponse<R> delete(@RequestBody Long[] ids) {
 		${classname}Service.removeByIds(Arrays.asList(ids));