alsmanager_lib 2.0.29 → 2.0.31
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 +5 -0
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -2252,6 +2252,7 @@ function getDevicesSelectBySiteSQLite(id_site, dev_type) {
|
|
|
2252
2252
|
if (dev_type && dev_type != '') {
|
|
2253
2253
|
query += "and devices.type = '" + dev_type + "' ";
|
|
2254
2254
|
}
|
|
2255
|
+
query += "order by devices.type ";
|
|
2255
2256
|
return query;
|
|
2256
2257
|
}
|
|
2257
2258
|
|
|
@@ -2278,6 +2279,8 @@ function getDevicesSelectBySiteMySQL(id_site, dev_type) {
|
|
|
2278
2279
|
if (dev_type && dev_type != '') {
|
|
2279
2280
|
query += "and devices.type = :dev_type ";
|
|
2280
2281
|
}
|
|
2282
|
+
query += "order by devices.type ";
|
|
2283
|
+
|
|
2281
2284
|
return query;
|
|
2282
2285
|
}
|
|
2283
2286
|
function getDevicesSelectBySite(db_used, id_site, dev_type) {
|
|
@@ -2319,6 +2322,7 @@ function getDevicesSelectByPlaceSQLite(id_place, dev_type) {
|
|
|
2319
2322
|
if (dev_type && dev_type != '') {
|
|
2320
2323
|
query += "and devices.type = '" + dev_type + "' ";
|
|
2321
2324
|
}
|
|
2325
|
+
query += "order by devices.type ";
|
|
2322
2326
|
return query;
|
|
2323
2327
|
}
|
|
2324
2328
|
|
|
@@ -2345,6 +2349,7 @@ function getDevicesSelectByPlaceMySQL(id_place, dev_type) {
|
|
|
2345
2349
|
if (dev_type && dev_type != '') {
|
|
2346
2350
|
query += "and devices.type = :dev_type ";
|
|
2347
2351
|
}
|
|
2352
|
+
query += "order by devices.type ";
|
|
2348
2353
|
return query;
|
|
2349
2354
|
}
|
|
2350
2355
|
function getDevicesSelectByPlace(db_used, id_place, dev_type) {
|