alsmanager_lib 3.0.150 → 3.0.152
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 +26 -15
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -3285,7 +3285,7 @@ function getDevicesByDetailsSelectSQLite(search_criteria, details) {
|
|
|
3285
3285
|
where_clause += " and ";
|
|
3286
3286
|
}
|
|
3287
3287
|
}
|
|
3288
|
-
if (details.
|
|
3288
|
+
if (details.version) {
|
|
3289
3289
|
where_clause += "(dd.version = '" + details.version + "') ";
|
|
3290
3290
|
if (details.storage || details.addon || details.network || details.mac_address || details.name) {
|
|
3291
3291
|
where_clause += " and ";
|
|
@@ -3310,7 +3310,7 @@ function getDevicesByDetailsSelectSQLite(search_criteria, details) {
|
|
|
3310
3310
|
}
|
|
3311
3311
|
if (details.network) {
|
|
3312
3312
|
where_clause += "(dn.net_type = '" + details.network + "') ";
|
|
3313
|
-
if (details.storage || details.addon || details.
|
|
3313
|
+
if (details.storage || details.addon || details.mac_address) {
|
|
3314
3314
|
where_clause += " and ";
|
|
3315
3315
|
}
|
|
3316
3316
|
}
|
|
@@ -3461,7 +3461,7 @@ function getDevicesByDetailsSelectMySQL(search_criteria, details) {
|
|
|
3461
3461
|
where_clause += " and ";
|
|
3462
3462
|
}
|
|
3463
3463
|
}
|
|
3464
|
-
if (details.
|
|
3464
|
+
if (details.version) {
|
|
3465
3465
|
where_clause += "(dd.version = '" + details.version + "') ";
|
|
3466
3466
|
if (details.storage || details.addon || details.network || details.mac_address || details.name) {
|
|
3467
3467
|
where_clause += " and ";
|
|
@@ -3486,7 +3486,7 @@ function getDevicesByDetailsSelectMySQL(search_criteria, details) {
|
|
|
3486
3486
|
}
|
|
3487
3487
|
if (details.network) {
|
|
3488
3488
|
where_clause += "(dn.net_type = '" + details.network + "') ";
|
|
3489
|
-
if (details.storage || details.addon || details.
|
|
3489
|
+
if (details.storage || details.addon || details.mac_address) {
|
|
3490
3490
|
where_clause += " and ";
|
|
3491
3491
|
}
|
|
3492
3492
|
}
|
|
@@ -3629,17 +3629,28 @@ function getDevicesByDetailsSelect(db_used, search_criteria, details) {
|
|
|
3629
3629
|
|
|
3630
3630
|
function createDeviceSelectObj(search_type, inv_code, dev_type, marca, dev_model, is_PNRR, dev_status, dev_gestione, no_inv, in_consegna, id_dev_exclude) {
|
|
3631
3631
|
var search_criteria = {};
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3632
|
+
if (search_type)
|
|
3633
|
+
search_criteria.search_type = search_type;
|
|
3634
|
+
if (inv_code)
|
|
3635
|
+
search_criteria.inv_code = inv_code;
|
|
3636
|
+
if (dev_type)
|
|
3637
|
+
search_criteria.dev_type = dev_type;
|
|
3638
|
+
if (marca)
|
|
3639
|
+
search_criteria.marca = marca;
|
|
3640
|
+
if (dev_model)
|
|
3641
|
+
search_criteria.dev_model = dev_model;
|
|
3642
|
+
if (is_PNRR)
|
|
3643
|
+
search_criteria.is_PNRR = is_PNRR;
|
|
3644
|
+
if (dev_status)
|
|
3645
|
+
search_criteria.dev_status = dev_status;
|
|
3646
|
+
if (dev_gestione)
|
|
3647
|
+
search_criteria.dev_gestione = dev_gestione;
|
|
3648
|
+
if (no_inv)
|
|
3649
|
+
search_criteria.no_inv = no_inv;
|
|
3650
|
+
if (in_consegna)
|
|
3651
|
+
search_criteria.in_consegna = in_consegna;
|
|
3652
|
+
if (id_dev_exclude)
|
|
3653
|
+
search_criteria.id_dev_exclude = id_dev_exclude;
|
|
3643
3654
|
return search_criteria;
|
|
3644
3655
|
}
|
|
3645
3656
|
|