Showing
2 changed files
with
8 additions
and
0 deletions
common/data/src/main/java/org/thingsboard/server/common/data/yunteng/dto/TkDataViewInterfaceDTO.java
@@ -42,6 +42,9 @@ public class TkDataViewInterfaceDTO extends TenantDTO { | @@ -42,6 +42,9 @@ public class TkDataViewInterfaceDTO extends TenantDTO { | ||
42 | @ApiModelProperty(value = "状态:0待发布 1已发布") | 42 | @ApiModelProperty(value = "状态:0待发布 1已发布") |
43 | private Integer state; | 43 | private Integer state; |
44 | 44 | ||
45 | + @ApiModelProperty(value = "过滤脚本") | ||
46 | + private String filter; | ||
47 | + | ||
45 | @ApiModelProperty(value = "接口描述") | 48 | @ApiModelProperty(value = "接口描述") |
46 | private String remark; | 49 | private String remark; |
47 | } | 50 | } |
1 | package org.thingsboard.server.dao.yunteng.entities; | 1 | package org.thingsboard.server.dao.yunteng.entities; |
2 | + | ||
3 | +import com.baomidou.mybatisplus.annotation.FieldStrategy; | ||
2 | import com.baomidou.mybatisplus.annotation.TableField; | 4 | import com.baomidou.mybatisplus.annotation.TableField; |
3 | import com.baomidou.mybatisplus.annotation.TableName; | 5 | import com.baomidou.mybatisplus.annotation.TableName; |
4 | import lombok.Data; | 6 | import lombok.Data; |
@@ -27,4 +29,7 @@ public class TkDataViewInterfaceEntity extends TenantBaseEntity { | @@ -27,4 +29,7 @@ public class TkDataViewInterfaceEntity extends TenantBaseEntity { | ||
27 | 29 | ||
28 | @TableField(typeHandler = EnumTypeHandler.class) | 30 | @TableField(typeHandler = EnumTypeHandler.class) |
29 | private TkSystemTypeEnum interfaceType; | 31 | private TkSystemTypeEnum interfaceType; |
32 | + | ||
33 | + @TableField(updateStrategy = FieldStrategy.IGNORED) | ||
34 | + private String filter; | ||
30 | } | 35 | } |