【功能完善】IoT:增加 device config 配置
This commit is contained in:
@@ -83,6 +83,9 @@ public class IotDeviceRespVO {
|
||||
@ExcelProperty("认证类型(如一机一密、动态注册)")
|
||||
private String authType;
|
||||
|
||||
@Schema(description = "设备配置", example = "{\"abc\": \"efg\"}")
|
||||
private String config;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@@ -38,4 +38,7 @@ public class IotDeviceSaveReqVO {
|
||||
@Schema(description = "网关设备 ID", example = "16380")
|
||||
private Long gatewayId;
|
||||
|
||||
@Schema(description = "设备配置", example = "{\"abc\": \"efg\"}")
|
||||
private String config;
|
||||
|
||||
}
|
||||
@@ -32,7 +32,6 @@ public interface IotDevicePropertyMapper {
|
||||
default void alterProductPropertySTable(String productKey,
|
||||
List<TDengineTableField> oldFields,
|
||||
List<TDengineTableField> newFields) {
|
||||
// TODO @芋艿:需要处理 device_key,重新发布的时候
|
||||
oldFields.removeIf(field -> StrUtil.equalsAny(field.getField(),
|
||||
TDengineTableField.FIELD_TS, "report_time", "device_key"));
|
||||
List<TDengineTableField> addFields = newFields.stream().filter( // 新增的字段
|
||||
|
||||
Reference in New Issue
Block a user