|
@@ -1499,6 +1499,7 @@ class DeviceManagement(View):
|
|
|
'screenChannels': device_ver_info.screen_channels,
|
|
|
'networkType': device_ver_info.network_type,
|
|
|
'otherFeatures': device_ver_info.other_features,
|
|
|
+ 'electricityStatistics': device_ver_info.electricity_statistics,
|
|
|
'createdTime': device_ver_info.created_time,
|
|
|
'updatedTime': device_ver_info.updated_time
|
|
|
}
|
|
@@ -1535,6 +1536,7 @@ class DeviceManagement(View):
|
|
|
screen_channels = request_dict.get('screenChannels', None)
|
|
|
network_type = request_dict.get('networkType', None)
|
|
|
other_features = request_dict.get('otherFeatures', None)
|
|
|
+ electricity_statistics = request_dict.get('electricityStatistics', 0)
|
|
|
if not all([d_code, software_ver, video_code,
|
|
|
device_type, supports_alarm,
|
|
|
screen_channels, network_type]
|
|
@@ -1573,6 +1575,7 @@ class DeviceManagement(View):
|
|
|
screen_channels=screen_channels,
|
|
|
network_type=network_type,
|
|
|
other_features=other_features,
|
|
|
+ electricity_statistics=electricity_statistics,
|
|
|
created_time=now_time,
|
|
|
updated_time=now_time
|
|
|
)
|
|
@@ -1604,6 +1607,7 @@ class DeviceManagement(View):
|
|
|
screen_channels = request_dict.get('screenChannels', None)
|
|
|
network_type = request_dict.get('networkType', None)
|
|
|
other_features = request_dict.get('otherFeatures', None)
|
|
|
+ electricity_statistics = request_dict.get('electricityStatistics', 0)
|
|
|
|
|
|
if not all([device_ver_id, video_code, device_type, supports_alarm, screen_channels, network_type]):
|
|
|
return response.json(444)
|
|
@@ -1650,6 +1654,7 @@ class DeviceManagement(View):
|
|
|
screen_channels=screen_channels,
|
|
|
network_type=network_type,
|
|
|
other_features=other_features,
|
|
|
+ electricity_statistics=electricity_statistics,
|
|
|
created_time=now_time,
|
|
|
updated_time=now_time
|
|
|
)
|