|
|
@@ -76,7 +76,7 @@ public class BusDeviceEntity extends TenantGenericEntity<String,String> {
|
|
|
* 根据阿里云返回的数据更新设备对象
|
|
|
* @param data 由queryDeviceDetail接口返回的数据
|
|
|
*/
|
|
|
- public void setFields(QueryDeviceDetailResponse.Data data) {
|
|
|
+ public void updateFields(QueryDeviceDetailResponse.Data data) {
|
|
|
this.deviceId = data.getDeviceName();
|
|
|
this.config.setProductKey(data.getProductKey());
|
|
|
this.config.setIotId(data.getIotId());
|
|
|
@@ -90,7 +90,7 @@ public class BusDeviceEntity extends TenantGenericEntity<String,String> {
|
|
|
* 根据设备查询接口返回的数据,更新设备对象
|
|
|
* @param item
|
|
|
*/
|
|
|
- public void setFields(QueryDeviceResponse.DeviceInfo item) {
|
|
|
+ public void updateFields(QueryDeviceResponse.DeviceInfo item) {
|
|
|
this.deviceId = item.getDeviceName();
|
|
|
this.config.setProductKey(item.getProductKey());
|
|
|
this.config.setIotId(item.getIotId());
|