alsmanager_lib 2.0.35 → 2.0.37
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 +7 -7
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -2427,7 +2427,7 @@ function getDevicesCounterByPlaceMySQL(id_place) {
|
|
|
2427
2427
|
query += "inner join device_site ds on ds.id_device = d.id ";
|
|
2428
2428
|
query += "inner join sites s on s.id = ds.id_site ";
|
|
2429
2429
|
query += "where (CURDATE() >= ds.date_in and CURDATE() <= ds.date_out) ";
|
|
2430
|
-
query += "and ds.id_place = :id_place ";
|
|
2430
|
+
query += "and ds.id_place = ':id_place' ";
|
|
2431
2431
|
query += "group by d.type";
|
|
2432
2432
|
return query;
|
|
2433
2433
|
}
|
|
@@ -4171,7 +4171,7 @@ function insertDeviceSiteFromInventarioMySQL() {
|
|
|
4171
4171
|
if (inv_info.tabella == "ImportRevisione2024") {
|
|
4172
4172
|
query = "Select ";
|
|
4173
4173
|
query += "d.id, ";
|
|
4174
|
-
query += ":id_place, ";
|
|
4174
|
+
query += "':id_place', ";
|
|
4175
4175
|
query += ":id_site, ";
|
|
4176
4176
|
query += "'" + dp_str + "', ";
|
|
4177
4177
|
query += "'2999-12-31' ";
|
|
@@ -4184,7 +4184,7 @@ function insertDeviceSiteFromInventarioMySQL() {
|
|
|
4184
4184
|
else {
|
|
4185
4185
|
query = "Select ";
|
|
4186
4186
|
query += "d.id, ";
|
|
4187
|
-
query += ":id_place, ";
|
|
4187
|
+
query += "':id_place', ";
|
|
4188
4188
|
query += ":id_site, ";
|
|
4189
4189
|
query += "'" + dp_str + "', ";
|
|
4190
4190
|
query += "'2999-12-31' ";
|
|
@@ -4662,7 +4662,7 @@ function getDevicesAllocatedComboMySQL(id_site, id_place, sel_type, sel_maker, o
|
|
|
4662
4662
|
query += "left join site_destinations sd on ds.id_site = sd.id_site ";
|
|
4663
4663
|
query += "where (d.is_removed is null or d.is_removed = 0) "
|
|
4664
4664
|
query += "and (ds.id_place is not null ";
|
|
4665
|
-
query += "or (ds.date_in <= CURDATE() and ds.date_out >= CURDATE() and ds.id_site <> :id_site and ds.id_place <> :id_place)) ";
|
|
4665
|
+
query += "or (ds.date_in <= CURDATE() and ds.date_out >= CURDATE() and ds.id_site <> :id_site and ds.id_place <> ':id_place')) ";
|
|
4666
4666
|
if (sel_type_str.trim() != '') {
|
|
4667
4667
|
query += "and d.type = :dev_type ";
|
|
4668
4668
|
}
|
|
@@ -6359,7 +6359,7 @@ function getLaboratorioByIdSiteMySQL(id_site, id_place) {
|
|
|
6359
6359
|
query += "join devices d on d.id = pl.id_device ";
|
|
6360
6360
|
query += "left join device_pc dp on d.id = dp.id_device ";
|
|
6361
6361
|
query += "where pl.id_site = :id_site ";
|
|
6362
|
-
query += "and pl.id_place = :id_place ";
|
|
6362
|
+
query += "and pl.id_place = ':id_place' ";
|
|
6363
6363
|
query += "and (d.is_removed is null or d.is_removed = 0) ";
|
|
6364
6364
|
query += "order by pl.Bancata asc, pl.num_pos desc ";
|
|
6365
6365
|
return query;
|
|
@@ -7961,9 +7961,9 @@ function queryFunzioneByPlaceAndFloorMySQL(id_place, piano) {
|
|
|
7961
7961
|
query += " JOIN sites s ON s.id = sd.id_site"
|
|
7962
7962
|
if (id_place) {
|
|
7963
7963
|
query += " where CURDATE() >= sd.date_start and CURDATE() <= sd.date_end";
|
|
7964
|
-
query += " and sd.id_place = :id_place";
|
|
7964
|
+
query += " and sd.id_place = ':id_place'";
|
|
7965
7965
|
if (piano) {
|
|
7966
|
-
query += " and s.floor = :piano";
|
|
7966
|
+
query += " and s.floor = ':piano'";
|
|
7967
7967
|
}
|
|
7968
7968
|
}
|
|
7969
7969
|
query += " order by funzione";
|