Bladeren bron

优化

4.0
yaoq 2 jaren geleden
bovenliggende
commit
8700a70365
2 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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", "删除");


Laden…
Annuleren
Opslaan