日志记录补充更多的方法名可能性
This commit is contained in:
+4
-4
@@ -124,16 +124,16 @@ public class AutoLogAspect {
|
||||
if (operateType > 0) {
|
||||
return operateType;
|
||||
}
|
||||
if (methodName.startsWith("list")) {
|
||||
if (methodName.startsWith("list") || methodName.startsWith("query")) {
|
||||
return CommonConstant.OPERATE_TYPE_1;
|
||||
}
|
||||
if (methodName.startsWith("add")) {
|
||||
if (methodName.startsWith("add") || methodName.startsWith("create")) {
|
||||
return CommonConstant.OPERATE_TYPE_2;
|
||||
}
|
||||
if (methodName.startsWith("edit")) {
|
||||
if (methodName.startsWith("edit") || methodName.startsWith("update")) {
|
||||
return CommonConstant.OPERATE_TYPE_3;
|
||||
}
|
||||
if (methodName.startsWith("delete")) {
|
||||
if (methodName.startsWith("delete") || methodName.startsWith("remove")) {
|
||||
return CommonConstant.OPERATE_TYPE_4;
|
||||
}
|
||||
if (methodName.startsWith("import")) {
|
||||
|
||||
Reference in New Issue
Block a user