alsmanager_lib 1.0.17 → 1.0.18
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 +2 -2
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -2530,7 +2530,7 @@ function getBeniConsumoByIdDeviceMySQL(id_device) {
|
|
|
2530
2530
|
function selectDismissioniByYearSQLite(sel_year) {
|
|
2531
2531
|
var query = "select id, data, descrizione from dismissioni ";
|
|
2532
2532
|
if (sel_year && sel_year > 0) {
|
|
2533
|
-
query += "where data >= concat(" + sel_year + ", '-01-01')
|
|
2533
|
+
query += "where data >= concat(" + sel_year + ", '-01-01') and data <= concat(" + sel_year + ", '-12-31')";
|
|
2534
2534
|
}
|
|
2535
2535
|
return query;
|
|
2536
2536
|
}
|
|
@@ -2538,7 +2538,7 @@ function selectDismissioniByYearSQLite(sel_year) {
|
|
|
2538
2538
|
function selectDismissioniByYearMySQL(sel_year) {
|
|
2539
2539
|
var query = "select id, data, descrizione from dismissioni ";
|
|
2540
2540
|
if (sel_year && sel_year > 0) {
|
|
2541
|
-
query += "where data >= concat(:sel_year, '-01-01')
|
|
2541
|
+
query += "where data >= concat(:sel_year, '-01-01') and data <= concat(:sel_year, '-12-31')";
|
|
2542
2542
|
}
|
|
2543
2543
|
return query;
|
|
2544
2544
|
}
|