yaoq há 2 anos
ascendente
cometimento
8700a70365
2 ficheiros alterados com 5 adições e 0 eliminações
  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 Ver ficheiro

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

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

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


+ 1
- 0
smtweb-framework/core/src/main/java/cc/smtweb/framework/core/common/SwEnum.java Ver ficheiro

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


Carregando…
Cancelar
Guardar