Browse Source

优化

4.0
yaoq 2 years ago
parent
commit
8700a70365
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      smtweb-framework/core/src/main/java/cc/smtweb/framework/core/common/CanalVO.java
  2. +1
    -0
      smtweb-framework/core/src/main/java/cc/smtweb/framework/core/common/SwEnum.java

+ 4
- 0
smtweb-framework/core/src/main/java/cc/smtweb/framework/core/common/CanalVO.java View File

@@ -88,6 +88,10 @@ public class CanalVO {
return SwEnum.DbEventType.CREATE.value.equals(type); return SwEnum.DbEventType.CREATE.value.equals(type);
} }


public boolean dropIs() {
return SwEnum.DbEventType.DROP.value.equals(type);
}

public boolean alterIs() { public boolean alterIs() {
return SwEnum.DbEventType.ALTER.value.equals(type); return SwEnum.DbEventType.ALTER.value.equals(type);
} }


+ 1
- 0
smtweb-framework/core/src/main/java/cc/smtweb/framework/core/common/SwEnum.java View File

@@ -369,6 +369,7 @@ public interface SwEnum {
public static DbEventType instance = new DbEventType(); public static DbEventType instance = new DbEventType();
public static StrEnumBean CREATE = instance.addEnum("CREATE", "创建表"); public static StrEnumBean CREATE = instance.addEnum("CREATE", "创建表");
public static StrEnumBean ALTER = instance.addEnum("ALTER", "修改表"); public static StrEnumBean ALTER = instance.addEnum("ALTER", "修改表");
public static StrEnumBean DROP = instance.addEnum("DROP", "删除表");
public static StrEnumBean INSERT = instance.addEnum("INSERT", "新增"); public static StrEnumBean INSERT = instance.addEnum("INSERT", "新增");
public static StrEnumBean UPDATE = instance.addEnum("UPDATE", "修改"); public static StrEnumBean UPDATE = instance.addEnum("UPDATE", "修改");
public static StrEnumBean DELETE = instance.addEnum("DELETE", "删除"); public static StrEnumBean DELETE = instance.addEnum("DELETE", "删除");


Loading…
Cancel
Save