ソースを参照

修复 设备别名自动覆盖

18339543638 2 年 前
コミット
03a5721fa8

+ 1 - 1
nb-service-api/web-service-api/src/main/java/com/nb/web/api/entity/BusDeviceEntity.java

@@ -42,7 +42,7 @@ public class BusDeviceEntity extends TenantGenericEntity<String,String> {
     private String mqttConnInfo;
 
     @ApiModelProperty(value = "设备别名")
-    @TableField(updateStrategy = FieldStrategy.IGNORED)
+    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
     @Length(max = 255,message = "设备别名不得超过255个字符")
     private String alias;