Commit 8f24fcc7ec3088b32c62859c35fde7be96c75308
1 parent
aa103add
fix: 设备相关接口
1.修复设备配置数据丢失问题 2.修复tb设备id丢失问题
Showing
2 changed files
with
2 additions
and
2 deletions
... | ... | @@ -45,7 +45,7 @@ public class DeviceDTO extends TenantDTO { |
45 | 45 | @ApiModelProperty(value = "设备唯一编号", required = true) |
46 | 46 | private String deviceToken; |
47 | 47 | // 不用序列化给前端 |
48 | - @JsonIgnore private String tbDeviceId; | |
48 | + private String tbDeviceId; | |
49 | 49 | private String deviceTypeId; |
50 | 50 | |
51 | 51 | @NotEmpty( | ... | ... |
... | ... | @@ -38,7 +38,7 @@ |
38 | 38 | SELECT |
39 | 39 | <include refid="columns"/>,ifdp.name AS profile_name,io.name AS organization_name |
40 | 40 | FROM iotfs_device ifd |
41 | - LEFT JOIN iotfs_device_profile ifdp ON ifd.profile_id = ifdp.id | |
41 | + LEFT JOIN device_profile ifdp ON ifd.profile_id = CAST (ifdp.id AS VARCHAR) | |
42 | 42 | LEFT JOIN iotfs_organization io ON io.id = ifd.organization_id |
43 | 43 | <where> |
44 | 44 | <if test="queryMap.tenantId !=null and queryMap.tenantId !=''"> | ... | ... |