alsmanager_lib 3.0.83 → 3.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/modules.js +12 -2
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -5790,12 +5790,22 @@ function getFreeLanPortsCombo(db_used, id_place, id_site, port_type){
|
|
|
5790
5790
|
//end Get Network on device
|
|
5791
5791
|
//
|
|
5792
5792
|
function getImportedPropertiesByIdDeviceSQLite(id_device) {
|
|
5793
|
-
var query = "select raw_properties as Dati
|
|
5793
|
+
var query = "select dp.raw_properties as Dati, ";
|
|
5794
|
+
query += "case ";
|
|
5795
|
+
query += "when dp.is_imported = 1 then 'Importato' ";
|
|
5796
|
+
query += "else ''";
|
|
5797
|
+
query += "end as Stato ";
|
|
5798
|
+
query += "from device_properties dp ";
|
|
5794
5799
|
query += "where dp.id_device = " + id_device;
|
|
5795
5800
|
return query;
|
|
5796
5801
|
}
|
|
5797
5802
|
function getImportedPropertiesByIdDeviceMySQL(id_device) {
|
|
5798
|
-
var query = "select raw_properties as Dati
|
|
5803
|
+
var query = "select dp.raw_properties as Dati, ";
|
|
5804
|
+
query += "case ";
|
|
5805
|
+
query += "when dp.is_imported = 1 then 'Importato' ";
|
|
5806
|
+
query += "else ''";
|
|
5807
|
+
query += "end as Stato ";
|
|
5808
|
+
query += "from device_properties dp ";
|
|
5799
5809
|
query += "where dp.id_device = :id_device";
|
|
5800
5810
|
return query;
|
|
5801
5811
|
}
|