Java Code Examples for org.jeecg.common.constant.CommonConstant#OPERATE_TYPE_3
The following examples show how to use
org.jeecg.common.constant.CommonConstant#OPERATE_TYPE_3 .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AutoLogAspect.java From jeecg-cloud with Apache License 2.0 | 6 votes |
/** * 获取操作类型 */ private int getOperateType(String methodName,int operateType) { if (operateType > 0) { return operateType; } if (methodName.startsWith("list")) { return CommonConstant.OPERATE_TYPE_1; } if (methodName.startsWith("add")) { return CommonConstant.OPERATE_TYPE_2; } if (methodName.startsWith("edit")) { return CommonConstant.OPERATE_TYPE_3; } if (methodName.startsWith("delete")) { return CommonConstant.OPERATE_TYPE_4; } if (methodName.startsWith("import")) { return CommonConstant.OPERATE_TYPE_5; } if (methodName.startsWith("export")) { return CommonConstant.OPERATE_TYPE_6; } return CommonConstant.OPERATE_TYPE_1; }
Example 2
Source File: AutoLogAspect.java From jeecg-boot-with-activiti with MIT License | 6 votes |
/** * 获取操作类型 */ private int getOperateType(String methodName,int operateType) { if (operateType > 0) { return operateType; } if (methodName.startsWith("list")) { return CommonConstant.OPERATE_TYPE_1; } if (methodName.startsWith("add")) { return CommonConstant.OPERATE_TYPE_2; } if (methodName.startsWith("edit")) { return CommonConstant.OPERATE_TYPE_3; } if (methodName.startsWith("delete")) { return CommonConstant.OPERATE_TYPE_4; } if (methodName.startsWith("import")) { return CommonConstant.OPERATE_TYPE_5; } if (methodName.startsWith("export")) { return CommonConstant.OPERATE_TYPE_6; } return CommonConstant.OPERATE_TYPE_1; }
Example 3
Source File: AutoLogAspect.java From teaching with Apache License 2.0 | 6 votes |
/** * 获取操作类型 */ private int getOperateType(String methodName,int operateType) { if (operateType > 0) { return operateType; } if (methodName.startsWith("list")) { return CommonConstant.OPERATE_TYPE_1; } if (methodName.startsWith("add")) { return CommonConstant.OPERATE_TYPE_2; } if (methodName.startsWith("edit")) { return CommonConstant.OPERATE_TYPE_3; } if (methodName.startsWith("delete")) { return CommonConstant.OPERATE_TYPE_4; } if (methodName.startsWith("import")) { return CommonConstant.OPERATE_TYPE_5; } if (methodName.startsWith("export")) { return CommonConstant.OPERATE_TYPE_6; } return CommonConstant.OPERATE_TYPE_1; }
Example 4
Source File: AutoLogAspect.java From jeecg-boot with Apache License 2.0 | 6 votes |
/** * 获取操作类型 */ private int getOperateType(String methodName,int operateType) { if (operateType > 0) { return operateType; } if (methodName.startsWith("list")) { return CommonConstant.OPERATE_TYPE_1; } if (methodName.startsWith("add")) { return CommonConstant.OPERATE_TYPE_2; } if (methodName.startsWith("edit")) { return CommonConstant.OPERATE_TYPE_3; } if (methodName.startsWith("delete")) { return CommonConstant.OPERATE_TYPE_4; } if (methodName.startsWith("import")) { return CommonConstant.OPERATE_TYPE_5; } if (methodName.startsWith("export")) { return CommonConstant.OPERATE_TYPE_6; } return CommonConstant.OPERATE_TYPE_1; }
Example 5
Source File: JeecgDemoController.java From jeecg-cloud with Apache License 2.0 | 5 votes |
/** * 编辑 * * @param jeecgDemo * @return */ @PutMapping(value = "/edit") @ApiOperation(value = "编辑DEMO", notes = "编辑DEMO") @AutoLog(value = "编辑DEMO", operateType = CommonConstant.OPERATE_TYPE_3) public Result<?> edit(@RequestBody JeecgDemo jeecgDemo) { jeecgDemoService.updateById(jeecgDemo); return Result.ok("更新成功!"); }
Example 6
Source File: JeecgDemoController.java From jeecg-boot-with-activiti with MIT License | 5 votes |
/** * 编辑 * * @param jeecgDemo * @return */ @PutMapping(value = "/edit") @ApiOperation(value = "编辑DEMO", notes = "编辑DEMO") @AutoLog(value = "编辑DEMO", operateType = CommonConstant.OPERATE_TYPE_3) public Result<?> edit(@RequestBody JeecgDemo jeecgDemo) { jeecgDemoService.updateById(jeecgDemo); return Result.ok("更新成功!"); }
Example 7
Source File: JeecgDemoController.java From teaching with Apache License 2.0 | 5 votes |
/** * 编辑 * * @param jeecgDemo * @return */ @PutMapping(value = "/edit") @ApiOperation(value = "编辑DEMO", notes = "编辑DEMO") @AutoLog(value = "编辑DEMO", operateType = CommonConstant.OPERATE_TYPE_3) public Result<?> edit(@RequestBody JeecgDemo jeecgDemo) { jeecgDemoService.updateById(jeecgDemo); return Result.ok("更新成功!"); }
Example 8
Source File: JeecgDemoController.java From jeecg-boot with Apache License 2.0 | 5 votes |
/** * 编辑 * * @param jeecgDemo * @return */ @PutMapping(value = "/edit") @ApiOperation(value = "编辑DEMO", notes = "编辑DEMO") @AutoLog(value = "编辑DEMO", operateType = CommonConstant.OPERATE_TYPE_3) public Result<?> edit(@RequestBody JeecgDemo jeecgDemo) { jeecgDemoService.updateById(jeecgDemo); return Result.ok("更新成功!"); }